This commit is contained in:
silicons
2020-07-18 18:44:17 -07:00
parent 0c6368e3e7
commit 1a040dd2a6
21 changed files with 20 additions and 22 deletions
+9
View File
@@ -61,6 +61,15 @@
/mob/proc/CheckResistCooldown()
return (world.time >= (last_resist + resist_cooldown))
/atom
// Standard clickdelay variables
/// Amount of time to check for from a mob's last attack to allow an attack_hand().
var/clickdelay_attack_hand_preattack_cooldown = CLICK_CD_MELEE
/// Should we set last action before or after attack hand passes?
var/clickdelay_attack_hand_set_preattack = FALSE
/// Should we set last action for attack hand?
var/clickdelay_attack_hand_is_action = FALSE
/obj/item
// Standard clickdelay variables
/// Amount of time to check for from a mob's last attack, checked before an attack happens
+2
View File
@@ -687,10 +687,12 @@
return
if(do_resist())
last_resist = world.time
changeNext_move(CLICK_CD_RESIST)
/// The actual proc for resisting. Return TRUE to give clickdelay.
/mob/living/proc/do_resist()
set waitfor = FALSE // some of these sleep.
SEND_SIGNAL(src, COMSIG_LIVING_RESIST, src)
//resisting grabs (as if it helps anyone...)
// only works if you're not cuffed.