/* * False Walls */ /obj/structure/falsewall name = "wall" desc = "A huge chunk of metal used to separate rooms." anchored = 1 icon = 'icons/turf/walls/wall.dmi' icon_state = "wall" var/mineral = "metal" var/walltype = "metal" var/opening = 0 density = 1 opacity = 1 canSmoothWith = list( /turf/simulated/wall, /turf/simulated/wall/r_wall, /obj/structure/falsewall, /obj/structure/falsewall/reinforced, // WHY DO WE SMOOTH WITH FALSE R-WALLS WHEN WE DON'T SMOOTH WITH REAL R-WALLS. /turf/simulated/wall/rust, /turf/simulated/wall/r_wall/rust) smooth = SMOOTH_TRUE can_be_unanchored = 0 /obj/structure/falsewall/attack_hand(mob/user) if(opening) return opening = 1 if(density) do_the_flick() sleep(5) if(!qdeleted(src)) density = 0 SetOpacity(0) update_icon() else var/srcturf = get_turf(src) for(var/mob/living/obstacle in srcturf) //Stop people from using this as a shield opening = 0 return do_the_flick() density = 1 sleep(5) if(!qdeleted(src)) SetOpacity(1) update_icon() opening = 0 /obj/structure/falsewall/proc/do_the_flick() if(density) smooth = SMOOTH_FALSE clear_smooth_overlays() icon_state = "fwall_opening" else icon_state = "fwall_closing" /obj/structure/falsewall/update_icon()//Calling icon_update will refresh the smoothwalls if it's closed, otherwise it will make sure the icon is correct if it's open if(density) smooth = SMOOTH_TRUE smooth_icon(src) icon_state = "" else icon_state = "fwall_open" /obj/structure/falsewall/proc/ChangeToWall(delete = 1) var/turf/T = get_turf(src) if(!walltype || walltype == "metal") T.ChangeTurf(/turf/simulated/wall) else T.ChangeTurf(text2path("/turf/simulated/wall/mineral/[walltype]")) if(delete) qdel(src) return T /obj/structure/falsewall/attackby(obj/item/weapon/W, mob/user, params) if(opening) user << "You must wait until the door has stopped moving!" return if(density) var/turf/T = get_turf(src) if(T.density) user << "[src] is blocked!" return if(istype(W, /obj/item/weapon/screwdriver)) if (!istype(T, /turf/simulated/floor)) user << "[src] bolts must be tightened on the floor!" return user.visible_message("[user] tightens some bolts on the wall.", "You tighten the bolts on the wall.") ChangeToWall() if(istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/WT = W if(WT.remove_fuel(0,user)) dismantle(user) else user << "You can't reach, close it first!" if(istype(W, /obj/item/weapon/gun/energy/plasmacutter)) dismantle(user) if(istype(W, /obj/item/weapon/pickaxe/drill/jackhammer)) var/obj/item/weapon/pickaxe/drill/jackhammer/D = W D.playDigSound() dismantle(user) /obj/structure/falsewall/proc/dismantle(mob/user) user.visible_message("[user] dismantles the false wall.", "You dismantle the false wall.") new /obj/structure/girder/displaced(loc) if(mineral == "metal") if(istype(src, /obj/structure/falsewall/reinforced)) new /obj/item/stack/sheet/plasteel(loc) new /obj/item/stack/sheet/plasteel(loc) else new /obj/item/stack/sheet/metal(loc) new /obj/item/stack/sheet/metal(loc) else var/P = text2path("/obj/item/stack/sheet/mineral/[mineral]") new P(loc) new P(loc) playsound(src, 'sound/items/Welder.ogg', 100, 1) qdel(src) /obj/structure/falsewall/storage_contents_dump_act(obj/item/weapon/storage/src_object, mob/user) return 0 /* * False R-Walls */ /obj/structure/falsewall/reinforced name = "reinforced wall" desc = "A huge chunk of reinforced metal used to separate rooms." icon = 'icons/turf/walls/reinforced_wall.dmi' icon_state = "r_wall" walltype = "rwall" /obj/structure/falsewall/reinforced/ChangeToWall(delete = 1) var/turf/T = get_turf(src) T.ChangeTurf(/turf/simulated/wall/r_wall) if(delete) qdel(src) return T /* * Uranium Falsewalls */ /obj/structure/falsewall/uranium name = "uranium wall" desc = "A wall with uranium plating. This is probably a bad idea." icon = 'icons/turf/walls/uranium_wall.dmi' icon_state = "uranium" mineral = "uranium" walltype = "uranium" var/active = null var/last_event = 0 canSmoothWith = list(/obj/structure/falsewall/uranium, /turf/simulated/wall/mineral/uranium) /obj/structure/falsewall/uranium/attackby(obj/item/weapon/W, mob/user, params) radiate() ..() /obj/structure/falsewall/uranium/attack_hand(mob/user) radiate() ..() /obj/structure/falsewall/uranium/proc/radiate() if(!active) if(world.time > last_event+15) active = 1 radiation_pulse(get_turf(src), 0, 3, 15, 1) for(var/turf/simulated/wall/mineral/uranium/T in orange(1,src)) T.radiate() last_event = world.time active = null return return /* * Other misc falsewall types */ /obj/structure/falsewall/gold name = "gold wall" desc = "A wall with gold plating. Swag!" icon = 'icons/turf/walls/gold_wall.dmi' icon_state = "gold" mineral = "gold" walltype = "gold" canSmoothWith = list(/obj/structure/falsewall/gold, /turf/simulated/wall/mineral/gold) /obj/structure/falsewall/silver name = "silver wall" desc = "A wall with silver plating. Shiny." icon = 'icons/turf/walls/silver_wall.dmi' icon_state = "silver" mineral = "silver" walltype = "silver" canSmoothWith = list(/obj/structure/falsewall/silver, /turf/simulated/wall/mineral/silver) /obj/structure/falsewall/diamond name = "diamond wall" desc = "A wall with diamond plating. You monster." icon = 'icons/turf/walls/diamond_wall.dmi' icon_state = "diamond" mineral = "diamond" walltype = "diamond" canSmoothWith = list(/obj/structure/falsewall/diamond, /turf/simulated/wall/mineral/diamond) /obj/structure/falsewall/plasma name = "plasma wall" desc = "A wall with plasma plating. This is definitely a bad idea." icon = 'icons/turf/walls/plasma_wall.dmi' icon_state = "plasma" mineral = "plasma" walltype = "plasma" canSmoothWith = list(/obj/structure/falsewall/plasma, /turf/simulated/wall/mineral/plasma) /obj/structure/falsewall/plasma/attackby(obj/item/weapon/W, mob/user, params) if(W.is_hot() > 300) message_admins("Plasma falsewall ignited by [key_name_admin(user)](?) (FLW) in ([x],[y],[z] - JMP)",0,1) log_game("Plasma falsewall ignited by [key_name(user)] in ([x],[y],[z])") burnbabyburn() return ..() /obj/structure/falsewall/plasma/proc/burnbabyburn(user) playsound(src, 'sound/items/Welder.ogg', 100, 1) atmos_spawn_air(SPAWN_HEAT | SPAWN_TOXINS, 400) new /obj/structure/girder/displaced(loc) qdel(src) /obj/structure/falsewall/plasma/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume) if(exposed_temperature > 300) burnbabyburn() /obj/structure/falsewall/clown name = "bananium wall" desc = "A wall with bananium plating. Honk!" icon = 'icons/turf/walls/bananium_wall.dmi' icon_state = "bananium" mineral = "bananium" walltype = "bananium" canSmoothWith = list(/obj/structure/falsewall/clown, /turf/simulated/wall/mineral/clown) /obj/structure/falsewall/sandstone name = "sandstone wall" desc = "A wall with sandstone plating. Rough." icon = 'icons/turf/walls/sandstone_wall.dmi' icon_state = "sandstone" mineral = "sandstone" walltype = "sandstone" canSmoothWith = list(/obj/structure/falsewall/sandstone, /turf/simulated/wall/mineral/sandstone) /obj/structure/falsewall/wood name = "wooden wall" desc = "A wall with wooden plating. Stiff." icon = 'icons/turf/walls/wood_wall.dmi' icon_state = "wood" mineral = "wood" walltype = "wood" canSmoothWith = list(/obj/structure/falsewall/wood, /turf/simulated/wall/mineral/wood) /obj/structure/falsewall/iron name = "rough metal wall" desc = "A wall with rough metal plating." icon = 'icons/turf/walls/iron_wall.dmi' icon_state = "iron" mineral = "metal" walltype = "iron" canSmoothWith = list(/obj/structure/falsewall/iron, /turf/simulated/wall/mineral/iron)