From 7c5a90c5e9c430ffc2067d59a28bfbbda5d95ed7 Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Wed, 15 Jul 2015 17:35:15 -0500 Subject: [PATCH] Fixes sounds cutting out --- code/modules/clothing/head/helmet.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/clothing/head/helmet.dm b/code/modules/clothing/head/helmet.dm index 6bfa9615112..8cbfa5de052 100644 --- a/code/modules/clothing/head/helmet.dm +++ b/code/modules/clothing/head/helmet.dm @@ -66,9 +66,6 @@ icon_state = "[initial(icon_state)]up" usr << "[alt_toggle_message] \the [src]" usr.update_inv_head(0) - while(up) - playsound(src.loc, "[activation_sound]", 100, 0, 4) - sleep(15) /obj/item/clothing/head/helmet/justice name = "helmet of justice" @@ -80,6 +77,12 @@ can_toggle = 1 toggle_cooldown = 20 activation_sound = 'sound/items/WEEOO1.ogg' + +/obj/item/clothing/head/helmet/justice/attack_self() + ..() + while(up) + playsound(src.loc, "[activation_sound]", 100, 0, 4) + sleep(15) /obj/item/clothing/head/helmet/justice/escape name = "alarm helmet"