summaryrefslogtreecommitdiff
path: root/X_Nihilo
diff options
context:
space:
mode:
Diffstat (limited to 'X_Nihilo')
-rw-r--r--X_Nihilo/init_code.lua0
-rw-r--r--X_Nihilo/nodes/(2225,-36,5931).lua26
-rw-r--r--X_Nihilo/nodes/(2225,-36,6144).lua26
3 files changed, 52 insertions, 0 deletions
diff --git a/X_Nihilo/init_code.lua b/X_Nihilo/init_code.lua
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/X_Nihilo/init_code.lua
diff --git a/X_Nihilo/nodes/(2225,-36,5931).lua b/X_Nihilo/nodes/(2225,-36,5931).lua
new file mode 100644
index 0000000..e6a12cd
--- /dev/null
+++ b/X_Nihilo/nodes/(2225,-36,5931).lua
@@ -0,0 +1,26 @@
+--
+-- I+B0WROLD15OCD2SM;
+--
+
+local delta = 45
+local switch = "XN_subway_station2_out"
+
+if event.type == "train" then
+ if atc_arrow then
+ atc_send("B0WROL")
+ h = os.time()
+ r = delta - (h % delta)
+ if r == 0 then r = delta end
+ setstate(switch,"cr")
+ interrupt(r,"departure")
+ return
+ end
+end
+
+if event.type == "int" then
+ if event.message == "departure" then
+ setstate(switch,"st")
+ atc_send("OCD2SM");
+ end
+ return
+end \ No newline at end of file
diff --git a/X_Nihilo/nodes/(2225,-36,6144).lua b/X_Nihilo/nodes/(2225,-36,6144).lua
new file mode 100644
index 0000000..4f43320
--- /dev/null
+++ b/X_Nihilo/nodes/(2225,-36,6144).lua
@@ -0,0 +1,26 @@
+--
+-- I+B0WROLD15OCD2SM;
+--
+
+local delta = 45
+local switch = "XN_subway_station1_out"
+
+if event.type == "train" then
+ if atc_arrow then
+ atc_send("B0WROL")
+ h = os.time()
+ r = delta - (h % delta)
+ if r == 0 then r = delta end
+ setstate(switch,"st")
+ interrupt(r,"departure")
+ return
+ end
+end
+
+if event.type == "int" then
+ if event.message == "departure" then
+ setstate(switch,"cr")
+ atc_send("OCD2SM");
+ end
+ return
+end \ No newline at end of file