projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a5206e
)
Carts: Stronger handbrake
author
paramat
<mat.gregory@virginmedia.com>
Wed, 7 Dec 2016 03:23:03 +0000
(
03:23
+0000)
committer
paramat
<mat.gregory@virginmedia.com>
Wed, 7 Dec 2016 08:29:41 +0000
(08:29 +0000)
Handbrake was barely noticeable and fairly useless.
Equalisng with brake rail deceleration makes it more intuitive to use
and easier to judge stopping distance.
mods/carts/cart_entity.lua
patch
|
blob
|
history
diff --git
a/mods/carts/cart_entity.lua
b/mods/carts/cart_entity.lua
index a0b0e3fa588de1689073937481ff2e9ac1f3dbaa..e8707fb4d2adb68531e260b9a6b0b3a490fd83cf 100644
(file)
--- a/
mods/carts/cart_entity.lua
+++ b/
mods/carts/cart_entity.lua
@@
-272,9
+272,9
@@
local function rail_on_step(self, dtime)
-- Try to make it similar to the original carts mod
acc = acc + speed_mod
else
- -- Handbrake
+ -- Handbrake
or coast
if ctrl and ctrl.down then
- acc = acc -
1.6
+ acc = acc -
3
else
acc = acc - 0.4
end