New controls, trouing rails, various patches #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New Controls:LEFT or RIGHT to switch track at junction
DOWN for hand break
JUMP lock the users view to the view of the cart
SNEAK unlock the users view from the cart
Touring Rails: Try to maintain a speed of 4.5
Chat notification of controls when cart is placed
Track rail count in debug.txt
punch by driver patch from spillz (Lets a user start a cart they are riding in)
get_voxel when hit ignore patch by minermoder27 (helps avoid occasional random stops by the cart when the engine doesn't load the next rail)
searches further up and down for rail when cart falls off rails in order to avoid cart getting stuck above or below rails. This seems to eliminate the problem of carts getting stuck several nodes above or below the rail.
I haven't been able to reproduce the "sudden reversal" problem reliably enough to try and patch that yet.
There are some spacing and comment changes in here that happened as I was trying to figure out the code, none of that is important and if they annoy you can be removed.
I'm new to Lua and minetest, so do not hesitate to critique or correct any coding errors I've made.
The deeper I get into the carts code, the more I realize how awesome and complicated the original mod is. Thank you for considering these changes!