From d5314016e0a46253c1af12feb56721d4a1bc5468 Mon Sep 17 00:00:00 2001 From: quotefox Date: Wed, 14 Sep 2022 22:25:13 +0100 Subject: [PATCH] admin preload rsc resources --- code/modules/admin/admin.dm | 14 ++++++++++++++ code/modules/admin/admin_verbs.dm | 1 + 2 files changed, 15 insertions(+) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index acdfc6052..fa5d0d358 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1040,3 +1040,17 @@ message_admins("[key_name_admin(usr)] told everybody to man up.") SSblackbox.record_feedback("tally", "admin_verb", 1, "Man Up Global") +/client/proc/cmd_admin_preload_resource(F as file) + set category = "Special Verbs" + set name = "Preload Resource" + + if(!check_rights(R_ADMIN)) + return + + var/resource = fcopy_rsc(F) + for(var/thing in GLOB.clients) + var/client/C = thing + if (!C) + continue + C.Export("##action=load_rsc", resource) + message_admins("[key_name_admin(usr)] preloaded resouce [F].") \ No newline at end of file diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 149e020e8..8831c5955 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -57,6 +57,7 @@ GLOBAL_LIST_INIT(admin_verbs_admin, world.AVerbsAdmin()) /client/proc/cmd_admin_local_narrate, /*sends text to all mobs within view of atom*/ /client/proc/cmd_admin_man_up, //CIT CHANGE - adds man up verb /client/proc/cmd_admin_man_up_global, //CIT CHANGE - ditto + /client/proc/cmd_admin_preload_resource, /client/proc/cmd_admin_create_centcom_report, /client/proc/cmd_change_command_name, /client/proc/cmd_admin_check_player_exp, /* shows players by playtime */