From e3229758efb726d9cf2fec567d5393ab40045d27 Mon Sep 17 00:00:00 2001 From: Ren Erthilo Date: Thu, 3 May 2012 02:56:55 +0100 Subject: [PATCH] TG: Adds an adminverb to quickly take control of a mob, mostly for testing Mech fabricator can no longer sync while it has a queue Fixes resisting out of cuffbuckling. Revision: r3449 Author: VivianFoxfoo --- code/modules/admin/verbs/debug.dm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index b12ab65dec4..05a6c03c3f3 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -505,6 +505,24 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that H.update_clothing() else alert("Invalid mob") + //feedback_add_details("admin_verb","GFA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + +/client/proc/cmd_assume_direct_control(var/mob/M in world) + set category = "Admin" + set name = "Assume direct control" + set desc = "Direct intervention" + + if(M.ckey) + if(alert("This mob is being controlled by [M.ckey]. Are you sure you wish to assume control of it? [M.ckey] will be made a ghost.",,"Yes","No") != "Yes") + return + else + var/mob/dead/observer/ghost = new/mob/dead/observer() + ghost.ckey = M.ckey; + var/mob/adminmob = src.mob + M.ckey = src.ckey; + if( isobserver(adminmob) ) + del(adminmob) + //feedback_add_details("admin_verb","ADC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_admin_dress(var/mob/living/carbon/human/M in world)