Skip to content

Commit

Permalink
Coupling: Add coupler type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
orwell96 committed Oct 25, 2021
1 parent d44c410 commit 61a4526
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions advtrains_train_industrial/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ advtrains.register_wagon("engine_industrial", {
},
},
assign_to_seat_group = {"dstand"},
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
visual_size = {x=1, y=1},
wagon_span=2.6,
is_locomotive=true,
Expand Down Expand Up @@ -66,6 +68,8 @@ advtrains.register_wagon("engine_industrial_big", {
},
},
assign_to_seat_group = {"dstand"},
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
visual_size = {x=1, y=1},
wagon_span=4,
is_locomotive=true,
Expand All @@ -79,6 +83,8 @@ advtrains.register_wagon("wagon_tank", {
seats = {},
drives_on={default=true},
max_speed=20,
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
visual_size = {x=1, y=1},
wagon_span=2.2,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
Expand All @@ -95,6 +101,8 @@ advtrains.register_wagon("wagon_wood", {
seats = {},
drives_on={default=true},
max_speed=20,
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
visual_size = {x=1, y=1},
wagon_span=1.8,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
Expand Down
7 changes: 7 additions & 0 deletions advtrains_train_japan/init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
local S = attrans

-- note: scharfenberg coupler is defined in advtrains core
advtrains.register_coupler_type("train_japan_interwagon", attrans("Japanese Train Inter-Wagon Connection"))

advtrains.register_wagon("engine_japan", {
mesh="advtrains_engine_japan.b3d",
textures = {"advtrains_engine_japan.png"},
Expand Down Expand Up @@ -61,6 +64,8 @@ advtrains.register_wagon("engine_japan", {
[1]={frames={x=60, y=80}, time=1}
}
},
coupler_types_front = {scharfenberg=true},
coupler_types_back = {train_japan_interwagon=true},
door_entry={-1.7},
visual_size = {x=1, y=1},
wagon_span=2.5,
Expand Down Expand Up @@ -131,6 +136,8 @@ advtrains.register_wagon("wagon_japan", {
[1]={frames={x=60, y=80}, time=1}
}
},
coupler_types_front = {train_japan_interwagon=true},
coupler_types_back = {train_japan_interwagon=true},
door_entry={-1.7, 1.7},
visual_size = {x=1, y=1},
wagon_span=2.3,
Expand Down
8 changes: 8 additions & 0 deletions advtrains_train_steam/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ advtrains.register_wagon("newlocomotive", {
},
},
assign_to_seat_group = {"dstand"},
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
visual_size = {x=1, y=1},
wagon_span=2.3,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
Expand Down Expand Up @@ -100,6 +102,8 @@ advtrains.register_wagon("detailed_steam_engine", {
},
},
assign_to_seat_group = {"dstand"},
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
visual_size = {x=1, y=1},
wagon_span=2.05,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
Expand Down Expand Up @@ -193,6 +197,8 @@ advtrains.register_wagon("wagon_default", {
},

assign_to_seat_group = {"pass"},
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
visual_size = {x=1, y=1},
wagon_span=2.634,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
Expand All @@ -206,6 +212,8 @@ advtrains.register_wagon("wagon_box", {
drives_on={default=true},
max_speed=10,
seats = {},
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
visual_size = {x=1, y=1},
wagon_span=2,
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
Expand Down
2 changes: 2 additions & 0 deletions advtrains_train_subway/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ advtrains.register_wagon("subway_wagon", {
},
},
assign_to_seat_group = {"pass", "dstand"},
coupler_types_front = {chain=true},
coupler_types_back = {chain=true},
doors={
open={
[-1]={frames={x=0, y=20}, time=1},
Expand Down

0 comments on commit 61a4526

Please sign in to comment.