Thrust calculated with minThrust
Thrust calculated with minThrust

Thrust based on tweakable percentage also take minThrust into
consideration, as to be compatible with several mods.

--- a/KerbalEngineer/VesselSimulator/EngineSim.cs
+++ b/KerbalEngineer/VesselSimulator/EngineSim.cs
@@ -33,6 +33,7 @@
                          double atmosphere,

                          double velocity,

                          float maxThrust,

+                         float minThrust,

                          float thrustPercentage,

                          float requestedThrust,

                          Vector3 vecThrust,

@@ -54,7 +55,7 @@
             this.partSim = theEngine;

 

             this.isActive = active;

-            this.thrust = maxThrust * (thrustPercentage / 100f);

+            this.thrust = (maxThrust - minThrust) * (thrustPercentage / 100f) + minThrust;

             //MonoBehaviour.print("thrust = " + thrust);

 

             this.thrustVec = vecThrust;


--- a/KerbalEngineer/VesselSimulator/PartSim.cs
+++ b/KerbalEngineer/VesselSimulator/PartSim.cs
@@ -163,6 +163,7 @@
                                                             atmosphere,
                                                             velocity,
                                                             engine.maxThrust,
+                                                            engine.minThrust,
                                                             engine.thrustPercentage,
                                                             engine.requestedThrust,
                                                             thrustvec,
@@ -192,6 +193,7 @@
                                                             atmosphere,
                                                             velocity,
                                                             engine.maxThrust,
+                                                            engine.minThrust,
                                                             engine.thrustPercentage,
                                                             engine.requestedThrust,
                                                             thrustvec,
@@ -219,6 +221,7 @@
                                                             atmosphere,
                                                             velocity,
                                                             engine.maxThrust,
+                                                            engine.minThrust,
                                                             engine.thrustPercentage,
                                                             engine.requestedThrust,
                                                             thrustvec,