aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains.zipbin1575848 -> 1576125 bytes
-rw-r--r--readme.txt19
-rw-r--r--trainhud.lua1
-rw-r--r--wagons.lua3
4 files changed, 22 insertions, 1 deletions
diff --git a/advtrains.zip b/advtrains.zip
index e79b3c0..8e7cfc1 100644
--- a/advtrains.zip
+++ b/advtrains.zip
Binary files differ
diff --git a/readme.txt b/readme.txt
index 1403a56..8465de0 100644
--- a/readme.txt
+++ b/readme.txt
@@ -2,7 +2,24 @@
## ADVTRAINS ## realistic trains in Minetest!
by orwell96 and contributors(see below)
-For up-to-date information, visit https://forum.minetest.net/viewtopic.php?f=9&t=14726
+For up-to-date information, visit https://forum.minetest.net/viewtopic.php?f=9&t=14726
+
+### How to drive trains
+(The non-pdf manual file got corrupted, one day I need to make a new manual. Meanwhile here)
+First of all: you can always get off the train with right-click.
+
+While on a train:
+W - faster
+S - slower / change direction
+Space: brake
+Shift+S: set speed to 0 (train rolls out, brake to stop!)
+Shift+W: Set full speed
+Shift+A: Set speed to 4 (~40km/h)
+Shift+D: Set speed to 8 (~100km/h)
+Shift+Space: toggle brake
+Shift+Use: get off
+
+
Manual:
If manual.pdf is not present (which is the case when you downloaded the zip file), see https://github.com/orwell96/advtrains/blob/master/manual.pdf
diff --git a/trainhud.lua b/trainhud.lua
index 610412a..aead246 100644
--- a/trainhud.lua
+++ b/trainhud.lua
@@ -36,6 +36,7 @@ function advtrains.on_control_change(pc, train, flip)
train.brake = false
train.brake_hold_state = 0
end
+ --shift+use:see wagons.lua
else
if pc.up then
train.tarvelocity = train.tarvelocity + 1
diff --git a/wagons.lua b/wagons.lua
index 296bc54..a5734d6 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -261,6 +261,9 @@ function wagon:on_step(dtime)
local pc=driver:get_player_control()
advtrains.on_control_change(pc, self:train(), self.wagon_flipped)
+ if pc.aux1 and pc.sneak then
+ self:get_off(seatno)
+ end
self.old_player_control_bits=driver:get_player_control_bits()
end