Creates a Preference toggle for Drop Sounds (#6397)

This commit is contained in:
Conspiir
2019-05-19 08:49:14 -05:00
committed by Werner
parent 744a74390b
commit f659fa096c
10 changed files with 71 additions and 17 deletions

View File

@@ -2,7 +2,8 @@
// /client/proc/Toggle_asfx,
// /client/proc/Toggle_footsteps,
/client/proc/Toggle_asfx_vote,
/client/proc/toggle_vox_voice
/client/proc/toggle_vox_voice,
/client/proc/Toggle_dropsounds
)
/client/verb/asf_toggle()
@@ -61,3 +62,15 @@
prefs.asfx_togs ^= ASFX_VOX
prefs.save_preferences()
to_chat(src, "You will [(prefs.asfx_togs & ASFX_VOX) ? "now" : "no longer"] hear the VOX voice.")
/client/proc/Toggle_dropsounds()
set name = "Hear/Silence Drop Sounds"
set category = "SoundFx Prefs"
set desc = "Toggles hearing dropping and throwing sound effects"
prefs.asfx_togs ^= ASFX_DROPSOUND
prefs.save_preferences()
if(prefs.asfx_togs & ASFX_DROPSOUND)
to_chat(src, "You will now hear dropping and throwing sounds.")
else
to_chat(src, "<font color='red'>You will no longer hear dropping and throwing sounds.</font>")

View File

@@ -224,4 +224,4 @@
prefs.toggles_secondary ^= SAFETY_CHECK //Held in Parallax because we don't want to deal with an SQL migration right now.
prefs.save_preferences()
to_chat(src, "You will [(prefs.toggles_secondary & SAFETY_CHECK) ? "no longer" : "now"] fire your weapon on intents other than harm.")
to_chat(src, "You will [(prefs.toggles_secondary & SAFETY_CHECK) ? "no longer" : "now"] fire your weapon on intents other than harm.")