#define SHOWER_OPEN_LAYER OBJ_LAYER + 0.4 #define SHOWER_CLOSED_LAYER MOB_LAYER + 0.1 /obj/structure/curtain name = "curtain" icon = 'icons/obj/curtain.dmi' icon_state = "closed" layer = SHOWER_OPEN_LAYER opacity = 1 density = 0 /obj/structure/curtain/open icon_state = "open" layer = SHOWER_CLOSED_LAYER opacity = 0 /obj/structure/curtain/bullet_act(obj/item/projectile/P, def_zone) if(!P.nodamage) visible_message("[P] tears [src] down!") qdel(src) else ..(P, def_zone) /obj/structure/curtain/attack_hand(mob/user) playsound(get_turf(loc), "rustle", 15, 1, -5) toggle() ..() /obj/structure/curtain/proc/toggle() opacity = !opacity if(opacity) icon_state = "closed" layer = SHOWER_CLOSED_LAYER else icon_state = "open" layer = SHOWER_OPEN_LAYER /obj/structure/curtain/black name = "black curtain" color = "#222222" /obj/structure/curtain/medical name = "plastic curtain" color = "#B8F5E3" alpha = 200 /obj/structure/curtain/open/bed name = "bed curtain" color = "#854636" /obj/structure/curtain/open/privacy name = "privacy curtain" color = "#B8F5E3" /obj/structure/curtain/open/shower name = "shower curtain" color = "#ACD1E9" alpha = 200 /obj/structure/curtain/open/shower/engineering color = "#FFA500" /obj/structure/curtain/open/shower/medical color = "#B8F5E3" /obj/structure/curtain/open/shower/security color = "#AA0000" #undef SHOWER_OPEN_LAYER #undef SHOWER_CLOSED_LAYER