/obj/structure/curtain name = "curtain" icon = 'icons/obj/curtain.dmi' icon_state = "closed" plane = MOB_PLANE layer = ABOVE_MOB_LAYER opacity = 1 density = 0 anchored = TRUE integrity = 40 integrity_failure = 30 integrity_max = 40 var/obj/item/stack/mat = /obj/item/stack/material/plastic /obj/structure/curtain/open icon_state = "open" plane = OBJ_PLANE layer = 3.3 //3.3 so its above windows, not the same as them. anything below 3.3 puts the curtain beneath the window sprite in current build opacity = 0 /obj/structure/curtain/attack_hand(mob/user, datum/event_args/actor/clickchain/e_args) playsound(get_turf(loc), "rustle", 15, 1, -5) toggle() ..() /obj/structure/curtain/proc/toggle() set_opacity(!opacity) if(opacity) icon_state = "closed" plane = MOB_PLANE layer = ABOVE_MOB_LAYER else icon_state = "open" plane = OBJ_PLANE layer = 3.3 /obj/structure/curtain/attackby(obj/item/P, mob/user) if(user.a_intent == INTENT_HARM) return ..() if(P.is_wirecutter()) playsound(src, P.tool_sound, 50, 1) to_chat(user, "You start to cut [src].") if(do_after(user, 10)) to_chat(user, "You cut [src].") new mat(src.loc, 3) qdel(src) return else src.attack_hand(user) return /obj/structure/curtain/black name = "black curtain" color = "#222222" /obj/structure/curtain/open/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/ashlander name = "hide curtains" desc = "A curtain fasioned out of Goliath hide - frequently used to keep flying ash out of a building." icon = 'icons/obj/lavaland.dmi' icon_state = "goliath_open" /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" /obj/structure/curtain/ashlander name = "hide curtains" desc = "A curtain fasioned out of Goliath hide - frequently used to keep flying ash out of a building." icon = 'icons/obj/lavaland.dmi' icon_state = "goliath_closed" mat = /obj/item/stack/animalhide/goliath_hide /obj/structure/curtain/ashlander/toggle() set_opacity(!opacity) if(opacity) icon_state = "goliath_closed" plane = MOB_PLANE layer = ABOVE_MOB_LAYER else icon_state = "goliath_open" plane = OBJ_PLANE layer = 3.3