Adds a new admin/runtime verb that allows you to easily access global variables without lag (#22407)

* fuq yeah

* AA review
This commit is contained in:
Contrabang
2023-09-25 19:03:02 -04:00
committed by GitHub
parent 2c19219c40
commit 6118cc8f48
2 changed files with 41 additions and 11 deletions
+15 -11
View File
@@ -180,7 +180,8 @@ GLOBAL_LIST_INIT(admin_verbs_debug, list(
/client/proc/debug_timers,
/client/proc/force_verb_bypass,
/client/proc/show_gc_queues,
/client/proc/toggle_mctabs
/client/proc/toggle_mctabs,
/client/proc/debug_global_variables
))
GLOBAL_LIST_INIT(admin_verbs_possess, list(
/proc/possess,
@@ -239,6 +240,18 @@ GLOBAL_LIST_INIT(admin_verbs_maintainer, list(
/client/proc/cinematic, // This will break everyone's screens in the round. Dont use this for adminbus.
/client/proc/throw_runtime, // Do I even need to explain why this is locked?
))
GLOBAL_LIST_INIT(view_runtimes_verbs, list(
/client/proc/view_runtimes,
/client/proc/cmd_display_del_log,
/client/proc/cmd_display_del_log_simple,
/client/proc/toggledebuglogs,
/client/proc/debug_variables, /*allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify*/
/client/proc/ss_breakdown,
/client/proc/show_gc_queues,
/client/proc/toggle_mctabs,
/client/proc/debug_global_variables,
/client/proc/visualise_active_turfs
))
/client/proc/on_holder_add()
if(chatOutput && chatOutput.loaded)
@@ -287,16 +300,7 @@ GLOBAL_LIST_INIT(admin_verbs_maintainer, list(
if(holder.rights & R_MAINTAINER)
verbs += GLOB.admin_verbs_maintainer
if(holder.rights & R_VIEWRUNTIMES)
// TODO - Make a viewruntimes list at this point - its getting silly
verbs += /client/proc/view_runtimes
verbs += /client/proc/cmd_display_del_log
verbs += /client/proc/cmd_display_del_log_simple
verbs += /client/proc/toggledebuglogs
verbs += /client/proc/debug_variables /*allows us to -see- the variables of any instance in the game. +VAREDIT needed to modify*/
verbs += /client/proc/ss_breakdown
verbs += /client/proc/show_gc_queues
verbs += /client/proc/toggle_mctabs
verbs += /client/proc/visualise_active_turfs
verbs += GLOB.view_runtimes_verbs
spawn(1) // This setting exposes the profiler for people with R_VIEWRUNTIMES. They must still have it set in cfg/admin.txt
control_freak = 0