Added an admin verb to toggle ERTs

This commit is contained in:
SamCroswell
2014-07-26 18:04:33 -04:00
parent 515346b2c8
commit 075ad2a943
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -88,6 +88,7 @@ var/list/admin_verbs_event = list(
/client/proc/toggle_random_events,
/client/proc/editappear,
/client/proc/toggle_random_events,
/client/proc/toggle_ert_calling,
/client/proc/cmd_admin_change_custom_event,
/datum/admins/proc/access_news_network, /*allows access of newscasters*/
/client/proc/cmd_admin_direct_narrate, /*send text directly to a player with no padding. Useful for narratives and fluff-text*/
@@ -125,6 +126,7 @@ var/list/admin_verbs_server = list(
/client/proc/cmd_admin_direct_narrate, /*send text directly to a player with no padding. Useful for narratives and fluff-text*/
/client/proc/cmd_admin_world_narrate, /*sends text to all players with no padding*/
/client/proc/toggle_random_events,
/client/proc/toggle_ert_calling,
/client/proc/one_click_antag,
/client/proc/cmd_admin_change_custom_event,
/client/proc/cmd_admin_create_centcom_report,
+18
View File
@@ -1048,3 +1048,21 @@ Traitors and the like can also be revived with the previous role mostly intact.
message_admins("Admin [key_name_admin(usr)] has disabled random events.", 1)
feedback_add_details("admin_verb","TRE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/toggle_ert_calling()
set category = "Event"
set name = "Toggle ERT"
set desc = "Toggle the station's ability to call a response team."
if(!check_rights(R_EVENT)) return
if(ticker.mode.ert_disabled)
ticker.mode.ert_disabled = 0
usr << "\blue ERT has been <b>Enabled</b>."
log_admin("Admin [key_name(src)] has enabled ERT calling.")
message_admins("Admin [key_name_admin(usr)] has enabled ERT calling.", 1)
else
ticker.mode.ert_disabled = 1
usr << "\red ERT has been <b>Disabled</b>."
log_admin("Admin [key_name(src)] has disabled ERT calling.")
message_admins("Admin [key_name_admin(usr)] has disabled ERT calling.", 1)