From a24c1c429992d0ebd1e6c1f6b65e220f014f1b19 Mon Sep 17 00:00:00 2001 From: S34N <12197162+S34NW@users.noreply.github.com> Date: Sat, 30 Jul 2022 12:15:11 +0100 Subject: [PATCH] Prevents players from voluntarily ghosting when adminfrozen (#18620) * nope * Update code/modules/mob/dead/observer/observer.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> --- code/modules/mob/dead/observer/observer.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 58a23a655f5..80b4e1fe0b7 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -193,6 +193,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp var/warningmsg = null var/obj/machinery/cryopod/P = istype(loc, /obj/machinery/cryopod) && loc + if(frozen) + to_chat(src, "You cannot do this while admin frozen.") + message_admins("[key_name_admin(src)] tried to ghost while admin frozen") + return + if(P) if(TOO_EARLY_TO_GHOST) warningmsg = "It's too early in the shift to enter cryo"