From 83a617c7fd0327af2b82820fc87b247d21df98e0 Mon Sep 17 00:00:00 2001 From: DOOM Date: Wed, 1 May 2024 13:20:23 -0700 Subject: [PATCH] Fixes sentry targeting xenos in vents. --- code/modules/defenses/sentry.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/defenses/sentry.dm b/code/modules/defenses/sentry.dm index a02e4e7808c9..13c131d49133 100644 --- a/code/modules/defenses/sentry.dm +++ b/code/modules/defenses/sentry.dm @@ -271,6 +271,11 @@ if(!(world.time-last_fired >= fire_delay) || !turned_on || !ammo || QDELETED(target)) return + if(isliving(A)) + var/mob/living/vent_mob = A + if(vent_mob.is_ventcrawling) + return + if(world.time-last_fired >= 30 SECONDS) //if we haven't fired for a while, beep first playsound(loc, 'sound/machines/twobeep.ogg', 50, 1) sleep(3)