Carts: Stronger handbrake
authorparamat <mat.gregory@virginmedia.com>
Wed, 7 Dec 2016 03:23:03 +0000 (03:23 +0000)
committerparamat <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

index a0b0e3fa588de1689073937481ff2e9ac1f3dbaa..e8707fb4d2adb68531e260b9a6b0b3a490fd83cf 100644 (file)
@@ -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