Commit Graph

9 Commits (master)

Author SHA1 Message Date
Vanessa Dannenberg ff5ccba41f extend the generic streetlight code to place schematics
add another type of lamp using that feature
this one is good for parking lots or common areas,
comes in 1-, 2-, and 4-lamp versions,
with either a thin or thick base node.
2021-06-28 23:19:10 -04:00
Vanessa Dannenberg ebf30c2410 refactor the whole check-and-place function
also fix a derp where I left some test nodes
in place in the brass street light :-)
2021-06-28 18:53:10 -04:00
Vanessa Dannenberg 7ef6bd4b9a fixup survival-mode item quantity checks 2021-06-28 00:19:15 -04:00
Vanessa Dannenberg 64d992eec1 add a "modern"-style light
morelights_modern wall lamp on streets thin post

plus some rotation helper options to make it work
(should be generic enough to work for other designs as well)
2021-06-28 00:19:00 -04:00
Vanessa Dannenberg fac56f263c Allow speciying custom top and overhang nodes
Can be true, false, or a table with two entries (topnode, overhang).

If false, the main pole extends all the way up to the specified height,
and the light is simply placed next to it.

if true, the main pole extends all the way up, and then steps right by
1m, with the light hanging from it.  This is the default.

if a table, the main pole stops 1m short of the top, and the two
specified nodes are placed above it, with the overhang to the right, and
the light hanging under it.

also fixed the custom base node not getting _digilines extension when
called-for
2021-06-27 20:25:58 -04:00
Vanessa Dannenberg 92eb5b9e8d allow specifying a custom "base" node for the pole
(like if the bottom part should be bigger than the rest of the pole,
or has some details such as bolts securing it to the ground)
2021-06-27 19:22:59 -04:00
Vanessa Dannenberg 42f775f716 allow specifying the height of the lamppost
and whether it has a top section over the bulb
(the top is included in the height, defaults to 5m, with top)
2021-06-27 19:04:59 -04:00
Vanessa Dannenberg 6c4bfd6205 pass streetlight "model" parameters via table 2021-06-27 19:04:59 -04:00
Vanessa Dannenberg 5815180b0e move the check_and_place and pointed_thing functions to their own file
(makes the check function global, but still in the streetlights namespace)
2021-06-27 19:04:59 -04:00