mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 12:01:47 +00:00
* [MDB Ignore] Make shuttle windows deconstructable * E * re Co-authored-by: Mooshimi <85910816+Mooshimi@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
365 lines
18 KiB
Plaintext
365 lines
18 KiB
Plaintext
/*
|
|
Because mapping is already tedious enough this spawner let you spawn generic
|
|
"sets" of objects rather than having to make the same object stack again and
|
|
again.
|
|
*/
|
|
|
|
/obj/effect/spawner/structure
|
|
name = "map structure spawner"
|
|
var/list/spawn_list
|
|
|
|
/obj/effect/spawner/structure/Initialize(mapload)
|
|
. = ..()
|
|
if(spawn_list?.len)
|
|
for(var/I in spawn_list)
|
|
new I(get_turf(src))
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
|
|
//normal windows
|
|
|
|
/obj/effect/spawner/structure/window
|
|
icon = 'icons/obj/structures_spawners.dmi'
|
|
icon_state = "window_spawner"
|
|
name = "window spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/fulltile)
|
|
dir = SOUTH
|
|
|
|
/obj/effect/spawner/structure/window/Initialize(mapload)
|
|
. = ..()
|
|
|
|
if (is_station_level(z))
|
|
var/turf/current_turf = get_turf(src)
|
|
current_turf.rcd_memory = RCD_MEMORY_WINDOWGRILLE
|
|
|
|
/obj/effect/spawner/structure/window/hollow
|
|
name = "hollow window spawner"
|
|
icon_state = "hwindow_spawner_full"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/north, /obj/structure/window/spawner/east, /obj/structure/window/spawner/west)
|
|
|
|
/obj/effect/spawner/structure/window/hollow/end
|
|
icon_state = "hwindow_spawner_end"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/end/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/north, /obj/structure/window/spawner/east, /obj/structure/window/spawner/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/north, /obj/structure/window/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/east, /obj/structure/window/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/north, /obj/structure/window/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/middle
|
|
icon_state = "hwindow_spawner_middle"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/middle/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH,SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/east, /obj/structure/window/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/directional
|
|
icon_state = "hwindow_spawner_directional"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/directional/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/north, /obj/structure/window/spawner/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window)
|
|
if(SOUTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/north, /obj/structure/window/spawner/west)
|
|
. = ..()
|
|
|
|
//reinforced
|
|
|
|
/obj/effect/spawner/structure/window/reinforced
|
|
name = "reinforced window spawner"
|
|
icon_state = "rwindow_spawner"
|
|
spawn_list = list(/obj/machinery/door/firedoor/onetile, /obj/structure/grille, /obj/structure/window/reinforced/fulltile) //SKYRAT EDIT CHANGE
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced
|
|
name = "hollow reinforced window spawner"
|
|
icon_state = "hrwindow_spawner_full"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/north, /obj/structure/window/reinforced/spawner/east, /obj/structure/window/reinforced/spawner/west)
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/end
|
|
icon_state = "hrwindow_spawner_end"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/end/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/north, /obj/structure/window/reinforced/spawner/east, /obj/structure/window/reinforced/spawner/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/north, /obj/structure/window/reinforced/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/east, /obj/structure/window/reinforced/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/north, /obj/structure/window/reinforced/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/middle
|
|
icon_state = "hrwindow_spawner_middle"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/middle/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH,SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/east, /obj/structure/window/reinforced/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/directional
|
|
icon_state = "hrwindow_spawner_directional"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/directional/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/north, /obj/structure/window/reinforced/spawner/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced)
|
|
if(SOUTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/north, /obj/structure/window/reinforced/spawner/west)
|
|
. = ..()
|
|
|
|
//tinted
|
|
|
|
/obj/effect/spawner/structure/window/reinforced/tinted
|
|
name = "tinted reinforced window spawner"
|
|
icon_state = "twindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/tinted/fulltile)
|
|
|
|
|
|
//shuttle window
|
|
|
|
/obj/effect/spawner/structure/window/reinforced/shuttle
|
|
name = "shuttle window spawner"
|
|
icon_state = "swindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle)
|
|
|
|
|
|
//plastitanium window
|
|
|
|
/obj/effect/spawner/structure/window/reinforced/plasma/plastitanium
|
|
name = "plastitanium window spawner"
|
|
icon_state = "plastitaniumwindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/plastitanium)
|
|
|
|
|
|
//ice window
|
|
|
|
/obj/effect/spawner/structure/window/ice
|
|
name = "ice window spawner"
|
|
icon_state = "icewindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/fulltile/ice)
|
|
|
|
|
|
//survival pod window
|
|
|
|
/obj/effect/spawner/structure/window/survival_pod
|
|
name = "pod window spawner"
|
|
icon_state = "podwindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod)
|
|
|
|
/obj/effect/spawner/structure/window/hollow/survival_pod
|
|
name = "hollow pod window spawner"
|
|
icon_state = "podwindow_spawner_full"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/north, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/east, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/west)
|
|
|
|
/obj/effect/spawner/structure/window/hollow/survival_pod/end
|
|
icon_state = "podwindow_spawner_end"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/survival_pod/end/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/north, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/east, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/north, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/east, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/north, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/survival_pod/middle
|
|
icon_state = "podwindow_spawner_middle"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/survival_pod/middle/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH,SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/east, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/survival_pod/directional
|
|
icon_state = "podwindow_spawner_directional"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/survival_pod/directional/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/north, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod)
|
|
if(SOUTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/north, /obj/structure/window/reinforced/shuttle/survival_pod/spawner/west)
|
|
. = ..()
|
|
|
|
|
|
//plasma windows
|
|
|
|
/obj/effect/spawner/structure/window/plasma
|
|
name = "plasma window spawner"
|
|
icon_state = "pwindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/fulltile)
|
|
|
|
/obj/effect/spawner/structure/window/hollow/plasma
|
|
name = "hollow plasma window spawner"
|
|
icon_state = "phwindow_spawner_full"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/north, /obj/structure/window/plasma/spawner/east, /obj/structure/window/plasma/spawner/west)
|
|
|
|
/obj/effect/spawner/structure/window/hollow/plasma/end
|
|
icon_state = "phwindow_spawner_end"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/plasma/end/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/north, /obj/structure/window/plasma/spawner/east, /obj/structure/window/plasma/spawner/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/north, /obj/structure/window/plasma/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/east, /obj/structure/window/plasma/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/north, /obj/structure/window/plasma/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/plasma/middle
|
|
icon_state = "phwindow_spawner_middle"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/plasma/middle/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH,SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/east, /obj/structure/window/plasma/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/plasma/directional
|
|
icon_state = "phwindow_spawner_directional"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/plasma/directional/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/north, /obj/structure/window/plasma/spawner/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma)
|
|
if(SOUTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/north, /obj/structure/window/plasma/spawner/west)
|
|
. = ..()
|
|
|
|
//reinforced plasma
|
|
|
|
/obj/effect/spawner/structure/window/reinforced/plasma
|
|
name = "reinforced plasma window spawner"
|
|
icon_state = "prwindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/fulltile)
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/plasma
|
|
name = "hollow reinforced plasma window spawner"
|
|
icon_state = "phrwindow_spawner_full"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/north, /obj/structure/window/reinforced/plasma/spawner/east, /obj/structure/window/reinforced/plasma/spawner/west)
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/plasma/end
|
|
icon_state = "phrwindow_spawner_end"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/plasma/end/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/north, /obj/structure/window/reinforced/plasma/spawner/east, /obj/structure/window/reinforced/plasma/spawner/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/north, /obj/structure/window/reinforced/plasma/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/east, /obj/structure/window/reinforced/plasma/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/north, /obj/structure/window/reinforced/plasma/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/plasma/middle
|
|
icon_state = "phrwindow_spawner_middle"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/plasma/middle/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH,SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/east, /obj/structure/window/reinforced/plasma/spawner/west)
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/plasma/directional
|
|
icon_state = "phrwindow_spawner_directional"
|
|
|
|
/obj/effect/spawner/structure/window/hollow/reinforced/plasma/directional/Initialize(mapload)
|
|
switch(dir)
|
|
if(NORTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/north, /obj/structure/window/reinforced/plasma/spawner/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma)
|
|
if(SOUTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/north, /obj/structure/window/reinforced/plasma/spawner/west)
|
|
. = ..()
|