From 2ed61efc15322c00863ded46dab722e57316db58 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sun, 21 Aug 2016 21:07:37 +0200 Subject: add new-style vertical tracks --- models/advtrains_dtrack_vst1.b3d | Bin 0 -> 21495 bytes models/advtrains_dtrack_vst2.b3d | Bin 0 -> 25143 bytes models/gleis/rail_verticals.blend | Bin 0 -> 550748 bytes models/gleis/rail_verticals.blend1 | Bin 0 -> 574100 bytes textures/advtrains_dtrack_vst1.png | Bin 0 -> 511 bytes textures/advtrains_dtrack_vst2.png | Bin 0 -> 554 bytes tracks.lua | 19 +++++++++++++++++-- 7 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 models/advtrains_dtrack_vst1.b3d create mode 100644 models/advtrains_dtrack_vst2.b3d create mode 100644 models/gleis/rail_verticals.blend create mode 100644 models/gleis/rail_verticals.blend1 create mode 100644 textures/advtrains_dtrack_vst1.png create mode 100644 textures/advtrains_dtrack_vst2.png diff --git a/models/advtrains_dtrack_vst1.b3d b/models/advtrains_dtrack_vst1.b3d new file mode 100644 index 0000000..c9d7427 Binary files /dev/null and b/models/advtrains_dtrack_vst1.b3d differ diff --git a/models/advtrains_dtrack_vst2.b3d b/models/advtrains_dtrack_vst2.b3d new file mode 100644 index 0000000..c128650 Binary files /dev/null and b/models/advtrains_dtrack_vst2.b3d differ diff --git a/models/gleis/rail_verticals.blend b/models/gleis/rail_verticals.blend new file mode 100644 index 0000000..45c37e1 Binary files /dev/null and b/models/gleis/rail_verticals.blend differ diff --git a/models/gleis/rail_verticals.blend1 b/models/gleis/rail_verticals.blend1 new file mode 100644 index 0000000..320f30b Binary files /dev/null and b/models/gleis/rail_verticals.blend1 differ diff --git a/textures/advtrains_dtrack_vst1.png b/textures/advtrains_dtrack_vst1.png new file mode 100644 index 0000000..718a043 Binary files /dev/null and b/textures/advtrains_dtrack_vst1.png differ diff --git a/textures/advtrains_dtrack_vst2.png b/textures/advtrains_dtrack_vst2.png new file mode 100644 index 0000000..7de8d44 Binary files /dev/null and b/textures/advtrains_dtrack_vst2.png differ diff --git a/tracks.lua b/tracks.lua index 6195b6e..260cd81 100644 --- a/tracks.lua +++ b/tracks.lua @@ -285,9 +285,24 @@ function advtrains.register_tracks_modeled(tracktype, def) minetest.register_node(def.nodename_prefix.."_st_60", advtrains.merge_tables(common_def, make_overdef("st_60", 3, 11), def.straight60 or {})) minetest.register_node(def.nodename_prefix.."_cr", advtrains.merge_tables(common_def, make_overdef("cr", 0, 7), def.curve or {})) - minetest.register_node(def.nodename_prefix.."_cr_30", advtrains.merge_tables(common_def, make_overdef("cr_30", 1, 8), def.curve45 or {})) + minetest.register_node(def.nodename_prefix.."_cr_30", advtrains.merge_tables(common_def, make_overdef("cr_30", 1, 8), def.curve30 or {})) minetest.register_node(def.nodename_prefix.."_cr_45", advtrains.merge_tables(common_def, make_overdef("cr_45", 2, 9), def.curve45 or {})) - minetest.register_node(def.nodename_prefix.."_cr_60", advtrains.merge_tables(common_def, make_overdef("cr_60", 3, 10), def.curve45 or {})) + minetest.register_node(def.nodename_prefix.."_cr_60", advtrains.merge_tables(common_def, make_overdef("cr_60", 3, 10), def.curve60 or {})) + + minetest.register_node(def.nodename_prefix.."_vst1", advtrains.merge_tables(common_def, make_overdef("vst1", 8, 0), + { + rely1=0, + rely2=0.5, + railheight=0.25, + }, + def.vst1 or {})) + minetest.register_node(def.nodename_prefix.."_vst2", advtrains.merge_tables(common_def, make_overdef("vst2", 8, 0), + { + rely1=0.5, + rely2=1, + railheight=0.75, + }, + def.vst2 or {})) --[[advtrains.trackplacer_register(def.nodename_prefix.."_st", 0, 8) advtrains.trackplacer_register(def.nodename_prefix.."_st_45", 2, 10) -- cgit v1.2.3