From ded58c8f96f0e38ecff08d3b6a8604726e8c7ea0 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:53:44 +0200 Subject: State at 2021-07-25 --- durt/nodes/(-3818,18,-4761).lua | 10 ++++++++++ durt/nodes/(-3820,18,-4730).lua | 5 +++++ durt/nodes/(-3824,18,-4774).lua | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 durt/nodes/(-3818,18,-4761).lua (limited to 'durt/nodes') diff --git a/durt/nodes/(-3818,18,-4761).lua b/durt/nodes/(-3818,18,-4761).lua new file mode 100644 index 0000000..64f31ae --- /dev/null +++ b/durt/nodes/(-3818,18,-4761).lua @@ -0,0 +1,10 @@ +if (event.type == "train") then + local rc = get_rc() + if rc == "sfh_service" then + set_autocouple() atc_send("B0") set_rc("sfh_shunt") interrupt(5, "proceed") + else atc_send("B0WD3OCRSM") + unset_autocouple() + set_rc("sfh_service") + set_line("SHBL") + atc_set_text_outside("Sulfur Hills Branch Line -> Desert Junction") end elseif (event.type == "int") then set_route("sfh-T1-headshunt", "Enter Headshunt") split_off_locomotive("B0OL") + setstate("SFH-T2-S", "cr") atc_send("S2") end \ No newline at end of file diff --git a/durt/nodes/(-3820,18,-4730).lua b/durt/nodes/(-3820,18,-4730).lua index 41396be..d1f3c8e 100644 --- a/durt/nodes/(-3820,18,-4730).lua +++ b/durt/nodes/(-3820,18,-4730).lua @@ -1,3 +1,8 @@ +do return end +--disabled while extension trackwork in progress. Service is stopped anyway + + + if event.train and atc_arrow and get_rc() == "sfh_shunt" then setstate("SFH-T1-N", "st") atc_send("B0WRD1S3") end \ No newline at end of file diff --git a/durt/nodes/(-3824,18,-4774).lua b/durt/nodes/(-3824,18,-4774).lua index 65a3edf..8ece33e 100644 --- a/durt/nodes/(-3824,18,-4774).lua +++ b/durt/nodes/(-3824,18,-4774).lua @@ -1,4 +1,4 @@ -if ((event.type == "train") and atc_arrow) then +if event.type == "train" and atc_arrow and get_rc() == "sfh_shunt" then atc_send("B0WRS4") --setstate("SFH-T2-S", "st") -- interrupt(3, "proceed") -- cgit v1.2.3