diff --git a/code/defines/client.dm b/code/defines/client.dm index a36280bf56b..fd553c1b329 100644 --- a/code/defines/client.dm +++ b/code/defines/client.dm @@ -32,8 +32,9 @@ var/karma = 0 var/karma_spent = 0 - var/STFU_ghosts //80+ rounds are fun to admin when text flies faster than airport security - var/STFU_radio //80+ rounds are fun to admin when text flies faster than airport security + var/STFU_ghosts //80+ people rounds are fun to admin when text flies faster than airport security + var/STFU_radio //80+ people rounds are fun to admin when text flies faster than airport security + var/sound_adminhelp = 0 //If set to 1 this will play a sound when adminhelps are received. var/midis = 1 //Check if midis should be played for someone -- Urist var/bubbles = 1 //Check if bubbles should be displayed for someone -- Doohl diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 79111e5c01c..6d0e1a9cfb6 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -189,6 +189,7 @@ //verbs += /client/proc/cmd_admin_gib --View vars menu verbs += /client/proc/cmd_admin_delete //verbs += /proc/togglebuildmode --now in view vars + verbs += /client/proc/toggleadminhelpsound verbs += /client/proc/togglebuildmodeself verbs += /client/proc/hide_most_verbs @@ -324,6 +325,7 @@ //verbs -= /client/proc/cmd_admin_gib --view vars menu verbs -= /client/proc/cmd_admin_delete //verbs -= /proc/togglebuildmode --now in view vars + verbs -= /client/proc/toggleadminhelpsound verbs -= /client/proc/togglebuildmodeself verbs -= /client/proc/cmd_admin_remove_plasma verbs -= /client/proc/admin_call_shuttle @@ -581,6 +583,15 @@ if(src.mob) togglebuildmode(src.mob) +/client/proc/toggleadminhelpsound() + set name = "Toggle Adminhelp Sound" + set category = "Admin" + sound_adminhelp = !sound_adminhelp + if(sound_adminhelp) + usr << "You will now hear a sound when adminhelps arrive" + else + usr << "You will no longer hear a sound when adminhelps arrive" + /client/proc/object_talk(var/msg as text) // -- TLE set category = "Special Verbs" set name = "oSay" @@ -670,6 +681,7 @@ verbs += /client/proc/deadchat //toggles deadchat verbs += /obj/admins/proc/toggleooc //toggle ooc verbs += /client/proc/cmd_admin_say//asay + verbs += /client/proc/toggleadminhelpsound return diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index 6d92691be7a..7131b2cbd90 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -15,6 +15,8 @@ for (var/mob/M in world) if (M.client && M.client.holder) + if(M.client.sound_adminhelp) + M << 'adminhelp.ogg' M << "\blue HELP: [key_name(src, M)] (PP) (VV) (SM) (JMP) (CA): [msg]" usr << "Your message has been broadcast to administrators." diff --git a/sound/effects/adminhelp.ogg b/sound/effects/adminhelp.ogg new file mode 100644 index 00000000000..7386395858a Binary files /dev/null and b/sound/effects/adminhelp.ogg differ