mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-26 00:25:30 +01:00
21b4095dfd
Upstream 04/17/2026 fixes https://github.com/Bubberstation/Bubberstation/issues/5549 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: tgstation-ci[bot] <179393467+tgstation-ci[bot]@users.noreply.github.com> Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> Co-authored-by: rageguy505 <54517726+rageguy505@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Aliceee2ch <160794176+Aliceee2ch@users.noreply.github.com> Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: Tsar-Salat <62388554+Tsar-Salat@users.noreply.github.com> Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: Maxipat <108554989+Maxipat112@users.noreply.github.com> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: SimplyLogan <47579821+loganuk@users.noreply.github.com> Co-authored-by: loganuk <fakeemail123@aol.com> Co-authored-by: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Co-authored-by: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Co-authored-by: Roxy <75404941+TealSeer@users.noreply.github.com> Co-authored-by: Lucy <lucy@absolucy.moe> Co-authored-by: siliconOpossum <138069572+siliconOpossum@users.noreply.github.com> Co-authored-by: Isratosh <Isratosh@hotmail.com> Co-authored-by: TheRyeGuyWhoWillNowDie <70169560+TheRyeGuyWhoWillNowDie@users.noreply.github.com> Co-authored-by: Neocloudy <88008002+Neocloudy@users.noreply.github.com> Co-authored-by: Alexander V. <volas@ya.ru> Co-authored-by: ElGitificador <168473461+ElGitificador@users.noreply.github.com> Co-authored-by: Twaticus <46540570+Twaticus@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: Iamgoofball <iamgoofball@gmail.com> Co-authored-by: Layzu666 <121319428+Layzu666@users.noreply.github.com> Co-authored-by: Arturlang <24881678+Arturlang@users.noreply.github.com> Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com> Co-authored-by: mrmanlikesbt <99309552+mrmanlikesbt@users.noreply.github.com> Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Co-authored-by: John F. Kennedy <54908920+MacaroniCritter@users.noreply.github.com> Co-authored-by: Cursor <102828457+theselfish@users.noreply.github.com> Co-authored-by: Josh <josh.adam.powell@gmail.com> Co-authored-by: Josh Powell <josh.powell@softwire.com> Co-authored-by: Yobrocharlie <Charliemiller5617@gmail.com> Co-authored-by: Hardly3D <66234359+Hardly3D@users.noreply.github.com> Co-authored-by: shayoki <96078776+shayoki@users.noreply.github.com> Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
404 lines
21 KiB
Plaintext
404 lines
21 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)
|
|
. = ..()
|
|
for(var/spawn_type in spawn_list)
|
|
new spawn_type(loc)
|
|
|
|
//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
|
|
density = TRUE
|
|
|
|
/obj/effect/spawner/structure/window/Initialize(mapload)
|
|
. = ..()
|
|
|
|
var/turf/current_turf = loc
|
|
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/directional/north, /obj/structure/window/spawner/directional/east, /obj/structure/window/spawner/directional/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/directional/north, /obj/structure/window/spawner/directional/east, /obj/structure/window/spawner/directional/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/directional/north, /obj/structure/window/spawner/directional/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/directional/east, /obj/structure/window/spawner/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/directional/north, /obj/structure/window/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/directional/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/directional/east, /obj/structure/window/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/directional/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/directional/north, /obj/structure/window/spawner/directional/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/directional/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/directional/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/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/directional/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/directional/north, /obj/structure/window/spawner/directional/west)
|
|
return ..()
|
|
|
|
//reinforced
|
|
|
|
/obj/effect/spawner/structure/window/reinforced
|
|
name = "reinforced window spawner"
|
|
icon_state = "rwindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/fulltile)
|
|
|
|
/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/directional/north, /obj/structure/window/reinforced/spawner/directional/east, /obj/structure/window/reinforced/spawner/directional/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/directional/north, /obj/structure/window/reinforced/spawner/directional/east, /obj/structure/window/reinforced/spawner/directional/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/directional/north, /obj/structure/window/reinforced/spawner/directional/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/directional/east, /obj/structure/window/reinforced/spawner/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/directional/north, /obj/structure/window/reinforced/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/directional/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/directional/east, /obj/structure/window/reinforced/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/directional/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/directional/north, /obj/structure/window/reinforced/spawner/directional/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/directional/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/directional/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/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/directional/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/directional/north, /obj/structure/window/reinforced/spawner/directional/west)
|
|
return ..()
|
|
|
|
//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)
|
|
|
|
//bronze
|
|
|
|
/obj/effect/spawner/structure/window/bronze
|
|
name = "bronze window spawner"
|
|
icon_state = "bronzewindow_spawner"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/bronze/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)
|
|
|
|
/obj/effect/spawner/structure/window/reinforced/shuttle/indestructible
|
|
name = "indestructible shuttle window spawner"
|
|
icon_state = "swindow_spawner"
|
|
spawn_list = list(/obj/structure/grille/indestructible, /obj/structure/window/reinforced/shuttle/indestructible)
|
|
|
|
//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/survival_pod, /obj/structure/window/reinforced/survival_pod/spawner/directional/north, /obj/structure/window/reinforced/survival_pod/spawner/directional/east, /obj/structure/window/reinforced/survival_pod/spawner/directional/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/survival_pod/spawner/directional/north, /obj/structure/window/reinforced/survival_pod/spawner/directional/east, /obj/structure/window/reinforced/survival_pod/spawner/directional/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod, /obj/structure/window/reinforced/survival_pod/spawner/directional/north, /obj/structure/window/reinforced/survival_pod/spawner/directional/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod, /obj/structure/window/reinforced/survival_pod/spawner/directional/east, /obj/structure/window/reinforced/survival_pod/spawner/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod, /obj/structure/window/reinforced/survival_pod/spawner/directional/north, /obj/structure/window/reinforced/survival_pod/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/survival_pod, /obj/structure/window/reinforced/survival_pod/spawner/directional/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod/spawner/directional/east, /obj/structure/window/reinforced/survival_pod/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/survival_pod/spawner/directional/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod/spawner/directional/north, /obj/structure/window/reinforced/survival_pod/spawner/directional/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod/spawner/directional/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod, /obj/structure/window/reinforced/survival_pod/spawner/directional/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod)
|
|
if(SOUTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod, /obj/structure/window/reinforced/survival_pod/spawner/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod/spawner/directional/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/survival_pod/spawner/directional/north, /obj/structure/window/reinforced/survival_pod/spawner/directional/west)
|
|
return ..()
|
|
|
|
|
|
//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/directional/north, /obj/structure/window/plasma/spawner/directional/east, /obj/structure/window/plasma/spawner/directional/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/directional/north, /obj/structure/window/plasma/spawner/directional/east, /obj/structure/window/plasma/spawner/directional/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/directional/north, /obj/structure/window/plasma/spawner/directional/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/directional/east, /obj/structure/window/plasma/spawner/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/directional/north, /obj/structure/window/plasma/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/directional/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/directional/east, /obj/structure/window/plasma/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/directional/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/directional/north, /obj/structure/window/plasma/spawner/directional/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/directional/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/directional/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/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/directional/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/directional/north, /obj/structure/window/plasma/spawner/directional/west)
|
|
return ..()
|
|
|
|
//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/directional/north, /obj/structure/window/reinforced/plasma/spawner/directional/east, /obj/structure/window/reinforced/plasma/spawner/directional/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/directional/north, /obj/structure/window/reinforced/plasma/spawner/directional/east, /obj/structure/window/reinforced/plasma/spawner/directional/west)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/directional/north, /obj/structure/window/reinforced/plasma/spawner/directional/east)
|
|
if(SOUTH)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/directional/east, /obj/structure/window/reinforced/plasma/spawner/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/directional/north, /obj/structure/window/reinforced/plasma/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/directional/north)
|
|
if(EAST,WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/directional/east, /obj/structure/window/reinforced/plasma/spawner/directional/west)
|
|
return ..()
|
|
|
|
/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/directional/north)
|
|
if(NORTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/directional/north, /obj/structure/window/reinforced/plasma/spawner/directional/east)
|
|
if(EAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/directional/east)
|
|
if(SOUTHEAST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma, /obj/structure/window/reinforced/plasma/spawner/directional/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/directional/west)
|
|
if(WEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/directional/west)
|
|
if(NORTHWEST)
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/plasma/spawner/directional/north, /obj/structure/window/reinforced/plasma/spawner/directional/west)
|
|
return ..()
|
|
|
|
/obj/effect/spawner/structure/electrified_grille
|
|
name = "electrified grille spawner"
|
|
icon = 'icons/obj/structures_spawners.dmi'
|
|
icon_state = "electrified_grille"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/cable)
|
|
|
|
/obj/effect/spawner/structure/electrified_grille/layer1
|
|
name = "layer 1 electrified grille spawner"
|
|
icon_state = "red_electrified_grille"
|
|
spawn_list = list(/obj/structure/grille, /obj/structure/cable/layer1)
|
|
|
|
///flipped tables
|
|
/obj/effect/spawner/structure/flipped_table
|
|
name = "flipped table spawner"
|
|
icon = 'icons/obj/flipped_tables.dmi'
|
|
icon_state = "table"
|
|
///just change this whatever table type you want, has to be a table subtype though.
|
|
var/table_to_spawn = /obj/structure/table
|
|
|
|
/obj/effect/spawner/structure/flipped_table/Initialize(mapload)
|
|
. = ..()
|
|
var/obj/structure/table/table_to_flip = new table_to_spawn(loc)
|
|
table_to_flip.dir = dir
|
|
RegisterSignal(table_to_flip, COMSIG_ATOM_SMOOTHED_ICON, PROC_REF(on_icon_smoothed))
|
|
|
|
/// The flip_table() proc HAS to be run after smooth_icon() is completed or else we will get runtimes.
|
|
/obj/effect/spawner/structure/flipped_table/proc/on_icon_smoothed(obj/structure/table/table_to_flip)
|
|
SIGNAL_HANDLER
|
|
table_to_flip.flip_table(table_to_flip.dir)
|
|
UnregisterSignal(table_to_flip, COMSIG_ATOM_SMOOTHED_ICON)
|