mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Adds Alarm Effects, Makes Air alarm have decompress alarm
This commit is contained in:
@@ -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"
|
||||
|
||||
14
code/modules/client/preferences_ch.dm
Normal file
14
code/modules/client/preferences_ch.dm
Normal 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!
|
||||
Reference in New Issue
Block a user