mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 12:13:02 +00:00
# Conflicts: # _maps/map_files/Delta/delta.dmm # _maps/map_files/MetaStation/MetaStation.v41A.II.dmm # _maps/map_files/MetaStation/z4.dmm # _maps/map_files/RandomRuins/SpaceRuins/derelict5.dmm # _maps/map_files/RandomRuins/SpaceRuins/spacebar.dmm # _maps/map_files/RandomZLevels/spacebattle.dmm # _maps/map_files/cyberiad/cyberiad.dmm # _maps/map_files/cyberiad/z4.dmm # _maps/map_files/cyberiad/z6.dmm # _maps/map_files/generic/z5.dmm # code/__DEFINES/misc.dm # code/__HELPERS/unsorted.dm # code/game/objects/structures/lattice.dm # code/game/turfs/space/space.dm # code/modules/mob/mob.dm # code/modules/ruins/ruin_areas.dm # paradise.dme
85 lines
2.4 KiB
Plaintext
85 lines
2.4 KiB
Plaintext
/obj/structure/lattice
|
|
name = "lattice"
|
|
desc = "A lightweight support lattice."
|
|
icon = 'icons/obj/smooth_structures/lattice.dmi'
|
|
icon_state = "lattice"
|
|
density = FALSE
|
|
anchored = TRUE
|
|
armor = list(melee = 50, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0)
|
|
layer = LATTICE_LAYER //under pipes
|
|
plane = FLOOR_PLANE
|
|
var/number_of_rods = 1
|
|
canSmoothWith = list(/obj/structure/lattice,
|
|
/turf/simulated/floor,
|
|
/turf/simulated/wall,
|
|
/obj/structure/falsewall)
|
|
smooth = SMOOTH_MORE
|
|
|
|
/obj/structure/lattice/Initialize(mapload)
|
|
. = ..()
|
|
for(var/obj/structure/lattice/LAT in loc)
|
|
if(LAT != src)
|
|
QDEL_IN(LAT, 0)
|
|
|
|
/obj/structure/lattice/examine(mob/user)
|
|
..()
|
|
deconstruction_hints(user)
|
|
|
|
/obj/structure/lattice/proc/deconstruction_hints(mob/user)
|
|
to_chat(user, "<span class='notice'>The rods look like they could be <b>cut</b>. There's space for more <i>rods</i> or a <i>tile</i>.</span>")
|
|
|
|
/obj/structure/lattice/attackby(obj/item/C, mob/user, params)
|
|
if(resistance_flags & INDESTRUCTIBLE)
|
|
return
|
|
if(istype(C, /obj/item/wirecutters))
|
|
to_chat(user, "<span class='notice'>Slicing [name] joints...</span>")
|
|
deconstruct()
|
|
else
|
|
var/turf/T = get_turf(src)
|
|
return T.attackby(C, user) //hand this off to the turf instead (for building plating, catwalks, etc)
|
|
|
|
/obj/structure/lattice/deconstruct(disassembled = TRUE)
|
|
if(!can_deconstruct)
|
|
new /obj/item/stack/rods(get_turf(src), number_of_rods)
|
|
qdel(src)
|
|
|
|
/obj/structure/lattice/blob_act()
|
|
qdel(src)
|
|
|
|
/obj/structure/lattice/ex_act(severity)
|
|
switch(severity)
|
|
if(1)
|
|
qdel(src)
|
|
if(2)
|
|
qdel(src)
|
|
if(3)
|
|
return
|
|
|
|
/obj/structure/lattice/singularity_pull(S, current_size)
|
|
if(current_size >= STAGE_FOUR)
|
|
qdel(src)
|
|
|
|
/obj/structure/lattice/catwalk
|
|
name = "catwalk"
|
|
desc = "A catwalk for easier EVA maneuvering and cable placement."
|
|
icon = 'icons/obj/smooth_structures/catwalk.dmi'
|
|
icon_state = "catwalk"
|
|
number_of_rods = 2
|
|
smooth = SMOOTH_TRUE
|
|
canSmoothWith = null
|
|
|
|
/obj/structure/lattice/catwalk/deconstruction_hints(mob/user)
|
|
to_chat(user, "<span class='notice'>The supporting rods look like they could be <b>cut</b>.</span>")
|
|
|
|
/obj/structure/lattice/catwalk/Move()
|
|
var/turf/T = loc
|
|
for(var/obj/structure/cable/C in T)
|
|
C.deconstruct()
|
|
..()
|
|
|
|
/obj/structure/lattice/catwalk/deconstruct()
|
|
var/turf/T = loc
|
|
for(var/obj/structure/cable/C in T)
|
|
C.deconstruct()
|
|
..()
|