Adds Alarm Effects, Makes Air alarm have decompress alarm

This commit is contained in:
Rykka Stormheart
2023-02-12 11:22:59 -08:00
parent 65e4ef5f77
commit c4924ec8f9
14 changed files with 87 additions and 2 deletions

View File

@@ -157,6 +157,12 @@ var/list/_client_preferences_by_type
enabled_description = "Audible"
disabled_description = "Silent"
/datum/client_preference/looping_alarms // CHOMPStation Add: Looping Alarms
description ="Looping Alarm Sounds"
key = "SOUND_ALARMLOOP"
enabled_description = "Audible"
disabled_description = "Silent"
/datum/client_preference/old_door_sounds
description ="Old Door Sounds"
key = "SOUND_OLDDOORS"

View File

@@ -0,0 +1,14 @@
/client/verb/toggle_looping_alarms()
set name = "Looping Alarms"
set category = "Preferences"
set desc = "Toggles alarm sound loops."
var/pref_path = /datum/client_preference/looping_alarms
toggle_preference(pref_path)
to_chat(src, "You will [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] hear alarm sounds looping.")
SScharacter_setup.queue_preferences_save(prefs)
feedback_add_details("admin_verb","TAlarmLoops") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!