summaryrefslogtreecommitdiff
path: root/durt
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:53:44 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:53:44 +0200
commitded58c8f96f0e38ecff08d3b6a8604726e8c7ea0 (patch)
tree6f9d08ffc539adf1e042a64a94aaac5ce5cf9021 /durt
parent8e72eb38e0ad592f58f59a74869a7e9cb46fff8b (diff)
downloadluaatc_envs-ded58c8f96f0e38ecff08d3b6a8604726e8c7ea0.tar.gz
luaatc_envs-ded58c8f96f0e38ecff08d3b6a8604726e8c7ea0.tar.bz2
luaatc_envs-ded58c8f96f0e38ecff08d3b6a8604726e8c7ea0.zip
State at 2021-07-25
Diffstat (limited to 'durt')
-rw-r--r--durt/nodes/(-3818,18,-4761).lua10
-rw-r--r--durt/nodes/(-3820,18,-4730).lua5
-rw-r--r--durt/nodes/(-3824,18,-4774).lua2
3 files changed, 16 insertions, 1 deletions
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")