Skip to content

Commit

Permalink
Fixes sentry targeting xenos in vents.
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed May 1, 2024
1 parent 36e390d commit 83a617c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/defenses/sentry.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83a617c

Please sign in to comment.