From 8c43f4d02693cddde0eb136ad9fe5d2f2bf210a4 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 24 Nov 2016 20:56:23 +0100 Subject: document new train controls and add combination for getting off --- advtrains.zip | Bin 1575848 -> 1576125 bytes readme.txt | 19 ++++++++++++++++++- trainhud.lua | 1 + wagons.lua | 3 +++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/advtrains.zip b/advtrains.zip index e79b3c0..8e7cfc1 100644 Binary files a/advtrains.zip and b/advtrains.zip 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 -- cgit v1.2.3