mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user