diff --git a/_std/macros/antag_popups.dm b/_std/macros/antag_popups.dm index b369b642c490d..bfba7f21ce537 100644 --- a/_std/macros/antag_popups.dm +++ b/_std/macros/antag_popups.dm @@ -332,12 +332,6 @@ M.Browse(html, "window=antagTips;size=700x450;title=[window_title]") -/client/proc/cmd_admin_antag_popups() - set name = "View Special Role Popups" - SET_ADMIN_CAT(ADMIN_CAT_SERVER) - if (src.holder) - get_singleton(/datum/antagPopups).showPanel() - /mob ///Stores the name of the last antag popup shown to the mob diff --git a/_std/macros/client.dm b/_std/macros/client.dm index 87ff59b571828..456c13833dafc 100644 --- a/_std/macros/client.dm +++ b/_std/macros/client.dm @@ -9,3 +9,19 @@ #define DENY_TEMPMIN if(!src.holder || src.holder.tempmin) {boutput(src, SPAN_ADMIN("Only administrators may use this command.")); return} #define MENTOR_ONLY if(!src.mentor) {boutput(src, SPAN_ADMIN("Only mentors may use this command.")); return} #define USR_ADMIN_ONLY if(usr?.client && !usr.client.holder) {boutput(usr, SPAN_ADMIN("Only administrators may use this command.")); return} + +#ifdef SPACEMAN_DMM //spaceman doesn't like ....... syntax, can't think why + #define CURRENT_PROC_PATH null +#elif defined(OPENDREAM) || DM_VERSION >= 515 //OD has a sane version and byond added it too in 515 + #define CURRENT_PROC_PATH __PROC__ +#else //aaand then there's 514 + #define CURRENT_PROC_PATH ....... +#endif + +#define SHOW_VERB_DESC do {\ + var/procpath/this_proc = CURRENT_PROC_PATH;\ + if(usr.client.check_key(KEY_EXAMINE)) {\ + boutput(usr, "[this_proc.desc || "No verb desc found"]");\ + return\ + }\ +} while(FALSE) diff --git a/_std/vox.dm b/_std/vox.dm index 4990fe5b5926f..87ede136ca277 100644 --- a/_std/vox.dm +++ b/_std/vox.dm @@ -67,6 +67,7 @@ var/global/datum/voxdbg/VoxDebug = new SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Debug VOX" set desc = "Fuck me." + SHOW_VERB_DESC VoxDebug.voxtokens = voxtokens VoxDebug.voxsounds_flag_sorted = voxsounds_flag_sorted @@ -79,10 +80,8 @@ var/global/datum/voxdbg/VoxDebug = new SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Intercom Help" set desc = "WOOP WOOP ASS DAY" - - if(!isadmin(src)) - boutput(src, "Only administrators may use this command.") - return + ADMIN_ONLY + SHOW_VERB_DESC vox_help(usr) @@ -136,9 +135,8 @@ proc/vox_help(var/mob/user) SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Intercom Announcement" set desc = "ABOUT THAT BEER I OWED YA, GORDON" - if(!isadmin(src)) - boutput(src, "Only administrators may use this command.") - return + ADMIN_ONLY + SHOW_VERB_DESC vox_reinit_check() @@ -156,11 +154,8 @@ proc/vox_help(var/mob/user) SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Intercom Announcement (Pitch Shifted)" set desc = "ABOUT that BEER I owed YA, NODROG" - if(!isadmin(src)) - boutput(src, "Only administrators may use this command.") - return - - + ADMIN_ONLY + SHOW_VERB_DESC vox_reinit_check() diff --git a/code/WorkInProgress/WiresStuff.dm b/code/WorkInProgress/WiresStuff.dm index a1e5cbf411648..1bbad4a7d0093 100644 --- a/code/WorkInProgress/WiresStuff.dm +++ b/code/WorkInProgress/WiresStuff.dm @@ -132,6 +132,7 @@ var/global/deathConfettiActive = 0 set name = "Toggle Death Confetti" set desc = "Toggles the fun confetti effect and sound whenever a mob dies" ADMIN_ONLY + SHOW_VERB_DESC deathConfettiActive = !deathConfettiActive @@ -222,6 +223,7 @@ var/global/deathConfettiActive = 0 set desc = "A hard reboot is when the game instance outright ends, and the backend server reinitialises it" ADMIN_ONLY + SHOW_VERB_DESC var/hardRebootFileExists = fexists(hardRebootFilePath) var/logMessage = "" diff --git a/code/WorkInProgress/actuallyKeelinsStuff.dm b/code/WorkInProgress/actuallyKeelinsStuff.dm index 70e66da43baff..e8bad51e864c3 100644 --- a/code/WorkInProgress/actuallyKeelinsStuff.dm +++ b/code/WorkInProgress/actuallyKeelinsStuff.dm @@ -818,7 +818,8 @@ Returns: SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Test Cinematic camera" set desc="Test Cinematic camera" - + USR_ADMIN_ONLY + SHOW_VERB_DESC var/mob/M = usr var/datum/targetable/cincam/R = new() M.targeting_ability = R @@ -1637,6 +1638,8 @@ Returns: SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Pixel explosion mode" set desc = "Enter pixel explosion mode." + USR_ADMIN_ONLY + SHOW_VERB_DESC alert("Clicking on things will now explode them into pixels!") pixelmagic(mode == "explode") @@ -1748,7 +1751,8 @@ Returns: SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Turn off pixel explosion mode" set desc = "Turns off pixel explosion mode." - + USR_ADMIN_ONLY + SHOW_VERB_DESC var/mob/M = usr if (istype(M.targeting_ability, /datum/targetable/pixelpicker)) var/datum/targetable/pixelpicker/pixel_picker = M.targeting_ability @@ -2794,6 +2798,7 @@ Returns: set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/mob/M = src.mob if (istype(M)) diff --git a/code/WorkInProgress/blueprints.dm b/code/WorkInProgress/blueprints.dm index 7f1d6b2b7149a..dc3414ec7d1f2 100644 --- a/code/WorkInProgress/blueprints.dm +++ b/code/WorkInProgress/blueprints.dm @@ -399,7 +399,8 @@ set name = "Blueprint Create" set desc = "Allows creation of blueprints of any user." SET_ADMIN_CAT(ADMIN_CAT_FUN) - + USR_ADMIN_ONLY + SHOW_VERB_DESC var/picked = browse_abcu_blueprints(usr, "Admin Share Blueprint", "Choose a blueprint to print and share!", TRUE) if (!picked) return var/obj/printed = new /obj/item/abcu_blueprint_reference(usr, picked, usr) @@ -410,7 +411,8 @@ set name = "Blueprint Delete" set desc = "Allows deletion of blueprints of any user." SET_ADMIN_CAT(ADMIN_CAT_FUN) - + USR_ADMIN_ONLY + SHOW_VERB_DESC var/deleted = delete_abcu_blueprint(usr, TRUE) if (!deleted) return logTheThing(LOG_ADMIN, usr, "[usr] deleted blueprint [deleted["file"]], owned by [deleted["ckey"]].") @@ -419,7 +421,8 @@ set name = "Blueprint Dump" set desc = "Dumps readable HTML blueprint, of any user, to your client folder." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) - + USR_ADMIN_ONLY + SHOW_VERB_DESC var/picked = browse_abcu_blueprints(usr, "Admin Dump Blueprint", "Choose a blueprint to export.", TRUE) if (!picked) return diff --git a/code/WorkInProgress/customcritter.dm b/code/WorkInProgress/customcritter.dm index 96cc1f25d26fa..be838edbdb606 100644 --- a/code/WorkInProgress/customcritter.dm +++ b/code/WorkInProgress/customcritter.dm @@ -2108,6 +2108,8 @@ var/global/datum/critterCreatorHolder/critter_creator_controller = new() set name = "Critter Creator (WIP)" SET_ADMIN_CAT(ADMIN_CAT_FUN) set hidden = 0 + ADMIN_ONLY + SHOW_VERB_DESC var/datum/critterCreator/CR = critter_creator_controller.getCreator(src.mob) if (CR) diff --git a/code/datums/buildmode.dm b/code/datums/buildmode.dm index 0234cf750b01c..666275b7d3e6d 100644 --- a/code/datums/buildmode.dm +++ b/code/datums/buildmode.dm @@ -234,6 +234,8 @@ ABSTRACT_TYPE(/datum/buildmode) set name = "Reset Build Mode" set desc = "If your build mode save got screwed up use this to reset it!" SET_ADMIN_CAT(ADMIN_CAT_SELF) + ADMIN_ONLY + SHOW_VERB_DESC if(src.buildmode?.is_active) src.togglebuildmode() @@ -247,6 +249,8 @@ ABSTRACT_TYPE(/datum/buildmode) set name = "Build Mode" set desc = "Toggle build Mode on/off." SET_ADMIN_CAT(ADMIN_CAT_SELF) + ADMIN_ONLY + SHOW_VERB_DESC if(!src.buildmode) src.buildmode = src.player.get_buildmode() diff --git a/code/datums/controllers/job_controls.dm b/code/datums/controllers/job_controls.dm index bb4f777afefbf..35141b6eea3af 100644 --- a/code/datums/controllers/job_controls.dm +++ b/code/datums/controllers/job_controls.dm @@ -963,6 +963,8 @@ var/datum/job_controller/job_controls /client/proc/cmd_job_controls() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Job Controls" + ADMIN_ONLY + SHOW_VERB_DESC if (job_controls == null) boutput(src, "

UH OH! Shit's broken as fuck!

