Fire alarm sounds (#17992)

* STOP DROP AND ROLL BABY!

* bruh

* roasty toasty

* Choose Your Voluuume!!!!

* :U 👌 🆘

* SteelSlayer Suggestion

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
Kugamo
2022-06-22 09:51:32 +01:00
committed by GitHub
co-authored by SteelSlayer
parent 8b049ff877
commit 8d7631dd49
8 changed files with 26 additions and 2 deletions
+3 -1
View File
@@ -58,9 +58,11 @@
muted = FALSE
on_start()
/datum/looping_sound/proc/stop(atom/remove_thing)
/datum/looping_sound/proc/stop(atom/remove_thing, do_not_mute)
if(remove_thing)
output_atoms -= remove_thing
if(do_not_mute)
return
if(muted)
return
muted = TRUE
@@ -17,3 +17,19 @@
falloff_distance = 5
vary = TRUE
channel = CHANNEL_ENGINE
GLOBAL_DATUM_INIT(firealarm_soundloop, /datum/looping_sound/firealarm, new(list(), FALSE))
/datum/looping_sound/firealarm
mid_sounds = 'sound/machines/fire_alarm.ogg'
mid_length = 20
volume = 80
extra_range = 15
falloff_exponent = 5
channel = CHANNEL_FIREALARM
/datum/looping_sound/firealarm/sound_loop(looped)
. = ..()
if(!length(output_atoms))
stop()