diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm index a85563329d7..d38963d9e76 100644 --- a/code/game/machinery/Sleeper.dm +++ b/code/game/machinery/Sleeper.dm @@ -49,9 +49,10 @@ reset_chem_buttons() /obj/machinery/sleeper/update_icon() - icon_state = initial(icon_state) if(state_open) - icon_state += "-open" + icon_state = "[initial(icon_state)]-open" + else + icon_state = initial(icon_state) /obj/machinery/sleeper/container_resist(mob/living/user) visible_message("[occupant] emerges from [src]!", @@ -68,10 +69,12 @@ /obj/machinery/sleeper/open_machine() if(!state_open && !panel_open) + flick("[initial(icon_state)]-anim", src) ..() /obj/machinery/sleeper/close_machine(mob/user) if((isnull(user) || istype(user)) && state_open && !panel_open) + flick("[initial(icon_state)]-anim", src) ..(user) var/mob/living/mob_occupant = occupant if(mob_occupant && mob_occupant.stat != DEAD) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index f6b75f6f318..2a8e8c78d08 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -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. diff --git a/icons/obj/cryogenics.dmi b/icons/obj/cryogenics.dmi index 114fd7a38d7..18a823a224b 100644 Binary files a/icons/obj/cryogenics.dmi and b/icons/obj/cryogenics.dmi differ diff --git a/icons/obj/machines/sleeper.dmi b/icons/obj/machines/sleeper.dmi index b027d0d7b1c..ff4c7cbdcb5 100644 Binary files a/icons/obj/machines/sleeper.dmi and b/icons/obj/machines/sleeper.dmi differ