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:
Remie Richards
2015-12-20 21:21:33 +00:00
parent 10712f9553
commit 5f257aa8fe
5 changed files with 68 additions and 1 deletions
+2 -1
View File
@@ -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"