From 6f62cd12026f0d43df4df8d2857bfe642fb16d9b Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:54:24 +0200 Subject: State at 2021-09-18 --- durt/nodes/(1850,8,9033).lua | 13 +++++++++++++ durt/nodes/(1903,7,9133).lua | 10 +++++++++- durt/nodes/(1914,7,9096).lua | 2 +- durt/nodes/(1924,7,9147).lua | 15 +++++++++++++++ nlvcross/nodes/(4990,18,5960).lua | 0 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 durt/nodes/(1850,8,9033).lua create mode 100644 durt/nodes/(1924,7,9147).lua create mode 100644 nlvcross/nodes/(4990,18,5960).lua diff --git a/durt/nodes/(1850,8,9033).lua b/durt/nodes/(1850,8,9033).lua new file mode 100644 index 0000000..71a69c3 --- /dev/null +++ b/durt/nodes/(1850,8,9033).lua @@ -0,0 +1,13 @@ +if event.train then + if not atc_arrow then return end + local rc = get_rc() or "" + if rc:match("WOA_SHUNT") then + F.remove_rc({"WOA_SHUNT"}) + atc_send("A0B0WRD1S3A1") + elseif rc:match("WOA_EXITLOOP") then + F.remove_rc({"WOA_EXITLOOP"}) + atc_send("SM") + end +end + + diff --git a/durt/nodes/(1903,7,9133).lua b/durt/nodes/(1903,7,9133).lua index ae54de7..2d20876 100644 --- a/durt/nodes/(1903,7,9133).lua +++ b/durt/nodes/(1903,7,9133).lua @@ -1,2 +1,10 @@ __approach_callback_method = 1 -if event.approach and not event.has_entered then atc_set_lzb_tsr(1) end if event.train and atc_arrow then atc_send("BBWS1WD10RA1") end \ No newline at end of file +if event.approach and not event.has_entered then + atc_set_lzb_tsr(1) +end + +if event.train and atc_arrow then + F.remove_rc({"WOA_FUEL"}) + set_rc((get_rc() or "").." WOA_SHUNT WOA_EXITLOOP") + atc_send("BBWS1WD10S0WRSMA1") +end \ No newline at end of file diff --git a/durt/nodes/(1914,7,9096).lua b/durt/nodes/(1914,7,9096).lua index bb8cdaf..4f58bba 100644 --- a/durt/nodes/(1914,7,9096).lua +++ b/durt/nodes/(1914,7,9096).lua @@ -1 +1 @@ -__approach_callback_mode = 1 if event.approach and not event.has_entered then atc_set_ars_disable(true) atc_set_lzb_tsr(1) end if event.train and atc_arrow then atc_set_ars_disable(false) atc_send("SM") end \ No newline at end of file +__approach_callback_mode = 1 if event.approach and not event.has_entered then atc_set_ars_disable(true) atc_set_lzb_tsr(1) end if event.train and atc_arrow then atc_set_ars_disable(false) atc_send("SM") end \ No newline at end of file diff --git a/durt/nodes/(1924,7,9147).lua b/durt/nodes/(1924,7,9147).lua new file mode 100644 index 0000000..49a5e6b --- /dev/null +++ b/durt/nodes/(1924,7,9147).lua @@ -0,0 +1,15 @@ +__approach_callback_mode = 1 +if event.approach and not event.has_entered then + atc_set_lzb_tsr(2) +end + +if event.train and atc_arrow then + local rc = get_rc() or "" + if rc:match("M27FUEL") and not rc:match("WOA_EXITLOOP") then + set_rc(rc.." WOA_SHUNT WOA_FUEL") + atc_send("B0WRD2S3") + end + if rc:match("WOA_EXITLOOP") then + atc_Send("SM") + end +end \ No newline at end of file diff --git a/nlvcross/nodes/(4990,18,5960).lua b/nlvcross/nodes/(4990,18,5960).lua new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3