Timer fix again
This commit is contained in:
parent
47dba04e08
commit
7cbdea15b4
@ -55,9 +55,9 @@ function Engine:update()
|
|||||||
|
|
||||||
if self.rpm > self.maxRPM then
|
if self.rpm > self.maxRPM then
|
||||||
self.throttle = 0
|
self.throttle = 0
|
||||||
self._limiterTime = timer.realtime()
|
self._limiterTime = timer.systime()
|
||||||
else
|
else
|
||||||
self.throttle = timer.realtime() >= self._limiterTime + self.limiterDuration and self.throttle or 0
|
self.throttle = timer.systime() >= self._limiterTime + self.limiterDuration and self.throttle or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
local masterThrottle = math.clamp(additionalEnergySupply + self.throttle, 0, 1)
|
local masterThrottle = math.clamp(additionalEnergySupply + self.throttle, 0, 1)
|
||||||
|
|||||||
@ -7,7 +7,7 @@ Axles = {
|
|||||||
},
|
},
|
||||||
Throttle = {
|
Throttle = {
|
||||||
Positive = KEY.W,
|
Positive = KEY.W,
|
||||||
Gravity = 0.15,
|
Gravity = 1,
|
||||||
Sensitivity = 0.2
|
Sensitivity = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user