Adds a toggle for the announcer voice. (#4143)

Adds a toggle for the announcer voice as some people find them annoying. Related thread: https://forums.aurorastation.org/viewtopic.php?f=18&t=10212
This commit is contained in:
Ron
2018-01-27 20:17:44 +02:00
committed by Erki
parent ad00601b81
commit d620bd194d
4 changed files with 18 additions and 4 deletions
+11 -1
View File
@@ -1,7 +1,8 @@
/var/global/asfx_togs = list(
// /client/proc/Toggle_asfx,
// /client/proc/Toggle_footsteps,
/client/proc/Toggle_asfx_vote
/client/proc/Toggle_asfx_vote,
/client/proc/toggle_vox_voice
)
/client/verb/asf_toggle()
@@ -51,3 +52,12 @@
else
src << "<font color='red'>You will no longer hear the vote alarm.</font>"
feedback_add_details("admin_verb","TSFXFV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/toggle_vox_voice()
set name = "Toggle VOX Voice"
set category = "SoundFx Prefs"
set desc = "Toggles the announcement voice."
prefs.asfx_togs ^= ASFX_VOX
prefs.save_preferences()
src << "You will [(prefs.toggles_secondary & ASFX_VOX) ? "now" : "no longer"] hear the VOX voice."