mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
A sound will now play when admins receive adminhelps. By default this is disabled, but any admin can enable it by using the 'toggle adminhelp sound' verb. Note that it will revert to not hearing sounds when a new round starts.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2286 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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 <b><font color=red>HELP: </font>[key_name(src, M)] (<A HREF='?src=\ref[M.client.holder];adminplayeropts=\ref[src]'>PP</A>) (<A HREF='?src=\ref[M.client.holder];adminplayervars=\ref[src]'>VV</A>) (<A HREF='?src=\ref[M.client.holder];adminplayersubtlemessage=\ref[src]'>SM</A>) (<A HREF='?src=\ref[M.client.holder];adminplayerobservejump=\ref[src]'>JMP</A>) (<A HREF='?src=\ref[M.client.holder];secretsadmin=check_antagonist'>CA</A>):</b> [msg]"
|
||||
|
||||
usr << "Your message has been broadcast to administrators."
|
||||
|
||||
Reference in New Issue
Block a user