Adds a basic AI controller info panel to VV. (#29898)

This commit is contained in:
warriorstar-orion
2025-07-29 19:17:12 -04:00
committed by GitHub
parent 06f19cdecb
commit 2a81f86af7
13 changed files with 319 additions and 21 deletions
+20
View File
@@ -1305,3 +1305,23 @@ GLOBAL_LIST_INIT(view_logs_verbs, list(
B.to_backup_disk(get_turf(usr))
/proc/ghost_follow_uid(mob/user, uid)
var/client/client = user.client
if(!isobserver(user))
if(!check_rights(R_ADMIN|R_MOD)) // Need to be mod or admin to aghost
return
user.client.admin_ghost()
var/datum/target = locateUID(uid)
if(QDELETED(target))
to_chat(user, "<span class='warning'>This datum has been deleted!</span>")
return
if(istype(target, /datum/mind))
var/datum/mind/mind = target
if(!ismob(mind.current))
to_chat(user, "<span class='warning'>This can only be used on instances of type /mob</span>")
return
target = mind.current
var/mob/dead/observer/A = client.mob
A.ManualFollow(target)
+1 -19
View File
@@ -149,25 +149,7 @@ RESTRICT_TYPE(/datum/ui_module/admin/antagonist_menu)
if("pm")
ui.user.client.cmd_admin_pm(params["ckey"], null)
if("follow")
var/client/C = ui.user.client
if(!isobserver(ui.user))
if(!check_rights(R_ADMIN|R_MOD)) // Need to be mod or admin to aghost
return
C.admin_ghost()
var/datum/target = locateUID(params["datum_uid"])
if(QDELETED(target))
to_chat(ui.user, "<span class='warning'>This datum has been deleted!</span>")
return
if(istype(target, /datum/mind))
var/datum/mind/mind = target
if(!ismob(mind.current))
to_chat(ui.user, "<span class='warning'>This can only be used on instances of type /mob</span>")
return
target = mind.current
var/mob/dead/observer/A = C.mob
A.ManualFollow(target)
ghost_follow_uid(ui.user, params["datum_uid"])
if("obs")
var/client/C = ui.user.client
var/datum/mind/mind = locateUID(params["mind_uid"])