mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 06:27:26 +01:00
Monkey AI Fixes (#31504)
* Fixes monkeys breaking from grabs, fixes monkeys not stopping on stamcrit * istype checks
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
return
|
||||
if(!IsWeakened())
|
||||
to_chat(src, SPAN_NOTICE("You're too exhausted to keep going..."))
|
||||
if(istype(ai_controller))
|
||||
ai_controller.cancel_actions()
|
||||
GLOB.move_manager.stop_looping(src)
|
||||
SEND_SIGNAL(src, COMSIG_CARBON_ENTER_STAMINACRIT)
|
||||
stam_regen_start_time = world.time + (STAMINA_REGEN_BLOCK_TIME * stamina_regen_block_modifier)
|
||||
var/prev = stam_paralyzed
|
||||
|
||||
@@ -407,6 +407,8 @@
|
||||
. += ((health_deficiency / 25) - 1.1) //Once damage is over 40, you get the harsh formula
|
||||
else
|
||||
. += 0.5 //Otherwise, slowdown (from pain) is capped to 0.5 until you hit 40 damage. This only effects people with fractional slowdowns, and prevents some harshness from the lowered threshold
|
||||
if(istype(H.ai_controller))
|
||||
H.ai_controller.movement_delay = .
|
||||
|
||||
#undef ADD_SLOWDOWN
|
||||
#undef SLOWDOWN_INCREMENT
|
||||
|
||||
Reference in New Issue
Block a user