Improves admin interaction with AIs (#22769)

* admin-ai improvements

* Update code/modules/admin/misc_admin_procs.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* brug

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Contrabang
2023-10-22 12:49:59 -04:00
committed by GitHub
co-authored by Luc
parent 0e455176b2
commit 12b73a4d45
4 changed files with 47 additions and 8 deletions
+4
View File
@@ -368,6 +368,7 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
if(isobserver(mob))
//re-enter
var/mob/dead/observer/ghost = mob
var/old_turf = get_turf(ghost)
ghost.can_reenter_corpse = 1 //just in-case.
ghost.reenter_corpse()
log_admin("[key_name(usr)] re-entered their body")
@@ -375,6 +376,9 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
if(ishuman(mob))
var/mob/living/carbon/human/H = mob
H.regenerate_icons() // workaround for #13269
if(isAI(mob)) // client.mob, built in byond client var
var/mob/living/silicon/ai/ai = mob
ai.eyeobj.setLoc(old_turf)
else if(isnewplayer(mob))
to_chat(src, "<font color='red'>Error: Aghost: Can't admin-ghost whilst in the lobby. Join or observe first.</font>")
else