mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
[Ready] Added animations to cryo/sleepers opening/closing (#42289)
* Added animations to cryo/sleepers opening/closing Also changed a bit of internal handling of icons of cryo Images -> mutable appearances No more updating icons every click on anything in the ui * Back to images * Actually fixes images * Use of flick and animation sprites Changed the way animations are done to use flick proc instead of animate proc Changed the way animations of cryo cells are organazed in a dmi, now separate icon_state for opening and closing * Support for resprites of the cryo subtypes Support for resprites of the cryo subtypes
This commit is contained in:
@@ -89,6 +89,7 @@
|
||||
beaker = null
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/cryo_cell/update_icon()
|
||||
|
||||
cut_overlays()
|
||||
|
||||
if(panel_open)
|
||||
@@ -248,17 +249,18 @@
|
||||
/obj/machinery/atmospherics/components/unary/cryo_cell/open_machine(drop = FALSE)
|
||||
if(!state_open && !panel_open)
|
||||
on = FALSE
|
||||
..()
|
||||
for(var/mob/M in contents) //only drop mobs
|
||||
M.forceMove(get_turf(src))
|
||||
if(isliving(M))
|
||||
var/mob/living/L = M
|
||||
L.update_mobility()
|
||||
occupant = null
|
||||
update_icon()
|
||||
flick("pod-open-anim", src)
|
||||
..()
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/cryo_cell/close_machine(mob/living/carbon/user)
|
||||
if((isnull(user) || istype(user)) && state_open && !panel_open)
|
||||
flick("pod-close-anim", src)
|
||||
..(user)
|
||||
return occupant
|
||||
|
||||
@@ -389,6 +391,7 @@
|
||||
on = FALSE
|
||||
else if(!state_open)
|
||||
on = TRUE
|
||||
update_icon()
|
||||
. = TRUE
|
||||
if("door")
|
||||
if(state_open)
|
||||
@@ -406,7 +409,6 @@
|
||||
usr.put_in_hands(beaker)
|
||||
beaker = null
|
||||
. = TRUE
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/cryo_cell/update_remote_sight(mob/living/user)
|
||||
return // we don't see the pipe network while inside cryo.
|
||||
|
||||
Reference in New Issue
Block a user