mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[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:
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user