update
This commit is contained in:
@@ -119,14 +119,14 @@ function Engine:forwardStep(torque, inertia)
|
||||
self.angularVelocity = self.angularVelocity + finalTorque / inertiaSum * TICK_INTERVAL
|
||||
self.angularVelocity = math.max(self.angularVelocity, 0)
|
||||
|
||||
net.start("ENGINE_RPM")
|
||||
net.writeFloat(self:getRPM() / self.maxRPM)
|
||||
net.send(self.vehicle.playersConnectedToHUD, true)
|
||||
-- net.start("ENGINE_RPM")
|
||||
-- net.writeFloat(self:getRPM() / self.maxRPM)
|
||||
-- net.send(self.vehicle.playersConnectedToHUD, true)
|
||||
|
||||
net.start("ENGINE_FULLRPM")
|
||||
net.writeUInt(self:getRPM(), 16)
|
||||
net.writeFloat(self.masterThrottle)
|
||||
net.send(nil, true)
|
||||
-- net.start("ENGINE_FULLRPM")
|
||||
-- net.writeUInt(self:getRPM(), 16)
|
||||
-- net.writeFloat(self.masterThrottle)
|
||||
-- net.send(nil, true)
|
||||
end
|
||||
|
||||
return Engine
|
||||
|
||||
@@ -91,7 +91,7 @@ function PowertrainComponent:updateWireOutputs()
|
||||
WireComponent.updateWireOutputs(self)
|
||||
|
||||
if self.DEBUG then
|
||||
-- self:DEBUG_SEND_DATA_DEBOUNCED()
|
||||
self:DEBUG_SEND_DATA_DEBOUNCED()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user