From 444d3d283d2994143fab2b52fbece61dc5fd162e Mon Sep 17 00:00:00 2001 From: Joan Lung Date: Thu, 4 Aug 2016 19:56:47 -0400 Subject: [PATCH] Hostile mobs will now aggro if hit by offscreen projectiles (#19680) * Hostile mobs will now aggro if hit by offscreen projectiles * adjust * forget --- code/modules/mob/living/simple_animal/hostile/hostile.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index d4b5f382760..3cb183d3aee 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -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////////////