summaryrefslogtreecommitdiff
path: root/nlvcross
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:51:51 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:51:51 +0200
commit59a952d044d64bf188ec02b98d83b1bdc0a08112 (patch)
tree489400e51fdd60b11f16f6db48cb6291e613404d /nlvcross
parent0b14726c5539782a60d2f4beaed2cfca74a50f7a (diff)
downloadluaatc_envs-59a952d044d64bf188ec02b98d83b1bdc0a08112.tar.gz
luaatc_envs-59a952d044d64bf188ec02b98d83b1bdc0a08112.tar.bz2
luaatc_envs-59a952d044d64bf188ec02b98d83b1bdc0a08112.zip
State at 2020-02-17
Diffstat (limited to 'nlvcross')
-rw-r--r--nlvcross/init_code.lua1
-rw-r--r--nlvcross/nodes/(-144,8,-1980).lua5
-rw-r--r--nlvcross/nodes/(-2411,19,-1503).lua1
-rw-r--r--nlvcross/nodes/(-2442,19,-1525).lua1
-rw-r--r--nlvcross/nodes/(-2460,19,-1525).lua5
-rw-r--r--nlvcross/nodes/(-2481,19,-1522).lua1
-rw-r--r--nlvcross/nodes/(-362,19,-326).lua1
-rw-r--r--nlvcross/nodes/(-367,19,-325).lua1
-rw-r--r--nlvcross/nodes/(-88,2,-1984).lua6
-rw-r--r--nlvcross/nodes/(205,8,-2052).lua4
-rw-r--r--nlvcross/nodes/(255,2,-2054).lua1
11 files changed, 25 insertions, 2 deletions
diff --git a/nlvcross/init_code.lua b/nlvcross/init_code.lua
index 465ce8f..0dd9c0e 100644
--- a/nlvcross/init_code.lua
+++ b/nlvcross/init_code.lua
@@ -16,6 +16,7 @@ F.crossings={
PH_West = 4,
PH_WestS = 2,
gardonst = 4,
+ Trs_Church = 3,
}
--[[ Setting up level crossings:
1. choose a name
diff --git a/nlvcross/nodes/(-144,8,-1980).lua b/nlvcross/nodes/(-144,8,-1980).lua
new file mode 100644
index 0000000..5bf45a6
--- /dev/null
+++ b/nlvcross/nodes/(-144,8,-1980).lua
@@ -0,0 +1,5 @@
+if atc_arrow then
+ F.off("SF1SouthWest", 1, true)
+else
+ F.on("SF1SouthWest", 1, true)
+end \ No newline at end of file
diff --git a/nlvcross/nodes/(-2411,19,-1503).lua b/nlvcross/nodes/(-2411,19,-1503).lua
new file mode 100644
index 0000000..373194e
--- /dev/null
+++ b/nlvcross/nodes/(-2411,19,-1503).lua
@@ -0,0 +1 @@
+F.on("Trs_Church",1) \ No newline at end of file
diff --git a/nlvcross/nodes/(-2442,19,-1525).lua b/nlvcross/nodes/(-2442,19,-1525).lua
new file mode 100644
index 0000000..c9d812b
--- /dev/null
+++ b/nlvcross/nodes/(-2442,19,-1525).lua
@@ -0,0 +1 @@
+F.off("Trs_Church",2) \ No newline at end of file
diff --git a/nlvcross/nodes/(-2460,19,-1525).lua b/nlvcross/nodes/(-2460,19,-1525).lua
new file mode 100644
index 0000000..d895d20
--- /dev/null
+++ b/nlvcross/nodes/(-2460,19,-1525).lua
@@ -0,0 +1,5 @@
+if event.train then
+interrupt(5,"lvon")
+elseif event.int then
+F.on("Trs_Church",2)
+end \ No newline at end of file
diff --git a/nlvcross/nodes/(-2481,19,-1522).lua b/nlvcross/nodes/(-2481,19,-1522).lua
new file mode 100644
index 0000000..0a66851
--- /dev/null
+++ b/nlvcross/nodes/(-2481,19,-1522).lua
@@ -0,0 +1 @@
+F.off("Trs_Church",1) \ No newline at end of file
diff --git a/nlvcross/nodes/(-362,19,-326).lua b/nlvcross/nodes/(-362,19,-326).lua
new file mode 100644
index 0000000..65b69f9
--- /dev/null
+++ b/nlvcross/nodes/(-362,19,-326).lua
@@ -0,0 +1 @@
+F.off("MOriStn", "R1")
diff --git a/nlvcross/nodes/(-367,19,-325).lua b/nlvcross/nodes/(-367,19,-325).lua
new file mode 100644
index 0000000..d2a3e7e
--- /dev/null
+++ b/nlvcross/nodes/(-367,19,-325).lua
@@ -0,0 +1 @@
+F.on("LovelaceAve", 1) \ No newline at end of file
diff --git a/nlvcross/nodes/(-88,2,-1984).lua b/nlvcross/nodes/(-88,2,-1984).lua
index c9658a4..cdcec9a 100644
--- a/nlvcross/nodes/(-88,2,-1984).lua
+++ b/nlvcross/nodes/(-88,2,-1984).lua
@@ -1 +1,5 @@
-F.off("SF1SouthWest", 1) \ No newline at end of file
+if atc_arrow then
+ F.on("SF1SouthWest", 1)
+else
+ F.off("SF1SouthWest", 1, true)
+end \ No newline at end of file
diff --git a/nlvcross/nodes/(205,8,-2052).lua b/nlvcross/nodes/(205,8,-2052).lua
index 2f59d53..eb78097 100644
--- a/nlvcross/nodes/(205,8,-2052).lua
+++ b/nlvcross/nodes/(205,8,-2052).lua
@@ -1 +1,3 @@
-F.off("SF1Station", 2) \ No newline at end of file
+if atc_arrow then
+ F.off("SF1Station", 2)
+end \ No newline at end of file
diff --git a/nlvcross/nodes/(255,2,-2054).lua b/nlvcross/nodes/(255,2,-2054).lua
new file mode 100644
index 0000000..b42d779
--- /dev/null
+++ b/nlvcross/nodes/(255,2,-2054).lua
@@ -0,0 +1 @@
+F.on("SF1Station", 2) \ No newline at end of file