From 5f01cd2d5a1df2071579f4dcae0b83c65bc3111e Mon Sep 17 00:00:00 2001 From: Gabriel Pérez-Cerezo Date: Sun, 29 Jan 2017 12:37:47 +0100 Subject: Added getting on and off by walking in and out. Default seat on subway is now passenger seat. --- advtrains/advtrains_train_subway/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'advtrains/advtrains_train_subway') diff --git a/advtrains/advtrains_train_subway/init.lua b/advtrains/advtrains_train_subway/init.lua index 5625418..1282ec7 100644 --- a/advtrains/advtrains_train_subway/init.lua +++ b/advtrains/advtrains_train_subway/init.lua @@ -55,7 +55,7 @@ advtrains.register_wagon("subway_wagon", { require_doors_open=true, }, }, - assign_to_seat_group = {"dstand", "pass"}, + assign_to_seat_group = {"pass","dstand"}, doors={ open={ [-1]={frames={x=0, y=20}, time=1}, @@ -68,7 +68,7 @@ advtrains.register_wagon("subway_wagon", { }, visual_size = {x=1, y=1}, wagon_span=2, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, + collisionbox = {-1.0,-0.5,-1.8, 1.0,2.5,1.8}, is_locomotive=true, drops={"default:steelblock 4"}, --custom_on_activate = function(self, dtime_s) -- cgit v1.2.3 From bfd24ee43a10ab79674636e9dad725cdba093f63 Mon Sep 17 00:00:00 2001 From: Gabriel Pérez-Cerezo Date: Sun, 29 Jan 2017 12:52:51 +0100 Subject: Found out why collision box does not fit train --- advtrains/advtrains_train_subway/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'advtrains/advtrains_train_subway') diff --git a/advtrains/advtrains_train_subway/init.lua b/advtrains/advtrains_train_subway/init.lua index 1282ec7..faf8ceb 100644 --- a/advtrains/advtrains_train_subway/init.lua +++ b/advtrains/advtrains_train_subway/init.lua @@ -68,7 +68,8 @@ advtrains.register_wagon("subway_wagon", { }, visual_size = {x=1, y=1}, wagon_span=2, - collisionbox = {-1.0,-0.5,-1.8, 1.0,2.5,1.8}, + --collisionbox = {-1.0,-0.5,-1.8, 1.0,2.5,1.8}, + collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, is_locomotive=true, drops={"default:steelblock 4"}, --custom_on_activate = function(self, dtime_s) -- cgit v1.2.3