From 78dc3f267d349b6f99d66c65f74876c06c7ae948 Mon Sep 17 00:00:00 2001 From: misterlayne Date: Fri, 5 Jun 2026 01:53:35 -0400 Subject: [PATCH] Adds a verb to quickly spawn and inhabit a mob. --- code/modules/admin/admin_verbs.dm | 2 ++ code/modules/admin/verbs/randomverbs.dm | 15 +++++++++++++++ html/changelogs/cinnilen-mob_spawn_debug.yml | 7 +++++++ 3 files changed, 24 insertions(+) create mode 100644 html/changelogs/cinnilen-mob_spawn_debug.yml diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 80f442906a3..5db241502e8 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -232,6 +232,7 @@ GLOBAL_PROTECT(admin_verbs_debug) /client/proc/cmd_regenerate_asset_cache, /client/proc/cmd_clear_smart_asset_cache, /client/proc/select_job_pack_debug, + /client/proc/spawn_mob, ) GLOBAL_LIST_INIT(admin_verbs_possess, list(/proc/possess, GLOBAL_PROC_REF(release))) GLOBAL_PROTECT(admin_verbs_possess) @@ -295,6 +296,7 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list( /client/proc/toggle_combo_hud, /client/proc/debug_huds, /client/proc/roll_admin_dice, + /client/proc/spawn_mob, )) GLOBAL_PROTECT(admin_verbs_hideable) diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index a13aa89c66a..df4215960f9 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -1061,3 +1061,18 @@ Traitors and the like can also be revived with the previous role mostly intact. message_admins(span_adminnotice("Messenger Bird Letter: [key_name_admin(usr)] -> [key_name_admin(M)] : [msg]")) log_game("LETTER RECEIVED: [key_name(usr)] -> [key_name(M)]: \n[msg]") SSblackbox.record_feedback("tally", "admin_verb_send_messenger_bird", 1, "Messenger Bird Letter") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + +/client/proc/spawn_mob() + set name = "Spawn/Inhabit Mob" + set category = "Debug" + set desc = "Spawn and inhabit a human mob." + + if(!check_rights(R_ADMIN)) + return + + if(isnewplayer(src.mob)) + to_chat(src, "Thou shalt not spawn a debug mob in the lobby area!") + return + else + var/mob/living/carbon/human/species/human/northern/NM = new(get_turf(src.mob)) + NM.key = src.key diff --git a/html/changelogs/cinnilen-mob_spawn_debug.yml b/html/changelogs/cinnilen-mob_spawn_debug.yml new file mode 100644 index 00000000000..2c695f79520 --- /dev/null +++ b/html/changelogs/cinnilen-mob_spawn_debug.yml @@ -0,0 +1,7 @@ + +author: "cinnilen" + +delete-after: True + +changes: + - rscadd: "Added debug verb to spawn a mob and inhabit it quickly.""