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
This commit is contained in:
Ren Erthilo
2012-05-03 02:56:55 +01:00
parent 18dcf1c026
commit e3229758ef

View File

@@ -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)