diff options
-rw-r--r-- | durt/nodes/(-4129,16,-5745).lua | 20 | ||||
-rw-r--r-- | durt/nodes/(-4129,16,-5802).lua | 6 | ||||
-rw-r--r-- | durt/nodes/(-4142,17,-5841).lua | 17 |
3 files changed, 29 insertions, 14 deletions
diff --git a/durt/nodes/(-4129,16,-5745).lua b/durt/nodes/(-4129,16,-5745).lua index 23d7e85..7ba350f 100644 --- a/durt/nodes/(-4129,16,-5745).lua +++ b/durt/nodes/(-4129,16,-5745).lua @@ -1,16 +1,14 @@ local signal = POS(-4128,16,-5754) if event.train and atc_arrow then - for _,key in pairs({"DLG_shunt_platforms"}) do - local rc = (get_rc() or "") - if rc:match(key) then - atc_send("B0WD2A0RS3CplS1") - if rc:match("DLG_shunt_Platform1") then - set_route(signal,"SHUNT Platform 1") - return - elseif rc:match("DLG_shunt_Platform2") then - set_route(signal,"SHUNT Platform 2") - return - end + local rc = (get_rc() or "") + if rc:match("DLG_shunt_platforms") then + atc_send("B0WD2A0RS3CplS1") + if rc:match("DLG_shunt_Platform1") then + set_route(signal,"SHUNT Platform 1") + return + elseif rc:match("DLG_shunt_Platform2") then + set_route(signal,"SHUNT Platform 2") + return end end end
\ No newline at end of file diff --git a/durt/nodes/(-4129,16,-5802).lua b/durt/nodes/(-4129,16,-5802).lua index 5e0892e..e0cacb0 100644 --- a/durt/nodes/(-4129,16,-5802).lua +++ b/durt/nodes/(-4129,16,-5802).lua @@ -17,10 +17,10 @@ if event.train then atc_send("S3") atc_set_ars_disable(false) setstate(split_indicator,"green") - set_rc((get_rc() or "").." DLG_around DLG_shunt_platforms DLG_shunt_Platform2") + set_rc((get_rc() or "").." DLG_headshunt_south DLG_around_short DLG_shunt_platforms DLG_shunt_Platform2") elseif state == "green" then - atc_send("B0WRA1D2S4D10SM") + atc_send("B0WROCA1D2S4D10SM") setstate(split_indicator,"red") - F.remove_rc({"DLG_around","DLG_shunt_platforms","DLG_shunt_Platform2"}) + F.remove_rc({"DLG_headshunt_south","DLG_around_short","DLG_shunt_platforms","DLG_shunt_Platform2"}) end end
\ No newline at end of file diff --git a/durt/nodes/(-4142,17,-5841).lua b/durt/nodes/(-4142,17,-5841).lua new file mode 100644 index 0000000..8d26b0c --- /dev/null +++ b/durt/nodes/(-4142,17,-5841).lua @@ -0,0 +1,17 @@ +if event.train and atc_arrow then + local rc = get_rc() or "" + if rc:match("DLG_headshunt_south") then + schedule_in(";01",atc_id) + return + end +end + +if event.schedule then + if event.msg == atc_id then + schedule_in(";01",event.msg) + return + else + atc_send_to_train(event.msg,"S0WRS3") + return + end +end
\ No newline at end of file |