Spaghettid my way around the errors.

This commit is contained in:
Useroth
2019-12-08 16:47:21 +01:00
parent 5e836c51e4
commit ea4f57beb6
7 changed files with 52 additions and 27 deletions
+6
View File
@@ -87,6 +87,12 @@
message_simple = S.deathmessage
. = ..()
message_simple = initial(message_simple)
if(. && user.deathsound)
if(isliving(user))
var/mob/living/L = user
if(!L.can_speak_vocal() || L.oxyloss >= 50)
return //stop the sound if oxyloss too high/cant speak
playsound(user, user.deathsound, 200, TRUE, TRUE)
if(. && isalienadult(user))
playsound(user.loc, 'sound/voice/hiss6.ogg', 80, 1, 1)