Hostile mobs will now aggro if hit by offscreen projectiles (#19680)

* Hostile mobs will now aggro if hit by offscreen projectiles

* adjust

* forget
This commit is contained in:
Joan Lung
2016-08-05 11:56:47 +12:00
committed by oranges
parent ff4cafab1d
commit 444d3d283d
@@ -75,8 +75,10 @@
/mob/living/simple_animal/hostile/bullet_act(obj/item/projectile/P)
if(!target && AIStatus != AI_OFF && !client)
if(P.firer && get_dist(src, P.firer) <= aggro_vision_range)
FindTarget(list(P.firer), 1)
Goto(P.starting, move_to_delay, 3)
..()
return ..()
//////////////HOSTILE MOB TARGETTING AND AGGRESSION////////////