diff options
author | orwell96 <orwell@bleipb.de> | 2018-01-09 18:30:29 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-01-09 18:30:29 +0100 |
commit | ea436e39c4922837fdc5ef870a2b6bfe1e39578e (patch) | |
tree | 40382dd8112fd0804e8ffafa5dae5e2f7d679da9 | |
parent | 97a6c8de1865b7c88bff5491acbb3637f59d7efa (diff) | |
download | basic_trains-ea436e39c4922837fdc5ef870a2b6bfe1e39578e.tar.gz basic_trains-ea436e39c4922837fdc5ef870a2b6bfe1e39578e.tar.bz2 basic_trains-ea436e39c4922837fdc5ef870a2b6bfe1e39578e.zip |
Move driving_ctrl_access property to seat group
there's now a more strict check for the train_operator privilege
Also added custom reasons on getting on a train.
-rw-r--r-- | advtrains_train_japan/init.lua | 2 | ||||
-rwxr-xr-x | advtrains_train_steam/init.lua | 6 | ||||
-rw-r--r-- | advtrains_train_subway/init.lua | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/advtrains_train_japan/init.lua b/advtrains_train_japan/init.lua index 6cf6c6d..23027db 100644 --- a/advtrains_train_japan/init.lua +++ b/advtrains_train_japan/init.lua @@ -15,7 +15,6 @@ advtrains.register_wagon("engine_japan", { name=S("Driver stand"), attach_offset={x=0, y=8, z=13}, view_offset={x=0, y=0, z=0}, - driving_ctrl_access=true, group="dstand", }, { @@ -48,6 +47,7 @@ advtrains.register_wagon("engine_japan", { name = "Driver Stand", access_to = {"pass"}, require_doors_open=true, + driving_ctrl_access=true, }, pass={ name = "Passenger area", diff --git a/advtrains_train_steam/init.lua b/advtrains_train_steam/init.lua index 461aa91..2afbe16 100755 --- a/advtrains_train_steam/init.lua +++ b/advtrains_train_steam/init.lua @@ -16,20 +16,19 @@ advtrains.register_wagon("newlocomotive", { name=S("Driver Stand (left)"), attach_offset={x=-5, y=10, z=-10}, view_offset={x=0, y=6, 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=6, z=0}, - driving_ctrl_access=true, group = "dstand", }, }, seat_groups = { dstand={ name = "Driver Stand", + driving_ctrl_access=true, access_to = {}, }, }, @@ -86,20 +85,19 @@ advtrains.register_wagon("detailed_steam_engine", { name=S("Driver Stand (left)"), attach_offset={x=-5, y=10, z=-10}, view_offset={x=9, y=-2, z=-6}, - driving_ctrl_access=true, group = "dstand", }, { name=S("Driver Stand (right)"), attach_offset={x=5, y=10, z=-10}, view_offset={x=0, y=6, z=0}, - driving_ctrl_access=true, group = "dstand", }, }, seat_groups = { dstand={ name = "Driver Stand", + driving_ctrl_access=true, access_to = {}, }, }, diff --git a/advtrains_train_subway/init.lua b/advtrains_train_subway/init.lua index b8dfa4b..58677e8 100644 --- a/advtrains_train_subway/init.lua +++ b/advtrains_train_subway/init.lua @@ -15,7 +15,6 @@ advtrains.register_wagon("subway_wagon", { name="Driver stand", attach_offset={x=0, y=10, z=0}, view_offset={x=0, y=0, z=0}, - driving_ctrl_access=true, group="dstand", }, { @@ -48,6 +47,7 @@ advtrains.register_wagon("subway_wagon", { name = "Driver Stand", access_to = {"pass"}, require_doors_open=true, + driving_ctrl_access=true, }, pass={ name = "Passenger area", |