From b401ee3cc8c2a44f3664c2016497090a9b980244 Mon Sep 17 00:00:00 2001 From: Bone White Date: Sun, 7 Sep 2014 17:37:17 +0100 Subject: [PATCH] Fix for npc xeno screaming whilst dead --- code/modules/mob/living/simple_animal/hostile/alien.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/alien.dm b/code/modules/mob/living/simple_animal/hostile/alien.dm index 26a733619f0..11f33dff1e7 100644 --- a/code/modules/mob/living/simple_animal/hostile/alien.dm +++ b/code/modules/mob/living/simple_animal/hostile/alien.dm @@ -27,6 +27,7 @@ max_co2 = 0 min_n2 = 0 max_n2 = 0 + var/dead = 0 unsuitable_atoms_damage = 15 faction = list("alien") status_flags = CANPUSH @@ -92,5 +93,7 @@ /mob/living/simple_animal/hostile/alien/Die() ..() - visible_message("[src] lets out a waning guttural screech, green blood bubbling from its maw...") - playsound(src, 'sound/voice/hiss6.ogg', 100, 1) + if(dead == 0) + dead = 1 + visible_message("[src] lets out a waning guttural screech, green blood bubbling from its maw...") + playsound(src, 'sound/voice/hiss6.ogg', 100, 1)