diff options
author | Blockhead <jbis1337@hotmail.com> | 2020-07-06 16:57:48 +1000 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2020-07-06 17:32:22 +0200 |
commit | 96236c04dc790cbcd4d8cb52aee5563f54e736aa (patch) | |
tree | b73d0443f2d87c4b41171cd40f239605bdb93d58 /advtrains | |
parent | 2a0c55099e61f885636b2a9735c7c8b6c2a0b45a (diff) | |
download | advtrains-96236c04dc790cbcd4d8cb52aee5563f54e736aa.tar.gz advtrains-96236c04dc790cbcd4d8cb52aee5563f54e736aa.tar.bz2 advtrains-96236c04dc790cbcd4d8cb52aee5563f54e736aa.zip |
Add perpendicular and 45/90 degree crossing rails
Add a set of new models for crossings to make some new track
arrangements possible. This commit adds perpendicular crossigns that can
be rotated at any angle: 30/45/60/90 and 45/90 degree crossings in two
rotations. In future, further crossing types can be added to the blender
file.
Add the blender file in rail_crossings.blend that is the source of these
files and which refers to the texture inside advtrains_train_track.
Add a set of prototypes for rail crossings to advtrains/tracks.lua and
register the new crossings in advtrains_train_track.
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/tracks.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/advtrains/tracks.lua b/advtrains/tracks.lua index 4475cb0..00d0de8 100644 --- a/advtrains/tracks.lua +++ b/advtrains/tracks.lua @@ -210,6 +210,37 @@ advtrains.ap.t_45deg={ },
rotation={"", "_30", "_45", "_60"},
}
+advtrains.ap.t_perpcrossing={
+ regstep = 1,
+ variant={
+ st={
+ conns = { {c=0}, {c=8}, {c=4}, {c=12} },
+ desc = "perpendicular crossing",
+ tpdouble = true,
+ tpsingle = true,
+ trackworker = "st",
+ },
+ },
+ regtp=true,
+ tpdefault="st",
+ rotation={"", "_30", "_45", "_60"},
+}
+advtrains.ap.t_9045crossing={
+ regstep = 1,
+ variant={
+ st={
+ conns = { {c=0}, {c=8}, {c=2}, {c=10} },
+ desc = "45/90 degree crossing",
+ tpdouble = true,
+ tpsingle = true,
+ trackworker = "st",
+ },
+ },
+ regtp=true,
+ tpdefault="st",
+ rotation={""},
+}
+
advtrains.trackpresets = advtrains.ap
--definition format: ([] optional)
|