mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-16 15:56:54 +01:00
15 lines
561 B
Plaintext
15 lines
561 B
Plaintext
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2025 Citadel Station Developers *//
|
|
|
|
/datum/admins/proc/admin_ghost() as /mob/observer/dead
|
|
if(istype(owner.mob, /mob/observer/dead))
|
|
return owner.mob
|
|
var/mob/leaving_body = owner.mob
|
|
var/mob/observer/dead/new_ghost = leaving_body.ghostize(TRUE)
|
|
new_ghost.admin_ghosted = TRUE
|
|
// setup audiovisual redirect
|
|
leaving_body.teleop = new_ghost
|
|
// mark them with the snowflake "@" of ss13 adminghost frameworking
|
|
leaving_body.key = "@[owner.key]"
|
|
return new_ghost
|