Racelogic speed fix
This commit is contained in:
parent
e893f7fcb2
commit
cb9c7b73bb
@ -189,7 +189,7 @@ hook.add("tick", "_tick", function()
|
|||||||
if isValid(weldedTo) and not weldedTo:isPlayerHolding() then
|
if isValid(weldedTo) and not weldedTo:isPlayerHolding() then
|
||||||
local localVelocity = weldedTo:worldToLocal(weldedTo:getVelocity() + weldedTo:getPos())
|
local localVelocity = weldedTo:worldToLocal(weldedTo:getVelocity() + weldedTo:getPos())
|
||||||
local localVelocityLength = localVelocity:getLength()
|
local localVelocityLength = localVelocity:getLength()
|
||||||
local MPH = localVelocityLength * 3600 / 63360
|
local MPH = localVelocityLength * (15 / 352)
|
||||||
local KPH = MPH * 1.609
|
local KPH = MPH * 1.609
|
||||||
|
|
||||||
if KPH < 1 and active then
|
if KPH < 1 and active then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user