mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user