[MIRROR] FIXES WEEWOO MAKING SERVER EXPLODE (#710)

* WHY DO I KEEP BREAKING THINGS (#53557)

* FIXES WEEWOO MAKING SERVER EXPLODE

Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-09-09 08:20:28 +02:00
committed by GitHub
co-authored by TiviPlus
parent c7f8cd86ad
commit 2e19e73ee3
3 changed files with 22 additions and 6 deletions
-1
View File
@@ -19,7 +19,6 @@
var/alt_desc = null
var/toggle_message = null
var/alt_toggle_message = null
var/active_sound = null
var/toggle_cooldown = null
var/cooldown = 0
+17 -5
View File
@@ -143,10 +143,6 @@
var/mob/living/carbon/C = user
C.head_update(src, forced = 1)
if(active_sound)
while(up)
playsound(src, "[active_sound]", 100, FALSE, 4)
/obj/item/clothing/head/helmet/justice
name = "helmet of justice"
desc = "WEEEEOOO. WEEEEEOOO. WEEEEOOOO."
@@ -156,8 +152,24 @@
actions_types = list(/datum/action/item_action/toggle_helmet_light)
can_toggle = 1
toggle_cooldown = 20
active_sound = 'sound/items/weeoo1.ogg'
dog_fashion = null
///Looping sound datum for the siren helmet
var/datum/looping_sound/siren/weewooloop
/obj/item/clothing/head/helmet/justice/Initialize()
. = ..()
weewooloop = new(list(src), FALSE, FALSE)
/obj/item/clothing/head/helmet/justice/Destroy()
QDEL_NULL(weewooloop)
return ..()
/obj/item/clothing/head/helmet/justice/attack_self(mob/user)
. = ..()
if(up)
weewooloop.start()
else
weewooloop.stop()
/obj/item/clothing/head/helmet/justice/escape
name = "alarm helmet"