Skip to content

Commit 0b443ac

Browse files
authored
Addendum to f76952b
1 parent f76952b commit 0b443ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

[gameplay]/hedit/server/utils.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ function setHandlingFromTable ( vehicle, tab, exe )
9090
for property,value in pairs ( tab ) do
9191
outputDebugString ( "PROPERTY: "..property.." - VALUE: "..tostring(value).." - TYPE: "..type(value) )
9292

93-
if property == "maxVelocity" and (tonumber(value) > 13.02 and tonumber(value) < 13.1) then
93+
if property == "maxVelocity" and (tonumber(value) > 13.02 and tonumber(value) < 13.1) then
9494
value = 13.04
9595
end
9696

97+
if (property == "steeringLock") and (getVehicleType(vehicle) == "Bike" or getVehicleType(vehicle) == "BMX") and tonumber(value) < 1 then
98+
value = 1
99+
end
100+
97101
setVehicleHandling ( vehicle, property, value, false )
98102
end
99103

0 commit comments

Comments
 (0)