mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-29 11:31:38 +00:00
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:
@@ -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>")
|
||||
Reference in New Issue
Block a user