summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--durt/nodes/(-2080,3,822).lua3
-rw-r--r--durt/nodes/(-2081,1,811).lua3
-rw-r--r--durt/nodes/(-4144,16,-5792).lua6
3 files changed, 10 insertions, 2 deletions
diff --git a/durt/nodes/(-2080,3,822).lua b/durt/nodes/(-2080,3,822).lua
index d450d7d..bc97348 100644
--- a/durt/nodes/(-2080,3,822).lua
+++ b/durt/nodes/(-2080,3,822).lua
@@ -6,13 +6,14 @@ if type(rc) == "string" then rc = function() return "" end end
if rc():match("ArcLoad_NOSHUNT") then return end
if event.train and atc_arrow then
- print(get_rc())
if getstate(indicator) == "green" then
F.remove_rc(shunting_rc,true)
atc_send("S0WRD1A1S2D10SM")
setstate(indicator,"red")
set_rc(rc().." ArcLoad_exit")
+ print("Arcload departing")
else
+ print("Arcload arrived")
local o_text = atc_get_text_outside() or ""
atc_set_text_outside("Waiting for Locomotive")
split_off_locomotive("A0B0",1)
diff --git a/durt/nodes/(-2081,1,811).lua b/durt/nodes/(-2081,1,811).lua
new file mode 100644
index 0000000..1ee1917
--- /dev/null
+++ b/durt/nodes/(-2081,1,811).lua
@@ -0,0 +1,3 @@
+if event.punch then
+ interrupt_pos(POS(-4144,16,-5792))
+end \ No newline at end of file
diff --git a/durt/nodes/(-4144,16,-5792).lua b/durt/nodes/(-4144,16,-5792).lua
index b8098f1..369fa2e 100644
--- a/durt/nodes/(-4144,16,-5792).lua
+++ b/durt/nodes/(-4144,16,-5792).lua
@@ -1,8 +1,12 @@
if event.ext_int then
- if not atc_id then return end
+ if not atc_id then
+ print("No train")
+ return
+ end
F.remove_rc({"DLG_north_reverse","DLG_shunt_platforms","DLG_shunt_Freight4"})
F.add_rc("DLG_exit_north")
atc_send("I+S0WR;S4D10SM")
+ print("Train departing DLG")
end
__approach_callback_mode = 1