From 96236c04dc790cbcd4d8cb52aee5563f54e736aa Mon Sep 17 00:00:00 2001 From: Blockhead Date: Mon, 6 Jul 2020 16:57:48 +1000 Subject: 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. --- advtrains/tracks.lua | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'advtrains/tracks.lua') 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) -- cgit v1.2.3