Racelogic speed fix

This commit is contained in:
Nikita Kruglickiy 2021-08-18 01:59:30 +06:00
parent e893f7fcb2
commit cb9c7b73bb

View File

@ -189,7 +189,7 @@ hook.add("tick", "_tick", function()
if isValid(weldedTo) and not weldedTo:isPlayerHolding() then
local localVelocity = weldedTo:worldToLocal(weldedTo:getVelocity() + weldedTo:getPos())
local localVelocityLength = localVelocity:getLength()
local MPH = localVelocityLength * 3600 / 63360
local MPH = localVelocityLength * (15 / 352)
local KPH = MPH * 1.609
if KPH < 1 and active then