Add fancy passenger wagon
authororwell96 <mono96.mml@gmail.com>
Fri, 6 Jan 2017 16:54:16 +0000 (17:54 +0100)
committerorwell96 <mono96.mml@gmail.com>
Fri, 6 Jan 2017 16:54:16 +0000 (17:54 +0100)
advtrains/advtrains_train_steam/init.lua
advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d [new file with mode: 0644]
advtrains/advtrains_train_steam/textures/advtrains_wagon.png
assets/wagonfancytexture.png [new file with mode: 0644]
assets/wagong_fancy.blend [new file with mode: 0644]
assets/wagong_fancy.blend1 [new file with mode: 0644]

index ca52516..5010902 100644 (file)
@@ -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 (file)
index 0000000..bb057f8
Binary files /dev/null and b/advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d differ
index c37c979..c850518 100644 (file)
Binary files a/advtrains/advtrains_train_steam/textures/advtrains_wagon.png and b/advtrains/advtrains_train_steam/textures/advtrains_wagon.png differ
diff --git a/assets/wagonfancytexture.png b/assets/wagonfancytexture.png
new file mode 100644 (file)
index 0000000..c850518
Binary files /dev/null and b/assets/wagonfancytexture.png differ
diff --git a/assets/wagong_fancy.blend b/assets/wagong_fancy.blend
new file mode 100644 (file)
index 0000000..f9e44d5
Binary files /dev/null and b/assets/wagong_fancy.blend differ
diff --git a/assets/wagong_fancy.blend1 b/assets/wagong_fancy.blend1
new file mode 100644 (file)
index 0000000..5c6c328
Binary files /dev/null and b/assets/wagong_fancy.blend1 differ