document new train controls and add combination for getting off

This commit is contained in:
orwell96 2016-11-24 20:56:23 +01:00
parent 7eb17b3233
commit 8c43f4d026
4 changed files with 22 additions and 1 deletions

Binary file not shown.

View File

@ -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

View File

@ -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

View File

@ -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