") else src.debug_variables(job_controls) diff --git a/code/datums/ircbot.dm b/code/datums/ircbot.dm index a761712d7a70e..fce7f0d8c76cc 100644 --- a/code/datums/ircbot.dm +++ b/code/datums/ircbot.dm @@ -179,6 +179,7 @@ var/global/datum/ircbot/ircbot = new /datum/ircbot() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) ADMIN_ONLY + SHOW_VERB_DESC ircbot.toggleDebug(src) return 1 diff --git a/code/datums/tooltip.dm b/code/datums/tooltip.dm index 5501177aaea0f..78971ce3ae917 100644 --- a/code/datums/tooltip.dm +++ b/code/datums/tooltip.dm @@ -454,6 +454,7 @@ var/global/list/atomTooltips = list() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC var/holderCount = 0 var/tooltipCount = 0 diff --git a/code/datums/viewport.dm b/code/datums/viewport.dm index 3824bf44803f6..c8462105b2087 100644 --- a/code/datums/viewport.dm +++ b/code/datums/viewport.dm @@ -208,6 +208,7 @@ SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Create Viewport" ADMIN_ONLY + SHOW_VERB_DESC var/datum/viewport/viewport = src.mob.create_viewport(VIEWPORT_ID_ADMIN, share_planes=TRUE) viewport.handler.listens = TRUE @@ -217,6 +218,7 @@ SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Create Silent Viewport" ADMIN_ONLY + SHOW_VERB_DESC src.mob.create_viewport(VIEWPORT_ID_ADMIN_SILENT, share_planes=TRUE) @@ -225,6 +227,7 @@ SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Create Viewport Following" ADMIN_ONLY + SHOW_VERB_DESC var/atom/target_atom = pick_ref(src.mob) if(!target_atom || isturf(target_atom)) diff --git a/code/error_handling.dm b/code/error_handling.dm index bbe265342f89d..f33386a7f7f73 100644 --- a/code/error_handling.dm +++ b/code/error_handling.dm @@ -54,6 +54,7 @@ var/global/blame_for_runtimes = FALSE set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!cdn) var/list/viewerResources = list( @@ -71,6 +72,7 @@ var/global/blame_for_runtimes = FALSE set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (global.blame_for_runtimes) global.blame_for_runtimes = FALSE boutput(src, SPAN_NOTICE("Aggressive debugging disabled")) diff --git a/code/mob/living/silicon.dm b/code/mob/living/silicon.dm index e23cd9a56fa8a..ab0c6d4321910 100644 --- a/code/mob/living/silicon.dm +++ b/code/mob/living/silicon.dm @@ -444,6 +444,7 @@ var/global/list/module_editors = list() SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!istype(M)) boutput(src, SPAN_ALERT("That thing has no module!")) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 218c2210832dd..0dc797c9eaaa7 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -3860,6 +3860,8 @@ var/global/noir = 0 SET_ADMIN_CAT(ADMIN_CAT_SERVER) set name = "Restart" set desc= "Restarts the world" + USR_ADMIN_ONLY + SHOW_VERB_DESC var/confirm = alert("Restart the game world?", "Restart", "Yes", "Cancel") if(confirm == "Cancel") @@ -3884,6 +3886,8 @@ var/global/noir = 0 SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Announce" set desc="Announce your desires to the world" + USR_ADMIN_ONLY + SHOW_VERB_DESC var/message = input("Global message to send:", "Admin Announce", null, null) as message if (message) if(usr.client.holder.rank != "Coder" && usr.client.holder.rank != "Host") @@ -3896,6 +3900,8 @@ var/global/noir = 0 SET_ADMIN_CAT(ADMIN_CAT_SERVER) set desc="Start the round RIGHT NOW" set name="Start Now" + USR_ADMIN_ONLY + SHOW_VERB_DESC if(!ticker) tgui_alert(usr,"Unable to start the game as it is not set up.") return @@ -3914,7 +3920,8 @@ var/global/noir = 0 SET_ADMIN_CAT(ADMIN_CAT_SERVER) set desc="Delay the game start" set name="Delay Round Start" - + USR_ADMIN_ONLY + SHOW_VERB_DESC if (current_state > GAME_STATE_PREGAME) return tgui_alert(usr,"Too late... The game has already started!") game_start_delayed = !(game_start_delayed) @@ -3934,7 +3941,8 @@ var/global/noir = 0 SET_ADMIN_CAT(ADMIN_CAT_SERVER) set desc="Delay the server restart" set name="Delay Round End" - + USR_ADMIN_ONLY + SHOW_VERB_DESC // If the game end is delayed AT ALL, confirm removing the delay // so that mutiple admins don't end up cancelling their own delays if (game_end_delayed) @@ -4222,6 +4230,7 @@ var/global/noir = 0 set desc = "Select a mob to manage its bioeffects." set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (isnull(holder.bioeffectmanager)) holder.bioeffectmanager = new @@ -4234,6 +4243,7 @@ var/global/noir = 0 set desc = "Select a mob to manage its abilities." set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (isnull(holder.abilitymanager)) holder.abilitymanager = new @@ -4246,7 +4256,7 @@ var/global/noir = 0 set desc = "Select a mob to manage its traits." set popup_menu = 0 ADMIN_ONLY - + SHOW_VERB_DESC var/list/dat = list() dat += {" @@ -4329,6 +4339,7 @@ var/global/noir = 0 set desc = "Select a mob to manage its mind's objectives." set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/list/dat = list() dat += {" @@ -4405,6 +4416,8 @@ var/global/noir = 0 SET_ADMIN_CAT(ADMIN_CAT_UNUSED) set desc = "Respawn a mob" set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC if (!M) return if (!forced && tgui_alert(src, "Respawn [M]?", "Confirmation", list("Yes", "No")) != "Yes") @@ -4433,7 +4446,8 @@ var/global/noir = 0 set name = "Respawn Self" SET_ADMIN_CAT(ADMIN_CAT_SELF) set desc = "Respawn yourself" - + ADMIN_ONLY + SHOW_VERB_DESC logTheThing(LOG_ADMIN, src, "respawned themselves.") logTheThing(LOG_DIARY, src, "respawned themselves.", "admin") message_admins("[key_name(src)] respawned themselves.") diff --git a/code/modules/admin/admin_holder.dm b/code/modules/admin/admin_holder.dm index dcc3fff8d9f71..b6db02bed793d 100644 --- a/code/modules/admin/admin_holder.dm +++ b/code/modules/admin/admin_holder.dm @@ -372,6 +372,7 @@ SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Change Admin Preferences" ADMIN_ONLY + SHOW_VERB_DESC src.holder.show_pref_window(src.mob) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 615db91db41d2..bd67299602004 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -471,8 +471,8 @@ var/list/admin_verbs = list( /client/proc/clear_string_cache, /client/proc/test_flock_panel, /client/proc/temporary_deadmin_self, - /verb/rebuild_flow_networks, - /verb/print_flow_networks, + /client/proc/rebuild_flow_networks, + /client/proc/print_flow_networks, /client/proc/toggle_hard_reboot, /client/proc/cmd_modify_respawn_variables, /client/proc/set_nukie_score, @@ -686,9 +686,8 @@ var/list/special_pa_observing_verbs = list( /client/proc/admin_invisible() SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Set Invisible" - if(!src.holder) - alert("You are not an admin") - return + ADMIN_ONLY + SHOW_VERB_DESC if(src.mob.mouse_opacity) src.mob.mouse_opacity = 0 src.mob.alpha = 0 @@ -701,9 +700,8 @@ var/list/special_pa_observing_verbs = list( /client/proc/admin_observe() SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Set Observe" - if(!src.holder) - alert("You are not an admin") - return + ADMIN_ONLY + SHOW_VERB_DESC if(!src.holder.popuptoggle) //Hrngh var/rank = src.holder.rank @@ -723,9 +721,8 @@ var/list/special_pa_observing_verbs = list( /client/proc/admin_play() SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Set Play" - if(!src.holder) - alert("You are not an admin") - return + ADMIN_ONLY + SHOW_VERB_DESC if(!src.holder.popuptoggle) //Hrngh x2 var/rank = src.holder.rank @@ -758,6 +755,7 @@ var/list/special_pa_observing_verbs = list( set name = "Player Panel" SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) ADMIN_ONLY + SHOW_VERB_DESC if (src.holder.tempmin) logTheThing(LOG_ADMIN, usr, "tried to access the player panel") logTheThing(LOG_DIARY, usr, "tried to access the player panel", "admin") @@ -774,6 +772,8 @@ var/list/special_pa_observing_verbs = list( logTheThing(LOG_ADMIN, src, "tried to access the ban panel") logTheThing(LOG_DIARY, src, "tried to access the ban panel", "admin") message_admins("[key_name(src)] tried to access the ban panel but was denied.") + ADMIN_ONLY + SHOW_VERB_DESC if (isnull(src.holder.ban_panel)) src.holder.ban_panel = new src.holder.ban_panel.ui_interact(src.mob) @@ -781,12 +781,16 @@ var/list/special_pa_observing_verbs = list( /client/proc/jobbans(key as text) set name = "Jobban Panel" SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) + ADMIN_ONLY + SHOW_VERB_DESC src.holder?.Topic(null, list("action"="jobbanpanel","target"=key)) return /client/proc/game_panel() set name = "Game Panel" SET_ADMIN_CAT(ADMIN_CAT_SERVER) + ADMIN_ONLY + SHOW_VERB_DESC if (src.holder) src.holder.Game() return @@ -794,6 +798,8 @@ var/list/special_pa_observing_verbs = list( /client/proc/game_panel_but_called_secrets() set name = "Secrets" SET_ADMIN_CAT(ADMIN_CAT_NONE) + ADMIN_ONLY + SHOW_VERB_DESC if (src.holder) src.holder.Game() return @@ -802,6 +808,7 @@ var/list/special_pa_observing_verbs = list( SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Stealth Mode" ADMIN_ONLY + SHOW_VERB_DESC //fuck u src.holder.set_stealth_mode(null, 0) @@ -855,6 +862,7 @@ var/list/special_pa_observing_verbs = list( set name = "Alternate Key" set desc = "Shows your key as something else!" ADMIN_ONLY + SHOW_VERB_DESC src.holder.set_alt_key(null, 0) @@ -898,6 +906,7 @@ var/list/special_pa_observing_verbs = list( set name = "OOC (Un)Ban" set desc = "Ban or unban a player from using OOC" ADMIN_ONLY + SHOW_VERB_DESC var/mob/target var/client/selection = tgui_input_list(src.mob, "Please, select a player!", "OOC Ban", clients) if (!selection) @@ -920,6 +929,7 @@ var/list/special_pa_observing_verbs = list( set name = "Warn" set desc = "Warn a player" ADMIN_ONLY + SHOW_VERB_DESC if(M.client && M.client.holder && (M.client.holder.level >= src.holder.level)) alert("You cannot perform this action. You must be of a higher administrative rank!", null, null, null, null, null) return @@ -942,6 +952,8 @@ var/list/special_pa_observing_verbs = list( /client/proc/clear_area_overlays() set name = "Clear Area Overlays" SET_ADMIN_CAT(ADMIN_CAT_NONE) + ADMIN_ONLY + SHOW_VERB_DESC for(var/area/A in world) A.icon_state = "" @@ -950,6 +962,8 @@ var/list/fun_images = list() /client/proc/show_image_to_all() set name = "Show Image to All" SET_ADMIN_CAT(ADMIN_CAT_FUN) + ADMIN_ONLY + SHOW_VERB_DESC if(fun_images.len) switch(alert("There is already an existing image.", "Warning", "Ignore", "Clear", "Cancel")) @@ -976,6 +990,8 @@ var/list/fun_images = list() set name = "Show Rules to Player" set popup_menu = 0 SET_ADMIN_CAT(ADMIN_CAT_NONE) + ADMIN_ONLY + SHOW_VERB_DESC var/crossness = tgui_alert(src.mob, "How cross are we with this guy?", "Enter Crossness", list("A bit", "A lot", "Cancel")) if (!crossness || crossness == "Cancel") @@ -1008,6 +1024,7 @@ var/list/fun_images = list() set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(!O.fingerprints_full || !length(O.fingerprints_full)) alert("There are no fingerprints on this object.", null, null, null, null, null) return @@ -1026,6 +1043,7 @@ var/list/fun_images = list() set desc = "Respawn yourself with a special effect" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/list/respawn_types = list("Heavenly", "Demonically", "Beam") var/selection = tgui_input_list(src.mob, "Select Respawn type.", "Cinematic Respawn", respawn_types) @@ -1050,6 +1068,7 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_SELF) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!cli) cli = tgui_input_list(src.mob, "Please, select a player!", "Respawn As", null, null, clients) @@ -1078,6 +1097,7 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_SELF) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC respawn_as_self_internal(new_self=TRUE, jobstring = J.name) @@ -1087,6 +1107,7 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_SELF) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC respawn_as_self_internal(new_self=TRUE) @@ -1097,12 +1118,14 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_SELF) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC respawn_as_self_internal(new_self=FALSE) /client/proc/respawn_as_self_internal(new_self=FALSE, jobstring = "Staff Assistant") ADMIN_ONLY + SHOW_VERB_DESC if (!src.preferences) boutput(src, SPAN_ALERT("No preferences found on your client.")) @@ -1150,6 +1173,7 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_SELF) set popup_menu = FALSE ADMIN_ONLY + SHOW_VERB_DESC var/list/ckeys = splittext(input(src, "Input list of players", "Ckeys with spaces as delimiters", null) as null|text, " ") if (!length(ckeys)) @@ -1170,6 +1194,8 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_NONE) set name = "Humanize" set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC if (!ticker) SPAWN(0) @@ -1227,6 +1253,8 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Pop off everyone's limbs" set desc = "Oh christ no don't do this" + ADMIN_ONLY + SHOW_VERB_DESC if(alert("Really pop off everyone's limbs?", "JESUS CHRIST", "Yes, I'm a crazy bastard", "No") == "Yes, I'm a crazy bastard") logTheThing(LOG_ADMIN, src, "popped off all limbs.") @@ -1247,6 +1275,8 @@ var/list/fun_images = list() set name = "Map World" set desc = "Takes a series of screenshots for mapping" SET_ADMIN_CAT(ADMIN_CAT_NONE) + ADMIN_ONLY + SHOW_VERB_DESC //Gotta prevent dummies var/confirm = tgui_alert(src.mob, "WARNING: This proc should absolutely not be run on a live server! Make sure you know what you are doing!", "WARNING", list("Cancel", "Proceed")) @@ -1379,6 +1409,7 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) ADMIN_ONLY + SHOW_VERB_DESC view_client_compid_list(usr, C) @@ -1387,6 +1418,7 @@ var/list/fun_images = list() set name = "blobsay" set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (!src.mob || src.player_mode) return @@ -1419,6 +1451,7 @@ var/list/fun_images = list() set name = "hivesay" set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (!src.mob || src.player_mode) return @@ -1457,6 +1490,7 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_NONE) set name = "silisay" ADMIN_ONLY + SHOW_VERB_DESC if (!src.mob || src.player_mode) return @@ -1488,6 +1522,7 @@ var/list/fun_images = list() set name = "dronesay" set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (!src.mob || src.player_mode) return @@ -1521,6 +1556,7 @@ var/list/fun_images = list() set name = "marsay" set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (!src.mob || src.player_mode) return @@ -1538,6 +1574,7 @@ var/list/fun_images = list() set name = "flocksay" set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (!src.mob || src.player_mode) return @@ -1556,6 +1593,8 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_FUN) set desc = "Sends a message as voice to all players" set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC if (!isadmin(src) && !src.non_admin_dj) boutput(src, "Only administrators or those with access may use this command.") @@ -1598,6 +1637,7 @@ var/list/fun_images = list() set desc = "Assigns someone a pet! Woo!" SET_ADMIN_CAT(ADMIN_CAT_FUN) ADMIN_ONLY + SHOW_VERB_DESC if (!M) M = tgui_input_list(src.mob, "Choose a target.", "Selection", mobs) @@ -1629,6 +1669,7 @@ var/list/fun_images = list() set desc = "Assigns everyone a pet! Enter part of the path of the thing you want to give." SET_ADMIN_CAT(ADMIN_CAT_FUN) ADMIN_ONLY + SHOW_VERB_DESC if(isnull(pet_input)) pet_input = input("Enter path of the thing you want to give people as pets or enter a part of the path to search", "Enter Path", pick("/obj/critter/domestic_bee", "/obj/critter/parrot/random")) as null|text @@ -1661,6 +1702,7 @@ var/list/fun_images = list() set desc = "Assigns every living player a pet! Enter part of the path of the thing you want to give." SET_ADMIN_CAT(ADMIN_CAT_FUN) ADMIN_ONLY + SHOW_VERB_DESC if(isnull(pet_input)) pet_input = input("Enter path of the thing you want to give people as pets or enter a part of the path to search", "Enter Path", pick("/obj/critter/domestic_bee", "/obj/critter/parrot/random")) as null|text @@ -1695,6 +1737,7 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_FUN) set desc = "Create a custom object spewing grenade" ADMIN_ONLY + SHOW_VERB_DESC var/new_grenade = tgui_alert(src.mob, "Use the new thing throwing grenade?", "Cool new grenade?", list("Yes", "No")) == "Yes" var/obj_input = input("Enter path of the object you want the grenade to have or enter a part of the path to search", "Enter Path") as null|text @@ -1724,6 +1767,7 @@ var/list/fun_images = list() set name = "Admin Changelog" set desc = "Show or hide the admin changelog" ADMIN_ONLY + SHOW_VERB_DESC if (winexists(src, "adminchanges") && winget(src, "adminchanges", "is-visible") == "true") src.Browse(null, "window=adminchanges") @@ -1751,6 +1795,7 @@ var/list/fun_images = list() set desc = "Simply removes you from existence" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!src.mob) boutput(src, SPAN_ALERT("You don't even exist!")) @@ -1778,6 +1823,7 @@ var/list/fun_images = list() set desc = "Remove some other dude from the mortal plain" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!M) boutput(src, SPAN_ALERT("You need to select someone to remove!")) @@ -1997,6 +2043,7 @@ var/list/fun_images = list() set desc = "Send a notice to ghosts that something weird is happening at a person" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(ghost_notifier) ghost_notifier.send_notification(src, target, /datum/ghost_notification/observe/admin) @@ -2007,6 +2054,7 @@ var/list/fun_images = list() set desc = "Show everyone a fun loading screen hint." set waitfor = FALSE ADMIN_ONLY + SHOW_VERB_DESC if (global.current_state != GAME_STATE_PREGAME) return @@ -2034,6 +2082,7 @@ var/list/fun_images = list() set desc = "Tired of boring map gimmicks on the pregame screen? Try HTML!" ADMIN_ONLY + SHOW_VERB_DESC // Previous HTML (so you can replace without always resetting to the default) if(pregameHTML) if(alert("There's already some HTML shown. Do you want to remove or replace it?", "HTML clear?", "Remove", "Replace") == "Remove") @@ -2078,6 +2127,7 @@ var/list/fun_images = list() set desc = "Gives everyone a microbomb. You cannot undo this!!" ADMIN_ONLY + SHOW_VERB_DESC microbombs_4_everyone() @@ -2108,6 +2158,7 @@ var/list/fun_images = list() set desc = "Manually assign values to the nuke ops win/loss scoreboard." SET_ADMIN_CAT(ADMIN_CAT_SERVER) ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN var/win_value = input("Enter new win value.") as num @@ -2128,6 +2179,7 @@ var/list/fun_images = list() set desc = "Manually assign values to the Pod Wars Nanotrasen/Syndicate wins scoreboard." SET_ADMIN_CAT(ADMIN_CAT_SERVER) ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN var/nt_win_value = input("Enter new Nanotrasen win value.") as num @@ -2148,6 +2200,7 @@ var/list/fun_images = list() set desc = "Manually assign values to the Pod Wars Nanotrasen/Syndicate deaths scoreboard." SET_ADMIN_CAT(ADMIN_CAT_SERVER) ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN var/nt_death_value = input("Enter new Nanotrasen death value.") as num @@ -2168,6 +2221,7 @@ var/list/fun_images = list() set desc = "Wipe the intra-round stats of the nukeop commander's uplink purchases" SET_ADMIN_CAT(ADMIN_CAT_SERVER) ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN var/confirm = input(usr, "Are you SURE you want to clear the stats?") in list("Yes", "No") @@ -2184,6 +2238,7 @@ var/list/fun_images = list() set name = "admin_interact" set hidden = 1 USR_ADMIN_ONLY + SHOW_VERB_DESC src.client.admin_intent = 1 src.client.show_popup_menus = 0 src.update_cursor() @@ -2193,6 +2248,7 @@ var/list/fun_images = list() src.client.show_popup_menus = 1 src.update_cursor() USR_ADMIN_ONLY + SHOW_VERB_DESC if (parameters["right"]) @@ -2353,6 +2409,7 @@ var/list/fun_images = list() set name = "VPN whitelist add" SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN vpnckey = ckey(vpnckey) try @@ -2374,6 +2431,7 @@ var/list/fun_images = list() set name = "VPN whitelist remove" SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN vpnckey = ckey(vpnckey) try @@ -2394,6 +2452,7 @@ var/list/fun_images = list() set name = "Lights Out" set desc = "Force off all station lighting for a duration" ADMIN_ONLY + SHOW_VERB_DESC if(!isadmin(src)) boutput(src, "Only administrators may use this command.") return @@ -2412,6 +2471,8 @@ var/list/fun_images = list() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Flock cheats" set desc = "Toggle cheats on or off on a particular flock" + ADMIN_ONLY + SHOW_VERB_DESC var/cheats = list(FLOCK_ACHIEVEMENT_CHEAT_STRUCTURES, FLOCK_ACHIEVEMENT_CHEAT_COMPUTE) var/cheat = tgui_input_list(src, "Pick a cheat to enable", "Flock cheats", cheats) @@ -2436,6 +2497,7 @@ var/list/fun_images = list() set name = "Upload Uncool Words" set desc = "Upload a JSON file for the uncool words list" ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN global.phrase_log?.upload_uncool_words() @@ -2448,6 +2510,7 @@ var/list/fun_images = list() set name = "Whitelist Add Temp" set desc = "Temporarily whitelist a ckey (for this round only)" ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN ckey = ckey(ckey) @@ -2464,6 +2527,7 @@ var/list/fun_images = list() set name = "Toggle Whitelist" set desc = "Toggle the server whitelist on or off" ADMIN_ONLY + SHOW_VERB_DESC DENY_TEMPMIN var/current_status = config.whitelistEnabled ? "ON" : "OFF" @@ -2512,6 +2576,7 @@ var/list/fun_images = list() set name = "Set Conspiracy Objective" set desc = "Set a custom objective for all conspirators. Works fine in non-conspiracy modes." ADMIN_ONLY + SHOW_VERB_DESC //comedic type abuse time var/datum/antagonist/conspirator/type = /datum/antagonist/conspirator var/objective_text = input(usr, "Input a custom objective for the conspiracy to follow (leave blank for random)", "Custom objective") @@ -2527,6 +2592,7 @@ var/list/fun_images = list() set name = "Check Gamemode Stats" set desc = "Check the stats for the current gamemode" ADMIN_ONLY + SHOW_VERB_DESC var/nukie_wins = world.load_intra_round_value("nukie_win") || 0 var/nukie_losses = world.load_intra_round_value("nukie_loss") || 0 @@ -2548,6 +2614,7 @@ var/list/fun_images = list() set name = "Distribute Tokens" set desc = "Give all roundstart antagonists an antag token. For when you blown up server oops." ADMIN_ONLY + SHOW_VERB_DESC var/list/players = list() for (var/mob/M as anything in mobs) for (var/datum/antagonist/antag in M?.mind?.antagonists) @@ -2567,6 +2634,7 @@ var/list/fun_images = list() set name = "Spawn All Of A Type" set desc = "Creates one of every subtype instance of a type at your loc." ADMIN_ONLY + SHOW_VERB_DESC var/spawn_input = input(src, "Enter path", "Enter Path") as null|text if (spawn_input == "") return @@ -2588,6 +2656,13 @@ var/list/fun_images = list() logTheThing(LOG_ADMIN, src, "Created [length(spawn_matches)] types of: [spawn_path] at ([log_loc(usr)]") boutput(src, "Created [length(spawn_matches)] types.") +/client/proc/cmd_admin_antag_popups() + set name = "View Special Role Popups" + SET_ADMIN_CAT(ADMIN_CAT_SERVER) + ADMIN_ONLY + SHOW_VERB_DESC + get_singleton(/datum/antagPopups).showPanel() + /client/proc/cmd_help() set name = "command help" set desc = "gets the desc of a verb, if it has one" diff --git a/code/modules/admin/adminjump.dm b/code/modules/admin/adminjump.dm index d598531632b62..43f40a0b38c19 100644 --- a/code/modules/admin/adminjump.dm +++ b/code/modules/admin/adminjump.dm @@ -5,6 +5,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) if(flourish) @@ -86,6 +87,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) var/mob/target @@ -119,6 +121,7 @@ set desc = "Jump to a coordinate in world (x, y, z)" ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) if (x > world.maxx || x < 1 || y > world.maxy || y < 1 || z > world.maxz || z < 1) @@ -187,6 +190,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) for(var/mob/living/carbon/human/H in mobs) H.set_loc(pick(get_area_turfs(A))) @@ -203,6 +207,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) for(var/mob/living/M in mobs) M.set_loc(pick(get_area_turfs(A))) @@ -219,6 +224,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) switch(alert("Are you sure?",,"Yes","No")) if("Yes") @@ -239,6 +245,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) switch(alert("Are you sure?",,"Yes","No")) if("Yes") @@ -260,6 +267,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) switch(alert("Are you sure?",,"Yes","No")) if("Yes") @@ -282,6 +290,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) switch(alert("Are you sure?",,"Yes","No")) if("Yes") @@ -303,6 +312,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(config.allow_admin_jump) switch(alert("Are you sure?",,"Yes","No")) if("Yes") diff --git a/code/modules/admin/adminsay.dm b/code/modules/admin/adminsay.dm index 177624b907f39..8c10b3f3ebf3a 100644 --- a/code/modules/admin/adminsay.dm +++ b/code/modules/admin/adminsay.dm @@ -4,6 +4,7 @@ set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (src.ismuted()) return @@ -35,6 +36,7 @@ set name = "forceallsay" set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (src.ismuted()) return @@ -62,6 +64,7 @@ set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (src.ismuted()) return @@ -90,6 +93,7 @@ set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (src.ismuted()) return @@ -124,6 +128,7 @@ set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (src.ismuted()) return @@ -148,6 +153,7 @@ set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (src.ismuted()) return diff --git a/code/modules/admin/atom_verbs.dm b/code/modules/admin/atom_verbs.dm index 53bb317cce6e0..529d0fce76b31 100644 --- a/code/modules/admin/atom_verbs.dm +++ b/code/modules/admin/atom_verbs.dm @@ -7,6 +7,7 @@ var/global/atom_emergency_stop = 0 set name = "Stop Atom Verbs" set desc = "For when someone's used an atom verb and you've found yourself yelling \"Oh god the server is dying STOP SPINNING THINGS AAAAA STOP PLEASE I BEG YOU\"" ADMIN_ONLY + SHOW_VERB_DESC if (!atom_emergency_stop) atom_emergency_stop = 1 @@ -28,6 +29,7 @@ var/global/atom_emergency_stop = 0 set name = "Transmute Type" set desc = "Transmute all things under the path you specify." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to transmute everything of a type?", "Confirmation", "Yes", "No") == "Yes") @@ -90,6 +92,7 @@ var/global/atom_emergency_stop = 0 set name = "Emag All" set desc = "Emags every atom. Every single one." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to emag every fucking atom?", "Confirmation", "Yes", "No") == "Yes") @@ -134,6 +137,7 @@ var/global/atom_emergency_stop = 0 set name = "Emag Type" set desc = "Emag all things under the path you specify." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to emag everything of a type?", "Confirmation", "Yes", "No") == "Yes") @@ -209,6 +213,7 @@ var/global/atom_emergency_stop = 0 set name = "Scale All" set desc = "Scales every atom. Every single one." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to scale every fucking atom?", "Confirmation", "Yes", "No") == "Yes") @@ -259,6 +264,7 @@ var/global/atom_emergency_stop = 0 set name = "Scale Type" set desc = "Scales all things under the path you specify." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to scale everything of a type?", "Confirmation", "Yes", "No") == "Yes") @@ -344,6 +350,7 @@ var/global/atom_emergency_stop = 0 set name = "Rotate All Atoms" set desc = "Rotates every atom. Every single one." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to rotate every fucking atom?", "Confirmation", "Yes", "No") == "Yes") @@ -391,6 +398,7 @@ var/global/atom_emergency_stop = 0 set name = "Rotate Type" set desc = "Rotates all things under the path you specify." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to rotate everything of a type?", "Confirmation", "Yes", "No") == "Yes") @@ -470,6 +478,7 @@ var/global/atom_emergency_stop = 0 set name = "Spin All" set desc = "Spins every atom. Every single one." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to spin every fucking atom?", "Confirmation", "Yes", "No") == "Yes") @@ -528,6 +537,7 @@ var/global/atom_emergency_stop = 0 set name = "Spin Type" set desc = "Spins all things under the path you specify." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to spin everything of a type?", "Confirmation", "Yes", "No") == "Yes") @@ -629,6 +639,7 @@ var/global/atom_emergency_stop = 0 set name = "Get All" set desc = "Gets every object and mob. Every single one. Oh god no." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to get fucking object and mob and bring it to your tile?", "YOU WILL REGRET THIS", "Yes", "No") == "Yes") @@ -678,6 +689,7 @@ var/global/atom_emergency_stop = 0 set name = "Get Type" set desc = "Get all things under the path you specify. Don't give this /turf or /area stuff, it's not going to work." ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to teleport everything of a type to your tile?", "Confirmation", "Yes", "No") == "Yes") @@ -736,6 +748,7 @@ var/global/atom_emergency_stop = 0 set desc = "Adds a component to all atoms of a type." SET_ADMIN_CAT(ADMIN_CAT_ATOM) ADMIN_ONLY + SHOW_VERB_DESC var/pathpart = input("Part of component path.", "Part of component path.", "") as null|text if(!pathpart) @@ -795,6 +808,7 @@ var/global/atom_emergency_stop = 0 set desc = "Removes a component from all atoms of a type." SET_ADMIN_CAT(ADMIN_CAT_ATOM) ADMIN_ONLY + SHOW_VERB_DESC var/pathpart = input("Part of component path.", "Part of component path.", "") as null|text if(!pathpart) @@ -851,6 +865,7 @@ var/global/atom_emergency_stop = 0 set name = "Replace Type" set desc = "Replace all things of one type with another." ADMIN_ONLY + SHOW_VERB_DESC if(isnull(typ_part)) typ_part = input("Enter path of the things you want to replace", "Enter path", "") as null|text diff --git a/code/modules/admin/bans.dm b/code/modules/admin/bans.dm index 9c996b8ca316a..abca6675dba4a 100644 --- a/code/modules/admin/bans.dm +++ b/code/modules/admin/bans.dm @@ -337,6 +337,8 @@ set name = "Add Ban" set desc = "Add a ban" SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) + ADMIN_ONLY + SHOW_VERB_DESC var/list/data = src.addBanTempDialog() if (!data) return diff --git a/code/modules/admin/ca_viewer.dm b/code/modules/admin/ca_viewer.dm index 470400427c423..a1e3915506628 100644 --- a/code/modules/admin/ca_viewer.dm +++ b/code/modules/admin/ca_viewer.dm @@ -3,6 +3,7 @@ set name = "CA Viewer" set desc = "Cellular Automata Viewer" ADMIN_ONLY + SHOW_VERB_DESC if(holder) var/datum/ca_viewer/E = new /datum/ca_viewer(src.mob) diff --git a/code/modules/admin/custom_spawn_event.dm b/code/modules/admin/custom_spawn_event.dm index f032365381cf4..ec05d770e7119 100644 --- a/code/modules/admin/custom_spawn_event.dm +++ b/code/modules/admin/custom_spawn_event.dm @@ -245,6 +245,7 @@ set name = "Custom Ghost Spawn" set desc = "Set up a custom player spawn event." ADMIN_ONLY + SHOW_VERB_DESC var/datum/spawn_event_editor/E = new /datum/spawn_event_editor(src.mob) E.ui_interact(mob) diff --git a/code/modules/admin/debug.dm b/code/modules/admin/debug.dm index 2131457e256bb..c8bfb702fd7e9 100644 --- a/code/modules/admin/debug.dm +++ b/code/modules/admin/debug.dm @@ -10,6 +10,7 @@ var/global/debug_messages = 0 set name = "HDM" // debug ur haines SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC debug_messages = !(debug_messages) logTheThing(LOG_ADMIN, usr, "toggled debug messages [debug_messages ? "on" : "off"].") @@ -20,6 +21,7 @@ var/global/debug_messages = 0 SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Debug Deletions" ADMIN_ONLY + SHOW_VERB_DESC var/deletedJson = "\[{path:null,count:0}" var/deletionWhat = "Deleted Object Counts:" #ifdef DELETE_QUEUE_DEBUG @@ -71,12 +73,14 @@ var/global/debug_messages = 0 SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Clear Image Deletion Log" ADMIN_ONLY + SHOW_VERB_DESC deletedImageData = new /client/proc/debug_image_deletions() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Debug Image Deletions" ADMIN_ONLY + SHOW_VERB_DESC #ifdef IMAGE_DEL_DEBUG var/deletedJson = "\[''" var/deletionWhat = "Deleted Image data:" @@ -116,6 +120,7 @@ var/global/debug_messages = 0 SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Debug Object Pools" ADMIN_ONLY + SHOW_VERB_DESC #ifndef DETAILED_POOL_STATS var/poolsJson = "\[{pool:null,count:0}" @@ -197,6 +202,8 @@ var/global/debug_messages = 0 SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Call Proc All" set desc = "Call proc on all instances of a type, will probably slow shit down" + ADMIN_ONLY + SHOW_VERB_DESC if (!typename) typename = input("Input part of type:", "Type Input") as null|text @@ -225,6 +232,7 @@ var/global/debug_messages = 0 SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Advanced ProcCall" ADMIN_ONLY + SHOW_VERB_DESC var/target = null switch (alert("Proc owned by obj?",,"Yes","No","Cancel")) @@ -369,6 +377,7 @@ var/global/debug_messages = 0 /datum/proccall_editor/ui_act(action, list/params, datum/tgui/ui) USR_ADMIN_ONLY + SHOW_VERB_DESC . = ..() if(.) return @@ -511,7 +520,8 @@ var/global/debug_messages = 0 SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Del-All" set desc = "Delete all instances of the selected type." - + ADMIN_ONLY + SHOW_VERB_DESC // to prevent REALLY stupid deletions on live var/hsbitem = get_one_match(typename, /atom, use_concrete_types=FALSE) var/background = alert("Run the process in the background?",,"Yes" ,"No") @@ -556,7 +566,8 @@ var/global/debug_messages = 0 SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Del-Half" set desc = "Delete approximately half of instances of the selected type. *snap" - + ADMIN_ONLY + SHOW_VERB_DESC // to prevent REALLY stupid deletions var/hsbitem = get_one_match(typename, /atom, use_concrete_types=FALSE) var/background = alert("Run the process in the background?",,"Yes" ,"No") @@ -604,14 +615,16 @@ var/global/debug_messages = 0 /client/proc/cmd_debug_del_all_cancel() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Del-All Cancel" - + ADMIN_ONLY + SHOW_VERB_DESC src.delete_state = DELETE_STOP // makes del_all print how much is currently deleted /client/proc/cmd_debug_del_all_check() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Del-All Progress" - + ADMIN_ONLY + SHOW_VERB_DESC src.delete_state = DELETE_CHECK // fuck this @@ -640,6 +653,8 @@ var/global/debug_messages = 0 set name = "Change Mutant Race" SET_ADMIN_CAT(ADMIN_CAT_FUN) set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC if(!ishuman(mob)) alert("[mob] is not a human mob!") return @@ -707,7 +722,8 @@ body /client/proc/check_gang_scores() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Check Gang Scores" - + ADMIN_ONLY + SHOW_VERB_DESC boutput(usr, "Gang scores:") for(var/datum/gang/G in get_all_gangs()) @@ -821,7 +837,8 @@ body SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Debug Reaction Structure" set desc = "Checks the current reaction structure." - + ADMIN_ONLY + SHOW_VERB_DESC var/T = "

Reaction Structure


" for(var/reagent in total_chem_reactions) T += "

[reagent]

" @@ -835,7 +852,8 @@ body SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Debug Reagents Cache" set desc = "Check which things are in the reaction cache." - + ADMIN_ONLY + SHOW_VERB_DESC var/T = "

Reagents Cache


" for(var/reagent in reagents_cache) var/datum/reagent/R = reagents_cache[reagent] @@ -886,7 +904,8 @@ body SET_ADMIN_CAT(ADMIN_CAT_ATOM) set name = "Find One" set desc = "Show the location of one instance of type." - + ADMIN_ONLY + SHOW_VERB_DESC var/thetype = get_one_match(typename, /atom, use_concrete_types = FALSE, only_admin_spawnable = FALSE) if (thetype) var/atom/theinstance = find_first_by_type(thetype) @@ -903,7 +922,8 @@ body SET_ADMIN_CAT(ADMIN_CAT_ATOM) set name = "Find All" set desc = "Show the location of all instances of a type. Performance warning!!" - + ADMIN_ONLY + SHOW_VERB_DESC var/thetype = get_one_match(typename, /atom, use_concrete_types = FALSE, only_admin_spawnable = FALSE) if (thetype) boutput(usr, SPAN_NOTICE("All instances of [thetype]: ")) @@ -918,7 +938,8 @@ body set name = "Find Thing" set desc = "Show the location of an atom by name." set popup_menu = 0 - + ADMIN_ONLY + SHOW_VERB_DESC if (!A) return @@ -929,7 +950,8 @@ body SET_ADMIN_CAT(ADMIN_CAT_ATOM) set name = "Count All" set desc = "Returns the number of all instances of a type that exist." - + ADMIN_ONLY + SHOW_VERB_DESC var/thetype = get_one_match(typename, /atom, use_concrete_types = FALSE, only_admin_spawnable = FALSE) if (thetype) boutput(usr, SPAN_NOTICE("There are [length(find_all_by_type(thetype))] instances total of [thetype].")) @@ -943,6 +965,7 @@ body set desc = "Allows you to change your admin level at will for testing. Does not change your available verbs." set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/new_level = input(src, null, "Choose New Rank", "Coder") as anything in null|list("Host", "Coder", "Shit Guy", "Primary Admin", "Admin", "Secondary Admin", "Mod", "Babby") if (!new_level) @@ -971,6 +994,7 @@ var/global/debug_camera_paths = 0 set name = "Toggle camera connections" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if (!debug_camera_paths && alert(src, "DO YOU REALLY WANT TO TURN THIS ON? THE SERVER WILL SHIT ITSELF AND DIE DO NOT DO IT ON THE LIVE SERVERS THANKS", "Confirmation", "Yes", "No") == "No") return @@ -1004,6 +1028,7 @@ proc/display_camera_paths() set name = "Hide camera connections" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC remove_camera_paths() */ @@ -1017,6 +1042,7 @@ proc/display_camera_paths() set desc = "Toggle AI camera connection behaviour, off to select each node based on the individual camera, on to force cameras to reciprocate the connection" SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) ADMIN_ONLY + SHOW_VERB_DESC camera_network_reciprocity = !camera_network_reciprocity boutput(usr, SPAN_NOTICE("Toggled camera network reciprocity [camera_network_reciprocity ? "on" : "off"]")) @@ -1046,6 +1072,7 @@ proc/display_camera_paths() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if (!ishuman(src.mob)) return boutput(usr, SPAN_ALERT("Error: client mob is invalid type or does not exist")) randomize_look(src.mob) @@ -1058,6 +1085,7 @@ proc/display_camera_paths() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if (src.mob && src.mob.mind) src.mob.mind.handwriting = pick(handwriting_styles) boutput(usr, SPAN_NOTICE("Handwriting style is now: [src.mob.mind.handwriting]")) @@ -1070,6 +1098,7 @@ proc/display_camera_paths() set desc = "Displays the statistics for how machines are processed." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC var/output = "" for(var/T in detailed_machine_timings) @@ -1123,6 +1152,7 @@ proc/display_camera_paths() set desc = "Displays the statistics for how much power machines are using." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(holder) var/datum/power_usage_viewer/E = new(src.mob) @@ -1137,6 +1167,7 @@ proc/display_camera_paths() set desc = "Displays the statistics for how queue stuff is processed." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC var/output = "" for(var/T in queue_stat_list) @@ -1191,6 +1222,7 @@ proc/display_camera_paths() set desc = "Adds a dmi to the global list of available huds, for every player to use." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC var/icon/new_style = input("Please choose a new icon file to upload", "Upload Icon") as null|icon if (!isicon(new_style)) @@ -1211,6 +1243,7 @@ proc/display_camera_paths() set desc = "Animates the client to a randomised color matrix" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(!islist(usr.client.color)) src.set_color() @@ -1242,6 +1275,7 @@ proc/display_camera_paths() set desc = "Convert a part of the area to flock" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(isnull(force)) force = tgui_alert(src, "Force convert unsimulated too?", "Force?", list("Yes", "No")) == "Yes" @@ -1265,6 +1299,7 @@ var/datum/flock/testflock set name = "Test Flock Panel" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(isnull(testflock)) testflock = new() @@ -1276,6 +1311,7 @@ var/datum/flock/testflock set desc = "Invalidates/clears the string cache to allow for files to be reloaded." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(alert("Really clear the string cache?","Invalidate String Cache","OK","Cancel") == "OK") var/length = length(string_cache) @@ -1289,6 +1325,7 @@ var/datum/flock/testflock set desc = "Deadmin you're own self. Temporarily." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(src.holder) var/seconds = input("How many seconds would you like to be deadminned?", "Temporary Deadmin", 60) as num @@ -1303,6 +1340,8 @@ var/datum/flock/testflock SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Debug Spawn" set desc = "Displays all the spawns that've happened so far or dies trying" + ADMIN_ONLY + SHOW_VERB_DESC if(src.holder) if(!src.mob) return @@ -1324,6 +1363,8 @@ var/datum/flock/testflock SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Debug Spawn" set desc = "Displays all the spawns that've happened so far or dies trying" + ADMIN_ONLY + SHOW_VERB_DESC if(src.holder) if(!src.mob) return @@ -1374,6 +1415,7 @@ var/datum/flock/testflock set name = "Delete profiling logs" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(input(usr, "Type in: 'delete profiling logs' to confirm:", "Confirmation of prof. logs deletion") != "delete profiling logs") boutput(usr, "Deletion of profiling logs aborted.") @@ -1389,6 +1431,7 @@ var/datum/flock/testflock set name = "cause lag" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(alert("Are you sure you want to cause lag?","Why would you do this?","Yes","No") != "Yes") return @@ -1407,6 +1450,7 @@ var/datum/flock/testflock set name = "persistent lag" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC if(alert("Are you sure you want to set persistent lag to [cpu_usage]?","Why would you do this?","Yes","No") != "Yes") return @@ -1425,6 +1469,7 @@ var/datum/flock/testflock /client/proc/list_adminteract_buttons() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC var/list/lines = list("Admin Interact Buttons") for(var/type in typesof(/typeinfo/atom)) @@ -1454,6 +1499,7 @@ var/datum/flock/testflock set desc = "Test disposal and mail chutes for broken routing." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC var/input_x = input(usr, "Enter X coordinate") as null | num if(isnull(input_x)) diff --git a/code/modules/admin/diagnostics.dm b/code/modules/admin/diagnostics.dm index 7acd1dcdefd68..bd869fc3ecbbe 100644 --- a/code/modules/admin/diagnostics.dm +++ b/code/modules/admin/diagnostics.dm @@ -51,6 +51,8 @@ proc/debug_map_apc_count(delim,zlim) /client/proc map_debug_panel() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) + ADMIN_ONLY + SHOW_VERB_DESC var/area_txt = "APC LOCATION REPORT
" area_txt += debug_map_apc_count("
") @@ -60,7 +62,8 @@ proc/debug_map_apc_count(delim,zlim) general_report() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) - + ADMIN_ONLY + SHOW_VERB_DESC if(!processScheduler) usr << alert("Process Scheduler not found.") @@ -80,6 +83,8 @@ proc/debug_map_apc_count(delim,zlim) air_report() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) + ADMIN_ONLY + SHOW_VERB_DESC if(!processScheduler || !air_master) alert(usr,"processScheduler or air_master not found.","Air Report") @@ -172,6 +177,8 @@ proc/debug_map_apc_count(delim,zlim) fix_next_move() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Press this if everybody freezes up" + ADMIN_ONLY + SHOW_VERB_DESC var/largest_click_time = 0 var/mob/largest_click_mob = null if (disable_next_click) @@ -206,6 +213,7 @@ proc/debug_map_apc_count(delim,zlim) set name = "Open Profiler" ADMIN_ONLY + SHOW_VERB_DESC world.SetConfig( "APP/admin", src.key, "role=admin" ) winset( usr, null, "command=.profile" ) if (tgui_alert(usr, "Do you disable automatic profiling for 5 minutes.", "Debug", @@ -1632,6 +1640,7 @@ proc/info_overlay_choices() set name = "Debug Overlay" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC var/list/available_overlays = info_overlay_choices() activeOverlay?.OnDisabled(src) if(!name || name == "REMOVE") diff --git a/code/modules/admin/drunkmode.dm b/code/modules/admin/drunkmode.dm index d4b504a878086..6bb5d73b96343 100644 --- a/code/modules/admin/drunkmode.dm +++ b/code/modules/admin/drunkmode.dm @@ -83,6 +83,7 @@ var/list/dangerousVerbs = list(\ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (alert("Enable drunk mode for yourself?", "Confirmation", "Yes", "No") == "Yes") var/not_drunk_but_high = (alert("Are you boozin' or weedin'", "drugs", "Drunk", "High") == "High") @@ -100,6 +101,7 @@ var/list/dangerousVerbs = list(\ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC //Puzzle goes here var/message = "Hello! You are drunk! Think you're not? Solve this simple puzzle then.\n\n" @@ -134,6 +136,7 @@ var/list/dangerousVerbs = list(\ if (!C) return ADMIN_ONLY + SHOW_VERB_DESC //Apparently if the onlineAdmins list contains only one entry, it just picks it by default without giving any input if (src == C) diff --git a/code/modules/admin/gibverbs.dm b/code/modules/admin/gibverbs.dm index 33ed7a7fc740b..56ebfaa897aee 100644 --- a/code/modules/admin/gibverbs.dm +++ b/code/modules/admin/gibverbs.dm @@ -315,6 +315,8 @@ set name = "Gibself" SET_ADMIN_CAT(ADMIN_CAT_SELF) set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC var/turf/T = get_turf(src.mob) if(T) var/obj/overlay/O = new/obj/overlay(T) diff --git a/code/modules/admin/gimmick/wizard_rings.dm b/code/modules/admin/gimmick/wizard_rings.dm index ec48afac46f66..03c5ce35f39e3 100644 --- a/code/modules/admin/gimmick/wizard_rings.dm +++ b/code/modules/admin/gimmick/wizard_rings.dm @@ -307,6 +307,7 @@ SET_ADMIN_CAT(ADMIN_CAT_FUN) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (alert(usr, "Are you sure you want to spawn all wizard rings at your current location?", "Spawn rings", "Yes", "No, I misclicked") == "No, I misclicked") return var/turf/T_LOC = get_turf(src.mob) diff --git a/code/modules/admin/lag_hacks.dm b/code/modules/admin/lag_hacks.dm index f1bd7b2cc34cd..75b6b6fd6bb35 100644 --- a/code/modules/admin/lag_hacks.dm +++ b/code/modules/admin/lag_hacks.dm @@ -5,6 +5,7 @@ client/proc/show_admin_lag_hacks() set desc = "A few janky commands that can smooth the game during an Emergency." SET_ADMIN_CAT(ADMIN_CAT_SERVER) ADMIN_ONLY + SHOW_VERB_DESC src.holder.show_laghacks(src.mob) /datum/admins/proc/show_laghacks(mob/user) @@ -50,6 +51,7 @@ client/proc/lightweight_mobs() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (processScheduler.hasProcess("Mob")) var/datum/controller/process/mobs/M = processScheduler.nameToProcessMap["Mob"] @@ -69,6 +71,7 @@ client/proc/slow_fluids() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (processScheduler.hasProcess("Fluid_Groups")) var/datum/controller/process/fluid_group/P = processScheduler.nameToProcessMap["Fluid_Groups"] @@ -86,6 +89,7 @@ client/proc/slow_atmos() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (processScheduler.hasProcess("Atmos")) var/datum/controller/process/P = processScheduler.nameToProcessMap["Atmos"] @@ -103,6 +107,7 @@ client/proc/slow_ticklag() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC //var/prev = world.tick_lag //world.tick_lag = OVERLOADED_WORLD_TICKLAG @@ -118,6 +123,7 @@ client/proc/disable_deletions() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (processScheduler.hasProcess("DeleteQueue")) var/datum/controller/process/P = processScheduler.nameToProcessMap["DeleteQueue"] @@ -132,6 +138,7 @@ client/proc/disable_ingame_logs() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (disable_log_lists) disable_log_lists = 0 diff --git a/code/modules/admin/part_modifier.dm b/code/modules/admin/part_modifier.dm index 2be70ac5fad40..ead6574384977 100644 --- a/code/modules/admin/part_modifier.dm +++ b/code/modules/admin/part_modifier.dm @@ -8,6 +8,7 @@ var/list/default_limb_paths = list("l_arm" = /obj/item/parts/human_parts/arm/lef SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!istype(target)) return if (!target.limbs) diff --git a/code/modules/admin/randomverbs.dm b/code/modules/admin/randomverbs.dm index 1b26e97e00279..02cdc6555ee22 100644 --- a/code/modules/admin/randomverbs.dm +++ b/code/modules/admin/randomverbs.dm @@ -5,14 +5,18 @@ world.installUpdate() world.Reboot() -/verb/rebuild_flow_networks() +/client/proc/rebuild_flow_networks() set name = "Rebuild Flow Networks" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) + ADMIN_ONLY + SHOW_VERB_DESC make_fluid_networks() -/verb/print_flow_networks() +/client/proc/print_flow_networks() set name = "Print Flow Networks" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) + ADMIN_ONLY + SHOW_VERB_DESC DEBUG_MESSAGE("Dumping flow network refs") for_by_tcl(network, /datum/flow_network) DEBUG_MESSAGE_VARDBG("[showCoords(network.nodes[1].x,network.nodes[1].y,network.nodes[1].z)]", network) @@ -27,6 +31,7 @@ set popup_menu = 0 set name = "Drop Everything" ADMIN_ONLY + SHOW_VERB_DESC M.unequip_all() @@ -39,6 +44,7 @@ set popup_menu = 0 set name = "Prison" ADMIN_ONLY + SHOW_VERB_DESC if (M && ismob(M)) var/area/A = get_area(M) @@ -88,6 +94,8 @@ SET_ADMIN_CAT(ADMIN_CAT_NONE) set name = "Subtle Message" set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC if (!src.holder) boutput(src, "Only administrators may use this command.") @@ -115,6 +123,8 @@ SET_ADMIN_CAT(ADMIN_CAT_NONE) set name = "Plain Message" set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC if (!src.holder) boutput(src, "Only administrators may use this command.") @@ -139,6 +149,8 @@ /client/proc/cmd_admin_plain_message_all() SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Plain Message to All" + ADMIN_ONLY + SHOW_VERB_DESC if (!src.holder) boutput(src, "Only administrators may use this command.") @@ -164,6 +176,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC do_admin_pm(M.ckey, src.mob) //Changed to work off of ckeys instead of mobs. @@ -175,6 +188,7 @@ set name = "Admin Alert" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/client/Mclient = M.client @@ -244,6 +258,7 @@ set popup_menu = 0 set name = "Mute Permanently" ADMIN_ONLY + SHOW_VERB_DESC if (M.client && M.client.holder && (M.client.holder.level >= src.holder.level)) alert("You cannot perform this action. You must be of a higher administrative rank!", null, null, null, null, null) return @@ -267,6 +282,7 @@ set popup_menu = 0 set name = "Mute Temporarily" ADMIN_ONLY + SHOW_VERB_DESC if (M.client && M.client.holder && (M.client.holder.level >= src.holder.level)) alert("You cannot perform this action. You must be of a higher administrative rank!", null, null, null, null, null) return @@ -290,6 +306,7 @@ set name = "AI: Add Law" ADMIN_ONLY + SHOW_VERB_DESC var/input = input(usr, "Please enter anything you want the AI to do. Anything. Serious.", "Law for default AI law rack", "") as text if (!input) @@ -317,6 +334,7 @@ SET_ADMIN_CAT(ADMIN_CAT_SERVER) set name = "AI: Bulk Law Change" ADMIN_ONLY + SHOW_VERB_DESC var/current_laws = list() for (var/obj/item/aiModule/X in ticker.ai_law_rack_manager.default_ai_rack.law_circuits) @@ -362,6 +380,8 @@ /client/proc/cmd_admin_show_ai_laws() SET_ADMIN_CAT(ADMIN_CAT_SERVER) set name = "AI: Show Laws" + ADMIN_ONLY + SHOW_VERB_DESC boutput(usr, "The AI laws are:") if (ticker.ai_law_rack_manager == null) boutput(usr, "Oh god somehow the law rack manager is null. This is real bad. Contact an admin. You are an admin? Oh no...") @@ -373,6 +393,7 @@ SET_ADMIN_CAT(ADMIN_CAT_SERVER) set name = "AI: Law Reset" ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to reset the AI's laws?", "Confirmation", "Yes", "No") == "Yes") ticker.ai_law_rack_manager.default_ai_rack.DeleteAllLaws() @@ -390,6 +411,7 @@ set name = "Heal" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if(!src.mob) return if(isobserver(M)) @@ -409,6 +431,7 @@ set name = "Heal All" ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure?", "Confirmation", "Yes", "No") == "Yes") var/heal_dead = alert(src, "Heal and revive the dead?", "Confirmation", "Yes", "No") var/healed = 0 @@ -430,6 +453,7 @@ SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Create Command Report" ADMIN_ONLY + SHOW_VERB_DESC var/input = input(usr, "Enter the text for the alert. Anything. Serious.", "What?", "") as null|message if(!input) return @@ -453,6 +477,7 @@ SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Adv. Command Report" ADMIN_ONLY + SHOW_VERB_DESC var/input = input(usr, "Please enter anything you want. Anything. Serious.", "What?", "") as null|message if (!input) @@ -470,6 +495,7 @@ SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Adv. Command Report - Help" ADMIN_ONLY + SHOW_VERB_DESC var/T = {"

Advanced Command Report


This report works exactly like the normal report, except it sends a tailored message @@ -509,10 +535,8 @@ SET_ADMIN_CAT(ADMIN_CAT_UNUSED) set name = "Delete" set popup_menu = 0 - - if (!src.holder) - boutput(src, "Only administrators may use this command.") - return + ADMIN_ONLY + SHOW_VERB_DESC if (alert(src, "Are you sure you want to delete:\n[O]\nat ([O.x], [O.y], [O.z])?", "Confirmation", "Yes", "No") == "Yes") logTheThing(LOG_ADMIN, usr, "deleted [O] at ([log_loc(O)])") @@ -527,6 +551,8 @@ SET_ADMIN_CAT(ADMIN_CAT_UNUSED) set name = "Check Contents" set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC if (M && ismob(M)) M.print_contents(usr) @@ -536,6 +562,8 @@ SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) set name = "Check Vehicle Occupant" set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC var/list/piloted_vehicles = list() @@ -569,6 +597,7 @@ set name = "Stabilize Atmos" set desc = "Resets the air contents of every turf in view to normal." ADMIN_ONLY + SHOW_VERB_DESC SPAWN(0) for(var/turf/simulated/T in view()) if(!T.air) @@ -581,6 +610,7 @@ set name = "Stabilize All Atmos" set desc = "Resets the air contents of THE ENTIRE STATION to normal." ADMIN_ONLY + SHOW_VERB_DESC if (alert(usr, "This will reset the air of ALL TURFS IN THE ENTIRE STATION, are you sure you want to continue?", "Cause big lag", "Yes", "No") != "Yes") return SPAWN(0) @@ -595,6 +625,8 @@ SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Flip View" set desc = "Rotates a client's viewport" + ADMIN_ONLY + SHOW_VERB_DESC var/list/keys = list() for(var/mob/M in mobs) @@ -623,9 +655,8 @@ SET_ADMIN_CAT(ADMIN_CAT_NONE) set name = "Clownify" set popup_menu = 0 - if (!src.holder) - boutput(src, "Only administrators may use this command.") - return + ADMIN_ONLY + SHOW_VERB_DESC var/datum/effects/system/harmless_smoke_spread/smoke = new /datum/effects/system/harmless_smoke_spread() smoke.set_up(5, 0, M.loc) @@ -663,6 +694,7 @@ set desc = "View the notes for a current player's key." SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) ADMIN_ONLY + SHOW_VERB_DESC src.holder.viewPlayerNotes(ckey(target)) @@ -671,6 +703,7 @@ set desc = "Change a player's login notice." SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) ADMIN_ONLY + SHOW_VERB_DESC src.holder.setLoginNotice(ckey(target)) @@ -679,10 +712,8 @@ set name = "Polymorph Player" set desc = "Futz with a human mob's DNA." set popup_menu = 0 - - if (!src.holder) - boutput(src, "Only administrators may use this command.") - return + ADMIN_ONLY + SHOW_VERB_DESC if(!ishuman(M)) alert("Invalid mob") @@ -1077,6 +1108,8 @@ SET_ADMIN_CAT(ADMIN_CAT_ATOM) set name = "Remove All Labels" set popup_menu = 0 + ADMIN_ONLY + SHOW_VERB_DESC for (var/atom/A in world) if(!isnull(A.name_suffixes)) @@ -1091,6 +1124,7 @@ set name = "Aview" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!src.holder) boutput(src, "Only administrators may use this command.") return @@ -1116,6 +1150,7 @@ set name = "iddt" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC usr.client.cmd_admin_advview() if (src.adventure_view) src.mob.bioHolder.AddEffect("xray", magical = 1) @@ -1128,6 +1163,8 @@ set name = "Adventure View" set popup_menu = 0 set desc = "When toggled on, you will be able to see all 'hidden' adventure elements regardless of your current mob." + ADMIN_ONLY + SHOW_VERB_DESC src._cmd_admin_advview() @@ -1193,6 +1230,7 @@ set desc = "Lookup a player by string (can search: mob names, byond keys and job titles)" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC target = trim(lowertext(target)) if (!target) return 0 @@ -1216,6 +1254,7 @@ set desc = "Lookup everyone who's dead" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/list/msg = list() var/list/whodead = whodead() @@ -1235,6 +1274,7 @@ SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC SPAWN(0) boutput(usr, SPAN_ALERT("Generating reward list.")) @@ -1274,6 +1314,7 @@ set name = "Check Health" set desc = "Checks the health of someone." ADMIN_ONLY + SHOW_VERB_DESC if (!target) return @@ -1288,6 +1329,7 @@ set name = "Check Reagents" set desc = "Checks the reagents of something." ADMIN_ONLY + SHOW_VERB_DESC src.check_reagents_internal(target) @@ -1435,6 +1477,7 @@ SET_ADMIN_CAT(ADMIN_CAT_PLAYERS) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC src.POK(ckey) @@ -1444,6 +1487,7 @@ SET_ADMIN_CAT(ADMIN_CAT_NONE) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/mob/target if (!ckey) @@ -1464,6 +1508,7 @@ SET_ADMIN_CAT(ADMIN_CAT_NONE) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!M) M = input("Please, select a player!", "Player Options (Mob)", null, null) as null|anything in mob @@ -1495,6 +1540,7 @@ set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/datum/reagents/reagents = A.reagents @@ -1572,6 +1618,7 @@ set name = "Cat County" set desc = "We can't stop here!" ADMIN_ONLY + SHOW_VERB_DESC var/catcounter = 0 for(var/obj/vehicle/segway/S in by_type[/obj/vehicle]) @@ -1593,6 +1640,7 @@ SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Fake PDA Message To All" ADMIN_ONLY + SHOW_VERB_DESC var/sender_name = tgui_input_text(src, "PDA message sender name", "Name") var/message = tgui_input_text(src, "PDA message contents", "Contents") @@ -1612,6 +1660,7 @@ SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Force Say In Range" ADMIN_ONLY + SHOW_VERB_DESC var/speech = tgui_input_text(src, "What to force say", "Say") if(isnull(speech)) @@ -1706,6 +1755,7 @@ set desc = "Transfer a client to the selected mob." set popup_menu = 0 //Imagine if we could have subcategories in the popup menus. Wouldn't that be nice? ADMIN_ONLY + SHOW_VERB_DESC if (M.ckey) var/con = alert("[M] currently has a ckey. Continue?",, "Yes", "No") @@ -1733,6 +1783,7 @@ set popup_menu = 0 //Imagine if we could have subcategories in the popup menus. Wouldn't that be nice? ADMIN_ONLY + SHOW_VERB_DESC if(!M || M == usr ) return if(usr.mind) @@ -1804,6 +1855,7 @@ SET_ADMIN_CAT(ADMIN_CAT_UNUSED) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/list/L = list() var/searchFor = input(usr, "Look for a part of the reagent name (or leave blank for all)", "Add reagent") as null|text @@ -1937,6 +1989,7 @@ set name = "Follow Thing" set desc = "It's like observing, but without that part where you see everything as the person you're observing. Move to cancel if an observer, or use any jump command to leave if alive." ADMIN_ONLY + SHOW_VERB_DESC usr:set_loc(target) logTheThing(LOG_ADMIN, usr, "began following [target].") @@ -1947,6 +2000,7 @@ set name = "Observe Random Player" set desc = "Observe a random living logged-in player." ADMIN_ONLY + SHOW_VERB_DESC if (!isobserver(src.mob)) boutput(src, SPAN_ALERT("Error: you must be an observer to use this command.")) @@ -1986,6 +2040,7 @@ set name = "Observe Next Player" set desc = "Observe the next living logged-in player in some unspecified order." ADMIN_ONLY + SHOW_VERB_DESC if (!isobserver(src.mob)) boutput(src, SPAN_ALERT("Error: you must be an observer to use this command.")) @@ -2025,6 +2080,7 @@ set name = "Pick Random Player" set desc = "Picks a random logged-in player and brings up their player panel." ADMIN_ONLY + SHOW_VERB_DESC var/what_group = input(src, "What group would you like to pick from?", "Selection", "Everyone") as null|anything in list("Everyone", "Traitors Only", "Non-Traitors Only") if (!what_group) @@ -2062,6 +2118,7 @@ var/global/night_mode_enabled = 0 set name = "Toggle Night Mode" set desc = "Switch the station into night mode so the crew can rest and relax off-work." ADMIN_ONLY + SHOW_VERB_DESC night_mode_enabled = !night_mode_enabled message_admins("[key_name(src)] toggled Night Mode [night_mode_enabled ? "on" : "off"]") @@ -2079,6 +2136,7 @@ var/global/night_mode_enabled = 0 set name = "Toggle AI VOX" set desc = "Grant or revoke AI access to VOX" ADMIN_ONLY + SHOW_VERB_DESC var/answer = alert("Set AI VOX access.", "Fun stuff.", "Grant Access", "Revoke Access", "Cancel") switch(answer) @@ -2234,6 +2292,7 @@ var/global/night_mode_enabled = 0 set desc = "Get a list of every canister- and tank-transfer bomb on station." SET_ADMIN_CAT(ADMIN_CAT_SERVER) ADMIN_ONLY + SHOW_VERB_DESC if(!bomb_monitor) bomb_monitor = new bomb_monitor.display_ui(src.mob, 1) @@ -2273,6 +2332,7 @@ var/global/night_mode_enabled = 0 set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!msg) msg = input("Enter message", "Message", "[src.key] earned the Banned medal.") as null|text @@ -2304,6 +2364,7 @@ var/global/night_mode_enabled = 0 set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!M || !src.mob || !M.client || !M.client.player || !M.client.player.shamecubed) return 0 @@ -2338,6 +2399,7 @@ var/global/night_mode_enabled = 0 set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!M || !src.mob || !M.client || !M.client.player || M.client.player.shamecubed) return 0 @@ -2385,6 +2447,7 @@ var/global/night_mode_enabled = 0 set desc = "make some stupid junk, laugh" SET_ADMIN_CAT(ADMIN_CAT_FUN) ADMIN_ONLY + SHOW_VERB_DESC if (src.holder.level >= LEVEL_PA) var/obj/O = makeshittyweapon() @@ -2424,6 +2487,7 @@ var/global/night_mode_enabled = 0 set desc = "Turns the scary darkness off" SET_ADMIN_CAT(ADMIN_CAT_SELF) ADMIN_ONLY + SHOW_VERB_DESC if (!src.holder) boutput(src, "Only administrators may use this command.") @@ -2579,7 +2643,7 @@ var/global/night_mode_enabled = 0 set desc = "Returns your admin powers to you. If you had any. If not you will always and forever be a chumperton." set category = "Commands" set popup_menu = 0 - + SHOW_VERB_DESC if(src.init_admin()) message_admins("[key_name(src)] has re-enabled their admin powers.") else @@ -2592,6 +2656,7 @@ var/global/night_mode_enabled = 0 set desc = "Makes a client see the game in ASCII vision." SET_ADMIN_CAT(ADMIN_CAT_FUN) ADMIN_ONLY + SHOW_VERB_DESC var/is_text = winget(C, "mapwindow.map", "text-mode") == "true" logTheThing(LOG_ADMIN, usr, "has toggled [constructTarget(C.mob,"admin")]'s text mode to [!is_text]") @@ -2606,6 +2671,7 @@ var/global/night_mode_enabled = 0 SET_ADMIN_CAT(ADMIN_CAT_SELF) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC //it's a mess, sue me var/list/areas = get_areas(/area/centcom/offices) @@ -2639,6 +2705,7 @@ var/global/mirrored_physical_zone_created = FALSE //enables secondary code branc SET_ADMIN_CAT(ADMIN_CAT_SELF) set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/turf/src_turf = get_turf(src.mob) if (!src_turf) return @@ -2712,6 +2779,8 @@ var/global/mirrored_physical_zone_created = FALSE //enables secondary code branc /client/proc/cmd_crusher_walls() SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Crusher Walls" + ADMIN_ONLY + SHOW_VERB_DESC if(holder && src.holder.level >= LEVEL_ADMIN) switch(alert("Holy shit are you sure?! This is going to turn the walls into crushers!",,"Yes","No")) if("Yes") @@ -2735,6 +2804,8 @@ var/global/mirrored_physical_zone_created = FALSE //enables secondary code branc SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Disco Lights" set desc = "Set every light on the station to a random color" + ADMIN_ONLY + SHOW_VERB_DESC var/R = null var/G = null var/B = null @@ -2765,6 +2836,8 @@ var/global/mirrored_physical_zone_created = FALSE //enables secondary code branc /client/proc/cmd_blindfold_monkeys() SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "See No Evil" + ADMIN_ONLY + SHOW_VERB_DESC if(holder && src.holder.level >= LEVEL_ADMIN) switch(alert("Really blindfold all monkeys?",,"Yes","No")) if("Yes") @@ -2791,6 +2864,7 @@ var/global/mirrored_physical_zone_created = FALSE //enables secondary code branc set name = "Special Shuttle" set desc = "Spawn in a special escape shuttle" ADMIN_ONLY + SHOW_VERB_DESC if(src.holder.level >= LEVEL_ADMIN) var/list/shuttles = get_map_prefabs(/datum/mapPrefab/shuttle) var/datum/mapPrefab/shuttle/shuttle = shuttles[tgui_input_list(src, "Select a shuttle", "Special Shuttle", shuttles)] @@ -2822,6 +2896,7 @@ var/global/force_radio_maptext = FALSE SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Toggle Forced Radio maptext" ADMIN_ONLY + SHOW_VERB_DESC if(holder && src.holder.level >= LEVEL_ADMIN) if(!force_radio_maptext) @@ -2935,6 +3010,8 @@ var/global/force_radio_maptext = FALSE /client/proc/cmd_move_lobby() SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Move Lobby" + ADMIN_ONLY + SHOW_VERB_DESC if(holder && src.holder.level >= LEVEL_ADMIN) switch(alert("Really move lobby to your current position?",,"Yes","No")) if("Yes") @@ -2954,6 +3031,8 @@ var/global/force_radio_maptext = FALSE // Housekeeping SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Toggle All Artifacts" + ADMIN_ONLY + SHOW_VERB_DESC if (holder && src.holder.level >= LEVEL_ADMIN) switch(alert("What would you like to do?",,"Activate All","Deactivate All","Cancel")) if("Cancel") @@ -2986,6 +3065,8 @@ var/global/force_radio_maptext = FALSE /client/proc/spawn_tons_of_artifacts() SET_ADMIN_CAT(ADMIN_CAT_FUN) set name = "Bulk Spawn Artifacts" + ADMIN_ONLY + SHOW_VERB_DESC var/artifacts_spawned = 0 var/spawn_fails = 0 diff --git a/code/modules/admin/terrainify.dm b/code/modules/admin/terrainify.dm index 20aafa1da7f40..479e0c563cd37 100644 --- a/code/modules/admin/terrainify.dm +++ b/code/modules/admin/terrainify.dm @@ -7,6 +7,7 @@ set name = "Terrainify" set desc = "Turns space into a terrain type" ADMIN_ONLY + SHOW_VERB_DESC if(holder) var/datum/terrainify_editor/E = new /datum/terrainify_editor(src.mob) diff --git a/code/modules/admin/ticklag.dm b/code/modules/admin/ticklag.dm index 68126cb6e57fb..29c8519d6a4b4 100644 --- a/code/modules/admin/ticklag.dm +++ b/code/modules/admin/ticklag.dm @@ -4,6 +4,7 @@ set desc = "Ticklag" set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC if (src.holder.level < LEVEL_CODER) alert("You must be at least a Coder to modify ticklag.") diff --git a/code/modules/admin/toggles.dm b/code/modules/admin/toggles.dm index 4563866352a49..f5441f3bd3cbd 100644 --- a/code/modules/admin/toggles.dm +++ b/code/modules/admin/toggles.dm @@ -53,6 +53,7 @@ var/list/server_toggles_tab_verbs = list( set name = "Toggle Server Toggles Tab" set desc = "Toggle all the crap in the Toggles (Server) tab so it should go away/show up. in theory." ADMIN_ONLY + SHOW_VERB_DESC var/list/final_verblist @@ -84,6 +85,7 @@ var/list/server_toggles_tab_verbs = list( SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Toggle Extra Verbs" ADMIN_ONLY + SHOW_VERB_DESC if (!src.holder.extratoggle) src.verbs -= /client/proc/addreagents @@ -119,6 +121,7 @@ var/global/IP_alerts = 1 set name = "Toggle IP Alerts" set desc = "Toggles the same-IP alerts" ADMIN_ONLY + SHOW_VERB_DESC IP_alerts = !IP_alerts logTheThing(LOG_ADMIN, usr, "has toggled same-IP alerts [(IP_alerts ? "On" : "Off")]") @@ -130,6 +133,7 @@ var/global/IP_alerts = 1 set name = "Toggle Hearing All LOOC" set desc = "Toggles the ability to hear all LOOC messages regardless of where you are" ADMIN_ONLY + SHOW_VERB_DESC src.only_local_looc = !src.only_local_looc boutput(usr, SPAN_NOTICE("Toggled seeing all LOOC messages [src.only_local_looc ?"off":"on"]!")) @@ -139,6 +143,7 @@ var/global/IP_alerts = 1 set name = "Toggle Hearing All" set desc = "Toggles the ability to hear all messages regardless of where you are, like a ghost." ADMIN_ONLY + SHOW_VERB_DESC if(src.mob) src.mob.mob_flags ^= MOB_HEARS_ALL @@ -151,6 +156,7 @@ var/global/IP_alerts = 1 set name = "Toggle Attack Alerts" set desc = "Toggles the after-join attack messages" ADMIN_ONLY + SHOW_VERB_DESC src.holder.attacktoggle = !src.holder.attacktoggle boutput(usr, SPAN_NOTICE("Toggled attack log messages [src.holder.attacktoggle ?"on":"off"]!")) @@ -160,6 +166,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Ghost Respawn offers" set desc = "Toggles receiving offers to respawn as a ghost" ADMIN_ONLY + SHOW_VERB_DESC src.holder.ghost_respawns = !src.holder.ghost_respawns boutput(usr, SPAN_NOTICE("Toggled ghost respawn offers [src.holder.ghost_respawns ?"on":"off"]!")) @@ -169,6 +176,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Who/Adminwho alerts" set desc = "Toggles the alerts for players using Who/Adminwho" ADMIN_ONLY + SHOW_VERB_DESC src.holder.adminwho_alerts = !src.holder.adminwho_alerts boutput(usr, SPAN_NOTICE("Toggled who/adminwho alerts [src.holder.adminwho_alerts ?"on":"off"]!")) @@ -178,6 +186,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle \"Low RP\" Word Alerts" set desc = "Toggles notifications for players saying \"fail-rp\" words (sussy, poggers, etc)" ADMIN_ONLY + SHOW_VERB_DESC src.holder.rp_word_filtering = !src.holder.rp_word_filtering if(src.holder.rp_word_filtering) src.holder.RegisterSignal(GLOBAL_SIGNAL, COMSIG_GLOBAL_SUSSY_PHRASE, TYPE_PROC_REF(/datum/admins, admin_message_to_me)) @@ -190,6 +199,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Uncool Word Alerts" set desc = "Toggles notifications for players saying uncool words" ADMIN_ONLY + SHOW_VERB_DESC src.holder.uncool_word_filtering = !src.holder.uncool_word_filtering if(src.holder.uncool_word_filtering) src.holder.RegisterSignal(GLOBAL_SIGNAL, COMSIG_GLOBAL_UNCOOL_PHRASE, TYPE_PROC_REF(/datum/admins, admin_message_to_me)) @@ -202,6 +212,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Hearing Prayers" set desc = "Toggles if you can hear prayers or not" ADMIN_ONLY + SHOW_VERB_DESC src.holder.hear_prayers = !src.holder.hear_prayers boutput(usr, SPAN_NOTICE("Toggled prayers [src.holder.hear_prayers ?"on":"off"]!")) @@ -211,6 +222,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle ATags" set desc = "Toggle local atags on or off" ADMIN_ONLY + SHOW_VERB_DESC _toggle_atags() @@ -223,6 +235,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Buildmode View" set desc = "Toggles if buildmode changes your view" ADMIN_ONLY + SHOW_VERB_DESC src.holder.buildmode_view = !src.holder.buildmode_view boutput(usr, SPAN_NOTICE("Toggled buildmode changing view [src.holder.buildmode_view ?"off":"on"]!")) @@ -232,6 +245,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Spawn in Loc" set desc = "Toggles if buildmode changes your view" ADMIN_ONLY + SHOW_VERB_DESC src.holder.spawn_in_loc = !src.holder.spawn_in_loc boutput(usr, SPAN_NOTICE("Toggled spawn verb spawning in your loc [src.holder.spawn_in_loc ?"off":"on"]!")) @@ -242,6 +256,7 @@ client/proc/toggle_ghost_respawns() set desc = "Disables most admin messages." ADMIN_ONLY + SHOW_VERB_DESC if (player_mode) player_mode = 0 @@ -313,6 +328,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Mob Godmode" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!isliving(M)) return @@ -328,6 +344,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Your Godmode" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC if (!isliving(usr)) return @@ -347,6 +364,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Ghost Interaction" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC src.holder.ghost_interaction = !src.holder.ghost_interaction boutput(usr, SPAN_NOTICE("Your ghost interaction mode is now [src.holder.ghost_interaction ? "ON" : "OFF"]")) @@ -370,7 +388,8 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Your Noclip" SET_ADMIN_CAT(ADMIN_CAT_SELF) set desc = "Fly through walls" - + ADMIN_ONLY + SHOW_VERB_DESC usr.client.flying = !usr.client.flying boutput(usr, "Noclip mode [usr.client.flying ? "ON" : "OFF"].") @@ -387,6 +406,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Your Mob's Omnipresence" set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/omnipresent if(!length(by_cat[TR_CAT_OMNIPRESENT_MOBS]) || !(src.mob in by_cat[TR_CAT_OMNIPRESENT_MOBS])) @@ -407,6 +427,7 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Toggle Atom Verbs" ADMIN_ONLY + SHOW_VERB_DESC if(!src.holder.disable_atom_verbs) src.holder.disable_atom_verbs = 1 boutput(src, "Atom interaction options toggled off.") @@ -418,7 +439,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SELF) set name = "Toggle View Range" set desc = "switches between 1x and custom views" - + ADMIN_ONLY + SHOW_VERB_DESC if(src.view == world.view || src.view == "21x15") var/x = input("Enter view width in tiles: (1 - 59, default 15 (normal) / 21 (widescreen))", "Width", 21) var/y = input("Enter view height in tiles: (1 - 30, default 15)", "Height", 15) @@ -433,6 +455,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set name = "Toggle Toggles" set desc = "Toggles toggles ON/OFF" + ADMIN_ONLY + SHOW_VERB_DESC if(!(src.holder.rank in list("Host", "Coder"))) NOT_IF_TOGGLES_ARE_OFF @@ -445,6 +469,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Toggle Force Wraith" set desc = "If turned on, a wraith will always appear in mixed or traitor, regardless of player count or probabilities." + ADMIN_ONLY + SHOW_VERB_DESC debug_mixed_forced_wraith = !debug_mixed_forced_wraith logTheThing(LOG_ADMIN, usr, "toggled force mixed wraith [debug_mixed_forced_wraith ? "on" : "off"]") logTheThing(LOG_DIARY, usr, "toggled force mixed wraith [debug_mixed_forced_wraith ? "on" : "off"]") @@ -454,6 +480,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Toggle Force Blob" set desc = "If turned on, a blob will always appear in mixed, regardless of player count or probabilities." + ADMIN_ONLY + SHOW_VERB_DESC debug_mixed_forced_blob = !debug_mixed_forced_blob logTheThing(LOG_ADMIN, usr, "toggled force mixed blob [debug_mixed_forced_blob ? "on" : "off"]") logTheThing(LOG_DIARY, usr, "toggled force mixed blob [debug_mixed_forced_blob ? "on" : "off"]") @@ -463,6 +491,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set name = "Toggle Jobban Alerts" set desc = "Toggles the announcement of job bans ON/OFF" + ADMIN_ONLY + SHOW_VERB_DESC if (!(src.holder.rank in list("Host", "Coder", "Administrator"))) NOT_IF_TOGGLES_ARE_OFF @@ -477,6 +507,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle Banlog Alerts" set desc = "Toggles the announcement of failed logins ON/OFF" ADMIN_ONLY + SHOW_VERB_DESC if (announce_banlogin == 1) announce_banlogin = 0 else announce_banlogin = 1 logTheThing(LOG_ADMIN, usr, "toggled Banned User Alerts to [announce_banlogin].") @@ -487,6 +518,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set name = "Toggle Literal Disarm" set desc = "Toggles literal disarm intent ON/OFF" + ADMIN_ONLY + SHOW_VERB_DESC if(!(src.holder.rank in list("Host", "Coder"))) NOT_IF_TOGGLES_ARE_OFF literal_disarm = !literal_disarm @@ -498,6 +531,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle dis" set name="Toggle OOC" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF ooc_allowed = !( ooc_allowed ) boutput(world, "The OOC channel has been globally [ooc_allowed ? "en" : "dis"]abled!") @@ -509,6 +544,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle dis" set name="Toggle LOOC" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF looc_allowed = !( looc_allowed ) boutput(world, "The LOOC channel has been globally [looc_allowed ? "en" : "dis"]abled!") @@ -520,6 +557,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle dis." set name="Toggle Dead OOC" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF dooc_allowed = !( dooc_allowed ) logTheThing(LOG_ADMIN, usr, "toggled OOC.") @@ -530,6 +569,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle traitor scaling" set name="Toggle Traitor Scaling" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF traitor_scaling = !traitor_scaling logTheThing(LOG_ADMIN, usr, "toggled Traitor Scaling to [traitor_scaling].") @@ -540,6 +581,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle player cap" set name = "Toggle Player Cap" + USR_ADMIN_ONLY + SHOW_VERB_DESC player_capa = !( player_capa ) if (player_capa) boutput(world, "The global player cap has been enabled at [player_cap] players.") @@ -553,6 +596,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="People can't enter" set name="Toggle Entering" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF enter_allowed = !( enter_allowed ) if (!( enter_allowed )) @@ -568,6 +613,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="People can't be AI" set name="Toggle AI" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF config.allow_ai = !( config.allow_ai ) if (!( config.allow_ai )) @@ -582,6 +629,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Force people to hear admin-played sounds even if they have them disabled." set name = "Toggle SoundPref Override" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF soundpref_override = !( soundpref_override ) logTheThing(LOG_ADMIN, usr, "toggled Sound Preference Override [soundpref_override ? "on" : "off"].") @@ -592,6 +641,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Enable or disable the ability for all players to respawn" set name="Toggle Respawn" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF abandon_allowed = !( abandon_allowed ) if (abandon_allowed) @@ -607,6 +658,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SELF) set desc="Toggle Your Pray" set name="Toggle Local Pray" + ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF if(pray_l == 0) pray_l = 1 @@ -620,6 +673,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SELF) set desc="Toggles Your Flourish Mode" set name="Toggle Flourish Mode" + ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF if(flourish) flourish = 0 @@ -631,6 +686,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle admin sound playing" set name="Toggle Sound Playing" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF config.allow_admin_sounds = !(config.allow_admin_sounds) message_admins(SPAN_INTERNAL("Toggled admin sound playing to [config.allow_admin_sounds].")) @@ -639,6 +696,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle admin spawning" set name="Toggle Spawn" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF config.allow_admin_spawning = !(config.allow_admin_spawning) message_admins(SPAN_INTERNAL("Toggled admin item spawning to [config.allow_admin_spawning].")) @@ -647,6 +706,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle admin revives" set name="Toggle Revive" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF config.allow_admin_rev = !(config.allow_admin_rev) message_admins(SPAN_INTERNAL("Toggled reviving to [config.allow_admin_rev].")) @@ -655,6 +716,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle Deadchat on or off." set name = "Toggle Deadchat" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF deadchat_allowed = !( deadchat_allowed ) if (deadchat_allowed) @@ -669,6 +732,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle Farting on or off." set name = "Toggle Farting" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF farting_allowed = !( farting_allowed ) if (farting_allowed) @@ -683,6 +748,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Let everyone spam emotes, including farts/filps/suplexes. Oh no." set name="Toggle Emote Cooldowns" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF no_emote_cooldowns = !( no_emote_cooldowns ) logTheThing(LOG_ADMIN, usr, "toggled emote cooldowns [!no_emote_cooldowns ? "on" : "off"].") @@ -693,6 +760,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle the blood system on or off." set name = "Toggle Blood System" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF blood_system = !(blood_system) boutput(world, "Blood system has been [blood_system ? "enabled" : "disabled"].") @@ -704,6 +773,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle the bone system on or off." set name = "Toggle Bone System" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF bone_system = !(bone_system) boutput(world, "Bone system has been [bone_system ? "enabled" : "disabled"].") @@ -715,6 +786,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Allow/Disallow people to commit suicide." set name = "Toggle Suicide" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF suicide_allowed = !( suicide_allowed ) logTheThing(LOG_ADMIN, usr, "toggled Suicides [suicide_allowed ? "on" : "off"].") @@ -725,6 +798,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle All Toggles" set name = "Toggle All Toggles" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF ooc_allowed = !( ooc_allowed ) dooc_allowed = !( dooc_allowed ) @@ -751,6 +826,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SELF) set desc = "Toggle whether you can see deadchat or not" set name = "Toggle Your Deadchat" + ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF if(deadchatoff == 0) deadchatoff = 1 @@ -763,6 +840,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle manual breathing and/or blinking." set name = "Toggle Manual Breathing/Blinking" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF var/priorbreathing = manualbreathing @@ -791,6 +870,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Makes mob chat show up in-game as floating text." set name = "Toggle Global Flying Chat" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF speechpopups = !( speechpopups ) logTheThing(LOG_ADMIN, usr, "toggled speech popups [speechpopups ? "on" : "off"].") @@ -801,7 +882,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set name = "Toggle Global Parallax" set desc = "Toggles parallax on or off globally. Toggling on respects client preferences in regard to parallax." - + USR_ADMIN_ONLY + SHOW_VERB_DESC parallax_enabled = !parallax_enabled for (var/client/client in clients) @@ -815,6 +897,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle monkeys being able to speak human." set name = "Toggle Monkeys Speaking Human" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF monkeysspeakhuman = !( monkeysspeakhuman ) if (monkeysspeakhuman) @@ -829,6 +913,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle all antagonists being able to see each other." set name = "Toggle Antagonists Seeing Each Other" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF antagonists_see_each_other = !antagonists_see_each_other @@ -852,6 +938,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle the round automatically ending in invasive round types." set name = "Toggle Automatic Round End" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF no_automatic_ending = !( no_automatic_ending ) logTheThing(LOG_ADMIN, usr, "toggled Automatic Round End [no_automatic_ending ? "off" : "on"].") @@ -862,6 +950,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle late joiners spawning as antagonists if all starting antagonists are dead." set name = "Toggle Late Antagonists" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF late_traitors = !( late_traitors ) logTheThing(LOG_ADMIN, usr, "toggled late antagonists [late_traitors ? "on" : "off"].") @@ -872,6 +962,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle admin-played sounds waiting for previous sounds to finish before playing." set name = "Toggle Admin Sound Queue" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF sound_waiting = !( sound_waiting ) logTheThing(LOG_ADMIN, usr, "toggled admin sound queue [sound_waiting ? "on" : "off"].") @@ -882,6 +974,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle admin jumping" set name="Toggle Jump" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF config.allow_admin_jump = !(config.allow_admin_jump) message_admins(SPAN_INTERNAL("Toggled admin jumping to [config.allow_admin_jump].")) @@ -890,6 +984,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Enable sims mode for this round." set name = "Toggle Sims Mode" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF global_sims_mode = !global_sims_mode message_admins(SPAN_INTERNAL("[key_name(usr)] toggled sims mode. [global_sims_mode ? "Oh, the humanity!" : "Phew, it's over."]")) @@ -912,6 +1008,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle whether pulling items should slow people down or not." set name = "Toggle Pull Slowing" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF pull_slowing = !( pull_slowing ) logTheThing(LOG_ADMIN, usr, "toggled pull slowing [pull_slowing ? "on" : "off"].") @@ -922,6 +1020,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle whether record players and tape decks can play any audio" set name = "Toggle Radio Audio" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF var/oview_phrase @@ -972,6 +1072,8 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc="Toggle power debugging popups" set name="Toggle Power Debug" + USR_ADMIN_ONLY + SHOW_VERB_DESC NOT_IF_TOGGLES_ARE_OFF zamus_dumb_power_popups = !( zamus_dumb_power_popups ) logTheThing(LOG_ADMIN, usr, "toggled power debug popups.") @@ -984,6 +1086,7 @@ client/proc/toggle_ghost_respawns() set desc = "Removes most click delay. Don't know what this is? Probably shouldn't touch it." SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) ADMIN_ONLY + SHOW_VERB_DESC disable_next_click = !(disable_next_click) logTheThing(LOG_ADMIN, usr, "toggled next_click [disable_next_click ? "off" : "on"].") @@ -995,6 +1098,7 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle narrator mode on or off." ADMIN_ONLY + SHOW_VERB_DESC narrator_mode = !(narrator_mode) @@ -1008,6 +1112,7 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle behavior correction." ADMIN_ONLY + SHOW_VERB_DESC // Zam note: this is horrible. // I could probably get away with !(forced_desussification), but @@ -1035,6 +1140,7 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle station name changing on or off." ADMIN_ONLY + SHOW_VERB_DESC station_name_changing = !(station_name_changing) @@ -1049,6 +1155,7 @@ client/proc/toggle_ghost_respawns() set popup_menu = 0 ADMIN_ONLY + SHOW_VERB_DESC var/bustedMapSwitcher = isMapSwitcherBusted() if (bustedMapSwitcher) @@ -1065,6 +1172,7 @@ client/proc/toggle_ghost_respawns() SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) set desc = "Toggle waddle walking on or off." ADMIN_ONLY + SHOW_VERB_DESC waddle_walking = !(waddle_walking) @@ -1078,6 +1186,7 @@ client/proc/toggle_ghost_respawns() set desc = "Lets ghosts go to the respawn arena to compete for a new life" ADMIN_ONLY + SHOW_VERB_DESC respawn_arena_enabled = 1 - respawn_arena_enabled logTheThing(LOG_ADMIN, usr, "toggled the respawn arena [respawn_arena_enabled ? "on" : "off"].") logTheThing(LOG_DIARY, usr, "toggled the respawn arena [respawn_arena_enabled ? "on" : "off"].", "admin") @@ -1092,6 +1201,7 @@ client/proc/toggle_ghost_respawns() set name = "Toggle VPN Blacklist" set desc = "Toggle the ability for new players to connect through a VPN or proxy server" ADMIN_ONLY + SHOW_VERB_DESC if(rank_to_level(src.holder.rank) >= LEVEL_PA) #ifdef DO_VPN_CHECKS vpn_blacklist_enabled = !vpn_blacklist_enabled @@ -1110,6 +1220,7 @@ client/proc/toggle_ghost_respawns() set desc = "toggle thresholded lighting plane" SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) ADMIN_ONLY + SHOW_VERB_DESC var/inp = input(usr, "What lighting threshold to set? 0 - 255", "What lighting threshold to set? 0 - 255. Cancel to disable.", 255 - 24) as num|null if(!isnull(inp)) @@ -1130,6 +1241,7 @@ client/proc/toggle_ghost_respawns() set desc = "toggles the cloning method between record and non-record" SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) ADMIN_ONLY + SHOW_VERB_DESC cloning_with_records = !cloning_with_records @@ -1142,6 +1254,7 @@ client/proc/toggle_ghost_respawns() set desc = "toggles random job rolling at the start of the round; preferences will be ignored. Has no effect on latejoins." SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) ADMIN_ONLY + SHOW_VERB_DESC global.totally_random_jobs = !global.totally_random_jobs logTheThing(LOG_ADMIN, usr, "toggled random job selection [global.totally_random_jobs ? "on" : "off"]") diff --git a/code/modules/admin/viewvariables/datumvars.dm b/code/modules/admin/viewvariables/datumvars.dm index b7db93a74f161..07af3d1e8f053 100644 --- a/code/modules/admin/viewvariables/datumvars.dm +++ b/code/modules/admin/viewvariables/datumvars.dm @@ -6,7 +6,8 @@ /client/proc/debug_global_variable(var/S as text) SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "View Global Variable" - + ADMIN_ONLY + SHOW_VERB_DESC if( !src.holder || src.holder.level < LEVEL_ADMIN) boutput( src, SPAN_ALERT("Get down from there!!") ) return @@ -67,7 +68,8 @@ SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "View Ref Variables" set desc = "(reference) Enter a ref to view its variables" - + ADMIN_ONLY + SHOW_VERB_DESC if (src.holder?.level < LEVEL_ADMIN) src.audit(AUDIT_ACCESS_DENIED, "tried to call debug_ref_variables while being below Administrator rank.") tgui_alert(src.mob, "You must be at least an Administrator to use this command.", "Access Denied") diff --git a/code/modules/admin/viewvariables/modifyvariables.dm b/code/modules/admin/viewvariables/modifyvariables.dm index b378fd4df6786..12141006e5823 100644 --- a/code/modules/admin/viewvariables/modifyvariables.dm +++ b/code/modules/admin/viewvariables/modifyvariables.dm @@ -1,7 +1,8 @@ /client/proc/cmd_modify_ticker_variables() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Edit Ticker Variables" - + ADMIN_ONLY + SHOW_VERB_DESC if (ticker == null) boutput(src, "Game hasn't started yet.") else @@ -10,7 +11,8 @@ /client/proc/cmd_modify_controller_variables() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Edit Main Loop Variables" - + ADMIN_ONLY + SHOW_VERB_DESC if (processScheduler == null) boutput(src, "Main loop hasn't started yet.") else @@ -19,7 +21,8 @@ /client/proc/cmd_modify_respawn_variables() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Edit Respawn Controller Variables" - + ADMIN_ONLY + SHOW_VERB_DESC if(!respawn_controller) boutput(src, "Respawn controller not initialized yet.") else @@ -30,7 +33,8 @@ SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Edit Spawn Debug List" set desc = "Directly varedit the spawn debug list, edit its length to 0 to wipe it" - + ADMIN_ONLY + SHOW_VERB_DESC if (global_spawn_dbg == null) boutput(src, "Spawn sebug list is null!") else diff --git a/code/modules/economy/requisition/requisition_contracts.dm b/code/modules/economy/requisition/requisition_contracts.dm index ea33528676127..d17ce66f404bb 100644 --- a/code/modules/economy/requisition/requisition_contracts.dm +++ b/code/modules/economy/requisition/requisition_contracts.dm @@ -21,7 +21,8 @@ SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Requisition Test" set desc = "Generates a specified requisition path and pins it to market." - + ADMIN_ONLY + SHOW_VERB_DESC var/contract_path = input("Specify type path", "Requisition", null, null) if (!contract_path) return if (istext(contract_path)) diff --git a/code/modules/economy/shippingmarket.dm b/code/modules/economy/shippingmarket.dm index 771b0549fe96f..642062d744372 100644 --- a/code/modules/economy/shippingmarket.dm +++ b/code/modules/economy/shippingmarket.dm @@ -731,7 +731,8 @@ /client/proc/cmd_modify_market_variables() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Edit Market Variables" - + ADMIN_ONLY + SHOW_VERB_DESC if (shippingmarket == null) boutput(src, "UH OH!") else src.debug_variables(shippingmarket) @@ -739,7 +740,8 @@ SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Financial Info" set desc = "Shows budget variables and current market prices." - + ADMIN_ONLY + SHOW_VERB_DESC var/payroll = 0 var/totalfunds = wagesystem.station_budget + wagesystem.research_budget + wagesystem.shipping_budget for(var/datum/db_record/R as anything in data_core.bank.records) @@ -780,7 +782,8 @@ SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Alter Budget" set desc = "Add to or subtract from a budget." - + ADMIN_ONLY + SHOW_VERB_DESC var/trans = input("Which budget?", "Budgeting", null, null) in list("Payroll", "Shipping", "Research") if (!trans) return diff --git a/code/modules/fluids/fluid_commands.dm b/code/modules/fluids/fluid_commands.dm index fca8710515163..bd6e4bd8642ea 100644 --- a/code/modules/fluids/fluid_commands.dm +++ b/code/modules/fluids/fluid_commands.dm @@ -6,6 +6,7 @@ client/proc/enable_waterflow(var/enabled as num) set desc = "0 to disable, 1 to enable" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC waterflow_enabled = !!enabled client/proc/delete_fluids() @@ -13,6 +14,7 @@ client/proc/delete_fluids() set desc = "Probably safe to run. Probably." SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC var/exenabled = waterflow_enabled enable_waterflow(0) @@ -45,6 +47,7 @@ client/proc/special_fullbright() SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC message_admins("[key_name(src)] is making all Z1 Sea Lights static...") SPAWN(0) @@ -102,6 +105,7 @@ client/proc/replace_space_exclusive() set desc = "This is the safer one." SET_ADMIN_CAT(ADMIN_CAT_FUN) ADMIN_ONLY + SHOW_VERB_DESC var/list/L = list() var/searchFor = input(usr, "Look for a part of the reagent name (or leave blank for all)", "Add reagent") as null|text @@ -197,6 +201,7 @@ client/proc/dereplace_space() set desc = "uh oh." SET_ADMIN_CAT(ADMIN_CAT_FUN) ADMIN_ONLY + SHOW_VERB_DESC var/answer = alert("Replace Z1 only?",,"Yes","No") diff --git a/code/modules/goonhub/api/api.dm b/code/modules/goonhub/api/api.dm index 630c1e512e999..76af5de158f12 100644 --- a/code/modules/goonhub/api/api.dm +++ b/code/modules/goonhub/api/api.dm @@ -202,6 +202,7 @@ var/global/datum/apiHandler/apiHandler set name = "Debug API Handler" set desc = "Toggle debug logging of API requests" ADMIN_ONLY + SHOW_VERB_DESC apiHandler.debug = !apiHandler.debug if (apiHandler.debug) boutput(src, "Enabled debug logging of API requests") diff --git a/code/modules/goonhub/event_recording/event_recorder.dm b/code/modules/goonhub/event_recording/event_recorder.dm index 184e763c7d00a..21458e3be87fc 100644 --- a/code/modules/goonhub/event_recording/event_recorder.dm +++ b/code/modules/goonhub/event_recording/event_recorder.dm @@ -112,4 +112,5 @@ var/global/datum/eventRecorder/eventRecorder set name = "Debug Event Recorder" set desc = "Display debug information about the event recorder" ADMIN_ONLY + SHOW_VERB_DESC eventRecorder.debug() diff --git a/code/modules/packets/radio_controller.dm b/code/modules/packets/radio_controller.dm index 32f05632d22ef..211a8f8e90efc 100644 --- a/code/modules/packets/radio_controller.dm +++ b/code/modules/packets/radio_controller.dm @@ -106,5 +106,6 @@ function sortTable(n) { set name = "Inspect Radio Frequencies" SET_ADMIN_CAT(ADMIN_CAT_DEBUG) ADMIN_ONLY + SHOW_VERB_DESC global.radio_controller.debug_window(src) diff --git a/code/modules/power/power_parent.dm b/code/modules/power/power_parent.dm index f688a85370d58..87d93c63a3362 100644 --- a/code/modules/power/power_parent.dm +++ b/code/modules/power/power_parent.dm @@ -152,6 +152,8 @@ var/makingpowernetssince = 0 SET_ADMIN_CAT(ADMIN_CAT_SERVER) set desc = "Attempts for fix the powernets." set name = "Fix powernets" + ADMIN_ONLY + SHOW_VERB_DESC unfuck_makepowernets() makepowernets() diff --git a/code/modules/sound/djpanel.dm b/code/modules/sound/djpanel.dm index 97cdab089aa46..7aa656403cf57 100644 --- a/code/modules/sound/djpanel.dm +++ b/code/modules/sound/djpanel.dm @@ -6,6 +6,8 @@ client/proc/open_dj_panel() set name = "DJ Panel" set desc = "Get your groove on!" //"funny function names???? first you use the WRONG INDENT STYLE and now this????" --that fuckhead on the forums SET_ADMIN_CAT(ADMIN_CAT_FUN) + ADMIN_ONLY + SHOW_VERB_DESC if (!isadmin(src) && !src.non_admin_dj) boutput(src, "Only administrators or those with access may use this command.") return FALSE diff --git a/code/procs/loop_debug.dm b/code/procs/loop_debug.dm index 4e1d89f35910b..4af4d0369844a 100644 --- a/code/procs/loop_debug.dm +++ b/code/procs/loop_debug.dm @@ -9,6 +9,8 @@ SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Main Loop Context" set desc = "Displays the current main loop context information (lastproc: lasttask \[world.timeofday\])" + ADMIN_ONLY + SHOW_VERB_DESC if(src.holder) if(!src.mob) return @@ -19,6 +21,8 @@ SET_ADMIN_CAT(ADMIN_CAT_DEBUG) set name = "Main Loop Tick Detail" set desc = "Displays detailed tick information for the main loops that support it." + ADMIN_ONLY + SHOW_VERB_DESC if(src.holder) if(!src.mob) return diff --git a/code/procs/resourceManagement.dm b/code/procs/resourceManagement.dm index 23cba110a3856..2221f4e074a26 100644 --- a/code/procs/resourceManagement.dm +++ b/code/procs/resourceManagement.dm @@ -73,6 +73,7 @@ set name = "Debug Resource Cache" set hidden = 1 ADMIN_ONLY + SHOW_VERB_DESC var/msg = "Resource cache contents:" for (var/r in cachedResources) @@ -85,6 +86,7 @@ set name = "Toggle Resource Cache" set desc = "Enable or disable the resource cache system" ADMIN_ONLY + SHOW_VERB_DESC disableResourceCache = !disableResourceCache boutput(usr, SPAN_NOTICE("Toggled the resource cache [disableResourceCache ? "off" : "on"]")) diff --git a/code/z_adventurezones/numbersstation.dm b/code/z_adventurezones/numbersstation.dm index 74af3bc270dd5..476c36f335de1 100644 --- a/code/z_adventurezones/numbersstation.dm +++ b/code/z_adventurezones/numbersstation.dm @@ -5,6 +5,7 @@ var/global/shut_up_about_the_fucking_numbers_station = 1 set desc = "I DON'T CARE WHEN SPACE NUMBERS STATION LINCOLNSHIRE IS BROADCASTING SO SHUT UP ABOUT IT" SET_ADMIN_CAT(ADMIN_CAT_SERVER_TOGGLES) ADMIN_ONLY + SHOW_VERB_DESC shut_up_about_the_fucking_numbers_station = !(shut_up_about_the_fucking_numbers_station) logTheThing(LOG_ADMIN, usr, "toggled numbers station alerts [shut_up_about_the_fucking_numbers_station ? "off" : "on"].")
ID
Name
Type