Window spawners + Adding to map

This commit adds window spawners, mapping tools which either spawn full
windows or automatically detect where it should place each pane.
This commit is contained in:
Tigercat2000
2015-06-17 18:11:12 -07:00
parent 8d2a0598a1
commit 654cb37e9a
15 changed files with 1302 additions and 1715 deletions
@@ -0,0 +1,34 @@
/obj/effect/spawner/window
name = "window spawner"
icon = 'icons/obj/structures.dmi'
icon_state = "window_spawner"
var/useFull = 0
var/useGrille = 1
var/windowtospawn = /obj/structure/window/basic
/obj/effect/spawner/window/New()
for(var/obj/structure/grille/G in get_turf(src)) qdel(G) //just in case mappers don't know what they are doing
if(!useFull)
for(var/cdir in cardinal)
var/obj/structure/window/WI = new windowtospawn(get_turf(src))
WI.dir = cdir
for(var/obj/effect/spawner/window/WS in get_step(src,cdir))
qdel(WI)
break
else
var/obj/structure/window/W = new windowtospawn(get_turf(src))
W.dir = SOUTHWEST
if(useGrille)
new /obj/structure/grille(get_turf(src))
src.air_update_turf(1) //atmos can pass otherwise
spawn(10)
qdel(src)
/obj/effect/spawner/window/reinforced
name = "reinforced window spawner"
icon_state = "rwindow_spawner"
windowtospawn = /obj/structure/window/reinforced