From 208f5d3e2c77ac568e4dd68f7256bfaaf7b143ad Mon Sep 17 00:00:00 2001 From: DreamySkrell <107256943+DreamySkrell@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:58:12 +0200 Subject: [PATCH] 1 (#17568) Co-authored-by: DreamySkrell <> --- code/modules/admin/admin_verbs.dm | 16 +++ code/modules/admin/verbs/adminjump.dm | 101 ++++++++++++++++++ .../changelogs/DreamySkrell-jump-to-verbs.yml | 44 ++++++++ 3 files changed, 161 insertions(+) create mode 100644 html/changelogs/DreamySkrell-jump-to-verbs.yml diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 8ae24ca8945..7617b368c39 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -32,6 +32,10 @@ var/list/admin_verbs_admin = list( /client/proc/getserverlog, /*allows us to fetch server logs (diary) for other days*/ /client/proc/view_signal_log, /*allows admins to check the log of signaler uses*/ /client/proc/jumptocoord, /*we ghost and jump to a coordinate*/ + /client/proc/jumptozlevel, + /client/proc/jumptoshuttle, + /client/proc/jumptoship, + /client/proc/jumptosector, /client/proc/Getmob, /*teleports a mob to our location*/ /client/proc/Getkey, /*teleports a mob with a certain ckey to our location*/ // /client/proc/sendmob, /*sends a mob somewhere*/ -Removed due to it needing two sorting procs to work, which were executed every time an admin right-clicked. ~Errorage */ @@ -207,6 +211,10 @@ var/list/admin_verbs_debug = list( /client/proc/Jump, /client/proc/jumptomob, /client/proc/jumptocoord, + /client/proc/jumptozlevel, + /client/proc/jumptoshuttle, + /client/proc/jumptoship, + /client/proc/jumptosector, /client/proc/dsay, /client/proc/toggle_recursive_explosions, /client/proc/restart_sql, @@ -297,6 +305,10 @@ var/list/admin_verbs_hideable = list( /client/proc/cmd_cciaa_say, /datum/admins/proc/access_news_network, /client/proc/jumptocoord, + /client/proc/jumptozlevel, + /client/proc/jumptoshuttle, + /client/proc/jumptoship, + /client/proc/jumptosector, /client/proc/colorooc, /client/proc/add_client_color, /datum/admins/proc/force_mode_latespawn, @@ -440,6 +452,10 @@ var/list/admin_verbs_dev = list( //will need to be altered - Ryan784 /client/proc/cmd_admin_pm_context, /client/proc/cmd_admin_pm_panel, //admin-pm list /client/proc/jumptocoord, /*we ghost and jump to a coordinate*/ + /client/proc/jumptozlevel, + /client/proc/jumptoshuttle, + /client/proc/jumptoship, + /client/proc/jumptosector, /client/proc/cmd_dev_say, /client/proc/nanomapgen_DumpImage, /client/proc/admin_ghost, diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm index 707338efd71..b90e399fbf8 100644 --- a/code/modules/admin/verbs/adminjump.dm +++ b/code/modules/admin/verbs/adminjump.dm @@ -90,6 +90,107 @@ else alert("Admin jumping disabled") +/client/proc/jumptozlevel() + set category = "Admin" + set name = "Jump to Z-Level" + + if(!check_rights(R_ADMIN|R_MOD|R_DEBUG|R_DEV)) + return + + if(config.allow_admin_jump) + var/list/zlevels = list() + for(var/z=0, z