mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
Admins with +DEBUG can now Load map files in the _map/templates folder where they (or their ghost) is standing.
This commit is contained in:
@@ -135,7 +135,8 @@ var/list/admin_verbs_debug = list(
|
||||
/client/proc/cmd_display_del_log,
|
||||
/client/proc/reset_latejoin_spawns,
|
||||
/client/proc/create_outfits,
|
||||
/client/proc/debug_huds
|
||||
/client/proc/debug_huds,
|
||||
/client/proc/map_template_load
|
||||
)
|
||||
var/list/admin_verbs_possess = list(
|
||||
/proc/possess,
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
/client/proc/map_template_load()
|
||||
set category = "Debug"
|
||||
set name = "Load Map Template"
|
||||
|
||||
var/turf/T = get_turf(mob)
|
||||
if(!T)
|
||||
return
|
||||
var/map = input(usr, "Choose a Map Template to load at your CURRENT LOCATION","Load Map Template") as null|anything in flist("_maps/templates/")
|
||||
if(!map)
|
||||
return
|
||||
var/formatted_map = "_maps/templates/[map]"
|
||||
var/mapfile = file(formatted_map)
|
||||
if(isfile(mapfile))
|
||||
maploader.load_map(mapfile, T.x, T.y, T.z)
|
||||
message_admins("<span class='adminnotice'>[key_name_admin(usr)] has loaded a map template ([map]) at <A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[T.x];Y=[T.y];Z=[T.z]'>(JMP)</a></span>")
|
||||
else
|
||||
usr << "Bad map file"
|
||||
Reference in New Issue
Block a user