Skip to content

Commit

Permalink
v0.3.0.21 0.9.9.17
Browse files Browse the repository at this point in the history
- solved overheating problem in dl I.
  • Loading branch information
s4t4n authored Aug 13, 2023
1 parent 9ff14c7 commit b4045f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CVT_Addon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-- changelog Anpassung an FS22_realismAddon_gearbox von modelleicher
-- + Vario Fahrstufen und Beschleunigungsrampen
-- RegisterScript Umstellung, der Dank geht hier an modelleicher!
local scrversion = "0.3.0.20";
local scrversion = "0.3.0.21";
local modversion = "0.9.9.17"; -- moddesc
-- last update 11.08.23
-- last change -- disable VCA static enginebrake if vca is active
Expand Down Expand Up @@ -1422,6 +1422,8 @@ function CVTaddon:onUpdateTick(dt, isActiveForInput, isActiveForInputIgnoreSelec
-- Nm kurven für unterschiedliche Lasten, Berücksichtigung pto
if self.spec_motorized.motor.smoothedLoadPercentage >= 0.3 and self.spec_motorized.motor.smoothedLoadPercentage <= 0.5 then
self.spec_motorized.motor.lastMotorRpm = math.min(math.max((self.spec_motorized.motor.lastMotorRpm * 0.985), self.spec_motorized.motor.lastPtoRpm*0.7)+(math.abs(self.spec_motorized.motor.lastAcceleratorPedal)*25), self.spec_motorized.motor.maxRpm)
self.spec_motorized.motorTemperature.heatingPerMS = 0.0015
self.spec_motorized.motorFan.enabled = true
end
if self.spec_motorized.motor.smoothedLoadPercentage >= 0.5 and self.spec_motorized.motor.smoothedLoadPercentage <= 0.65 then
self.spec_motorized.motor.lastMotorRpm = math.min(math.max((self.spec_motorized.motor.lastMotorRpm * 0.97), self.spec_motorized.motor.lastPtoRpm*0.7)+(math.abs(self.spec_motorized.motor.lastAcceleratorPedal)*45), self.spec_motorized.motor.maxRpm)
Expand Down

0 comments on commit b4045f1

Please sign in to comment.