From da690f3e072b4f6cca1535c834acb92c7ff33926 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Thu, 22 Feb 2018 01:37:06 -0600 Subject: [PATCH] [MIRROR] Adds five second cooldown to morgue tray beeps (#5652) * Adds five second cooldown to morgue tray beeps (#35818) * Adds five second cooldown to morgue tray beeps --- code/game/objects/structures/morgue.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index da56775d58..add57ee61c 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -145,6 +145,8 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an icon_state = "morgue1" dir = EAST var/beeper = TRUE + var/beep_cooldown = 50 + var/next_beep = 0 /obj/structure/bodycontainer/morgue/New() connected = new/obj/structure/tray/m_tray(src) @@ -180,7 +182,9 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an if(mob_occupant.client && !mob_occupant.suiciding && !(mob_occupant.has_trait(TRAIT_NOCLONE)) && !mob_occupant.hellbound) icon_state = "morgue4" // Cloneable if(mob_occupant.stat == DEAD && beeper) - playsound(src, 'sound/weapons/smg_empty_alarm.ogg', 50, 0) //Clone them you blind fucks + if(world.time > next_beep) + playsound(src, 'sound/weapons/smg_empty_alarm.ogg', 50, 0) //Clone them you blind fucks + next_beep = world.time + beep_cooldown break