Allows people to toggle the cryocell auto-eject timer on and off (#29716)

* Adds toggle to cryocell auto-eject timer

* Removed unnecessary return

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

* Adds examine message

* Adds alert when entering cryocell with auto-eject disabled. Clicking it lets you resist out after 1 minute, even if unconscious.

---------

Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
PollardTheDragon
2025-07-30 01:01:27 +00:00
committed by GitHub
co-authored by Luc
parent f02374ef13
commit 67671bf190
6 changed files with 58 additions and 1 deletions
@@ -1009,6 +1009,19 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven
update_inv_handcuffed()
update_hands_hud()
// Called to escape a cryocell
/mob/living/carbon/proc/cryo_resist(obj/machinery/atmospherics/unary/cryo_cell/cell)
var/effective_breakout_time = 1 MINUTES
if(stat != UNCONSCIOUS)
effective_breakout_time = 5 SECONDS
if(has_status_effect(STATUS_EFFECT_EXIT_CRYOCELL))
to_chat(src, "<span class='notice'>You are already trying to exit [cell].</span>")
return
apply_status_effect(STATUS_EFFECT_EXIT_CRYOCELL)
cell.attempt_escape(src, effective_breakout_time)
/mob/living/carbon/get_standard_pixel_y_offset()
if(IS_HORIZONTAL(src))
if(buckled)
+4
View File
@@ -733,6 +733,10 @@
///proc extender of [/mob/living/verb/resist] meant to make the process queable if the server is overloaded when the verb is called
/mob/living/proc/run_resist()
if(istype(loc, /obj/machinery/atmospherics/unary/cryo_cell))
var/obj/C = loc
C.container_resist(src)
return
if(!can_resist())
return
changeNext_move(CLICK_CD_RESIST)