diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index f76b0fc3241..04d83139453 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -451,6 +451,10 @@ M.client.perspective = EYE_PERSPECTIVE M.client.eye = src + else //because why the fuck would you keep going if the mob isn't in the pod + user << "You stop putting [M] into the cryopod." + return + if(orient_right) icon_state = "[occupied_icon_state]-r" else @@ -458,9 +462,17 @@ M << "[on_enter_occupant_message]" M << "If you ghost, log out or close your client now, your character will shortly be permanently removed from the round." + occupant = M time_entered = world.time + if(findtext("[M.key]","@",1,2)) + var/FT = replacetext(M.key, "@", "") + for(var/mob/dead/observer/Gh in respawnable_list) //this may not be foolproof but it seemed like a better option than 'in world' + if(Gh.key == FT) + if(Gh.client && Gh.client.holder) //just in case someone has a byond name with @ at the start, which I don't think is even possible but whatever + Gh << "Warning: Your body has entered cryostorage." + // Book keeping! var/turf/location = get_turf(src) log_admin("[key_name_admin(M)] has entered a stasis pod. (JMP)") @@ -530,6 +542,9 @@ if(L.client) L.client.perspective = EYE_PERSPECTIVE L.client.eye = src + else + user << "You stop [L == user ? "climbing into the cryo pod." : "putting [L] into the cryo pod."]" + return if(orient_right) icon_state = "[occupied_icon_state]-r" @@ -541,6 +556,13 @@ occupant = L time_entered = world.time + if(findtext("[L.key]","@",1,2)) + var/FT = replacetext(L.key, "@", "") + for(var/mob/dead/observer/Gh in respawnable_list) //this may not be foolproof but it seemed like a better option than 'in world' + if(Gh.key == FT) + if(Gh.client && Gh.client.holder) //just in case someone has a byond name with @ at the start, which I don't think is even possible but whatever + Gh << "Warning: Your body has entered cryostorage." + // Book keeping! log_admin("[key_name_admin(L)] has entered a stasis pod. (JMP)") message_admins("[key_name_admin(L)] has entered a stasis pod.")