summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-03-03 00:21:53 +0300
committerMBB <mbb-mail@gmx.de>2018-03-17 13:00:31 +0100
commit6a323b00210fefb4d0206d967145199d09c04379 (patch)
tree771c7fea4c09b815e967fb03bd458c6485757a83
parent49ac8c4f7c6fa642cf986dc0a79eb08e783dda70 (diff)
Second seat adjusted and enabled
-rwxr-xr-xinit.lua33
1 files changed, 19 insertions, 14 deletions
diff --git a/init.lua b/init.lua
index 3024936..8d1b8d4 100755
--- a/init.lua
+++ b/init.lua
@@ -14,28 +14,33 @@ advtrains.register_wagon("diesel_lokomotive", {
max_speed=10,
seats = {
{
- name=S("Driver Stand (left)"),
- attach_offset={x=-3, y=12, z=-2},
- view_offset={x=0, y=3, z=0},
+ name = S("Driver Stand (left)"),
+ attach_offset = {x=-3, y=12, z=-2},
+ view_offset = {x=-4, y=3, z=0},
group = "dstand",
},
--- {
--- name=S("Driver Stand (right)"),
--- attach_offset={x=5, y=10, z=-10},
--- view_offset={x=0, y=6, z=0},
--- group = "dstand",
--- },
+ {
+ name = S("Trainee Seat (right)"),
+ attach_offset = {x=3, y=12, z=-2},
+ view_offset = {x=4, y=3, z=0},
+ group = "tseat",
+ },
},
seat_groups = {
- dstand={
+ dstand = {
name = "Driver Stand",
- access_to = {},
- driving_ctrl_access=true,
+ access_to = {"tseat"},
+ driving_ctrl_access = true,
+ },
+ tseat = {
+ name = "Trainee Seat",
+ access_to = {"dstand"},
+ driving_ctrl_access = false,
},
},
assign_to_seat_group = {"dstand"},
visual_size = {x=1, y=1},
- wagon_span=1.95,
+ wagon_span = 1.95,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
update_animation=function(self, velocity)
if self.old_anim_velocity~=advtrains.abs_ceil(velocity) then
@@ -71,7 +76,7 @@ advtrains.register_wagon("diesel_lokomotive", {
})
end,
drops={"advtrains:diesel_lokomotive"},
- horn_sound = "advtrains_engine_diesel_horn"
+ horn_sound = "advtrains_engine_diesel_horn",
}, S("Diesel Engine"), "advtrains_engine_diesel_inv.png")
advtrains.register_wagon("wagon_gravel", {