aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_track/init.lua
diff options
context:
space:
mode:
authorBlockhead <jbis1337@hotmail.com>2020-07-06 16:57:48 +1000
committerorwell96 <orwell@bleipb.de>2020-07-06 17:32:22 +0200
commit96236c04dc790cbcd4d8cb52aee5563f54e736aa (patch)
treeb73d0443f2d87c4b41171cd40f239605bdb93d58 /advtrains_train_track/init.lua
parent2a0c55099e61f885636b2a9735c7c8b6c2a0b45a (diff)
downloadadvtrains-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_train_track/init.lua')
-rw-r--r--advtrains_train_track/init.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/advtrains_train_track/init.lua b/advtrains_train_track/init.lua
index 2bd5e28..b646ed7 100644
--- a/advtrains_train_track/init.lua
+++ b/advtrains_train_track/init.lua
@@ -11,6 +11,29 @@ advtrains.register_tracks("default", {
description=attrans("Track"),
formats={},
}, advtrains.ap.t_30deg_flat)
+
+-- Diamond Crossings
+-- perpendicular
+advtrains.register_tracks("default", {
+ nodename_prefix="advtrains:dtrack_xing",
+ texture_prefix="advtrains_dtrack_xing",
+ models_prefix="advtrains_dtrack_xing",
+ models_suffix=".obj",
+ shared_texture="advtrains_dtrack_shared.png",
+ description=attrans("Perpendicular Diamond Crossing Track"),
+ formats = {}
+}, advtrains.ap.t_perpcrossing)
+-- 45-90(
+advtrains.register_tracks("default", {
+ nodename_prefix="advtrains:dtrack_xing4590",
+ texture_prefix="advtrains_dtrack_xing4590",
+ models_prefix="advtrains_dtrack_xing4590",
+ models_suffix=".obj",
+ shared_texture="advtrains_dtrack_shared.png",
+ description=attrans("45/90 Degree Diamond Crossing Track"),
+ formats = {}
+}, advtrains.ap.t_9045crossing)
+
--slopes
advtrains.register_tracks("default", {
nodename_prefix="advtrains:dtrack",