aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-01-06 17:54:16 +0100
committerorwell96 <mono96.mml@gmail.com>2017-01-06 17:54:16 +0100
commit9bc069f825daded364b2b52d443c8cb7b45a5a15 (patch)
treeb0072c848f01740c561a1611e5e38e7e6ce17065 /advtrains
parentc0957b8a31df8484436e204b14b5d6d0d08a2eaa (diff)
downloadadvtrains-9bc069f825daded364b2b52d443c8cb7b45a5a15.tar.gz
advtrains-9bc069f825daded364b2b52d443c8cb7b45a5a15.tar.bz2
advtrains-9bc069f825daded364b2b52d443c8cb7b45a5a15.zip
Add fancy passenger wagon
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/advtrains_train_steam/init.lua25
-rw-r--r--advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3dbin0 -> 341965 bytes
-rw-r--r--advtrains/advtrains_train_steam/textures/advtrains_wagon.pngbin35724 -> 42023 bytes
3 files changed, 20 insertions, 5 deletions
diff --git a/advtrains/advtrains_train_steam/init.lua b/advtrains/advtrains_train_steam/init.lua
index ca52516..5010902 100644
--- a/advtrains/advtrains_train_steam/init.lua
+++ b/advtrains/advtrains_train_steam/init.lua
@@ -57,19 +57,34 @@ advtrains.register_wagon("newlocomotive", {
drops={"default:steelblock 4"},
}, "Steam Engine", "advtrains_newlocomotive_inv.png")
advtrains.register_wagon("wagon_default", {
- mesh="advtrains_wagon.b3d",
+ mesh="advtrains_passenger_wagon.b3d",
textures = {"advtrains_wagon.png"},
drives_on={default=true},
max_speed=10,
seats = {
{
- name="Default Seat",
- attach_offset={x=0, y=10, z=0},
- view_offset={x=0, y=6, z=0},
+ name="1",
+ attach_offset={x=-4, y=8, z=8},
+ view_offset={x=0, y=0, z=0},
+ },
+ {
+ name="2",
+ attach_offset={x=4, y=8, z=8},
+ view_offset={x=0, y=0, z=0},
+ },
+ {
+ name="3",
+ attach_offset={x=-4, y=8, z=-8},
+ view_offset={x=0, y=0, z=0},
+ },
+ {
+ name="4",
+ attach_offset={x=4, y=8, z=-8},
+ view_offset={x=0, y=0, z=0},
},
},
visual_size = {x=1, y=1},
- wagon_span=1.8,
+ wagon_span=3.1,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
drops={"default:steelblock 4"},
}, "Passenger Wagon", "advtrains_wagon_inv.png")
diff --git a/advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d b/advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d
new file mode 100644
index 0000000..bb057f8
--- /dev/null
+++ b/advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d
Binary files differ
diff --git a/advtrains/advtrains_train_steam/textures/advtrains_wagon.png b/advtrains/advtrains_train_steam/textures/advtrains_wagon.png
index c37c979..c850518 100644
--- a/advtrains/advtrains_train_steam/textures/advtrains_wagon.png
+++ b/advtrains/advtrains_train_steam/textures/advtrains_wagon.png
Binary files differ