ASFX toggle for arcade sounds (#7163)

Allows players to opt out of hearing arcade sounds by adding a button in the ASFX tab.

Note that the computer typing sounds will still play.
This commit is contained in:
Mwahahahaha
2019-10-18 12:35:01 -07:00
committed by Erki
parent c4c87700cf
commit cfe6f92616
5 changed files with 77 additions and 22 deletions

View File

@@ -3,7 +3,8 @@
// /client/proc/Toggle_footsteps,
/client/proc/Toggle_asfx_vote,
/client/proc/toggle_vox_voice,
/client/proc/Toggle_dropsounds
/client/proc/Toggle_dropsounds,
/client/proc/Toggle_arcadesounds
)
/client/verb/asf_toggle()
@@ -73,4 +74,16 @@
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>")
to_chat(src, "<font color='red'>You will no longer hear dropping and throwing sounds.</font>")
/client/proc/Toggle_arcadesounds()
set name = "Toggle Arcade SFX"
set category = "SoundFx Prefs"
set desc = "Toggles hearing noises made by arcades."
prefs.asfx_togs ^= ASFX_ARCADE
prefs.save_preferences()
if(prefs.asfx_togs & ASFX_ARCADE)
to_chat(src, "You will now hear arcade sounds.")
else
to_chat(src, "<font color='red'>You will no longer hear arcade sounds.</font>")