diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -2,6 +2,10 @@ local SPEED = 10 -- Acceleration of a box. local ACCEL = 0.1 +-- Distance before target to slow down +local SLOW_DIST = 16 +-- Slow speed before the target +local SLOW_SPEED = 1.75 -- Elevator interface/database version. local VERSION = 8 -- Maximum time a box can go without players nearby. @@ -121,8 +125,8 @@ local function create_box(motorhash, pos, target, sender) -- FIX for "overshooting" local delta_y = math.abs(pos.y-target.y) local speed = SPEED - if (delta_y<10) then - speed = 2 + if (delta_y<SLOW_DIST) then + speed = SLOW_SPEED end -- Set the speed. |