diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-01-25 21:23:54 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-01-25 21:23:54 +0100 |
commit | ffc49f097224b028c1d4c70c7e21a22ed127a367 (patch) | |
tree | f1e477f1c6823119ef42ba5bcd289a958e6a0568 /advtrains/advtrains_train_industrial | |
parent | ae65f9b7f51c2159356ddd26b9f2448ae9331c47 (diff) | |
download | advtrains-ffc49f097224b028c1d4c70c7e21a22ed127a367.tar.gz advtrains-ffc49f097224b028c1d4c70c7e21a22ed127a367.tar.bz2 advtrains-ffc49f097224b028c1d4c70c7e21a22ed127a367.zip |
Rewrite seating system
Players no longer need to worry where to sit down.
Diffstat (limited to 'advtrains/advtrains_train_industrial')
-rw-r--r-- | advtrains/advtrains_train_industrial/depends.txt | 3 | ||||
-rw-r--r-- | advtrains/advtrains_train_industrial/init.lua | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/advtrains/advtrains_train_industrial/depends.txt b/advtrains/advtrains_train_industrial/depends.txt index 6f00bf6..1fb6665 100644 --- a/advtrains/advtrains_train_industrial/depends.txt +++ b/advtrains/advtrains_train_industrial/depends.txt @@ -1 +1,2 @@ -advtrains
\ No newline at end of file +advtrains +intllib?
\ No newline at end of file diff --git a/advtrains/advtrains_train_industrial/init.lua b/advtrains/advtrains_train_industrial/init.lua index 8b13cfe..2eed2b1 100644 --- a/advtrains/advtrains_train_industrial/init.lua +++ b/advtrains/advtrains_train_industrial/init.lua @@ -17,14 +17,23 @@ advtrains.register_wagon("engine_industrial", { attach_offset={x=-5, y=10, z=-10}, view_offset={x=0, y=10, z=0}, driving_ctrl_access=true, + group = "dstand", }, { name=S("Driver Stand (right)"), attach_offset={x=5, y=10, z=-10}, view_offset={x=0, y=10, z=0}, driving_ctrl_access=true, + group = "dstand", }, }, + seat_groups = { + dstand={ + name = "Driver Stand", + access_to = {}, + }, + }, + assign_to_seat_group = {"dstand"}, visual_size = {x=1, y=1}, wagon_span=2.6, is_locomotive=true, |