mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user