summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-03 01:26:49 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-03 01:26:49 +0200
commit063a80ecfb3ccede8b2e5efc135abd2c48f285d2 (patch)
treef69358f331007e86d3c257046cfb741ed44aee7e /src/vehicles/Vehicle.cpp
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-063a80ecfb3ccede8b2e5efc135abd2c48f285d2.tar
re3-063a80ecfb3ccede8b2e5efc135abd2c48f285d2.tar.gz
re3-063a80ecfb3ccede8b2e5efc135abd2c48f285d2.tar.bz2
re3-063a80ecfb3ccede8b2e5efc135abd2c48f285d2.tar.lz
re3-063a80ecfb3ccede8b2e5efc135abd2c48f285d2.tar.xz
re3-063a80ecfb3ccede8b2e5efc135abd2c48f285d2.tar.zst
re3-063a80ecfb3ccede8b2e5efc135abd2c48f285d2.zip
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r--src/vehicles/Vehicle.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 3ff9a044..4347c9b2 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -41,9 +41,6 @@ bool CVehicle::bCheat3;
bool CVehicle::bCheat4;
bool CVehicle::bCheat5;
bool CVehicle::bCheat8;
-#ifdef BETTER_ALLCARSAREDODO_CHEAT
-bool CVehicle::bAltDodoCheat;
-#endif
bool CVehicle::bHoverCheat;
bool CVehicle::bAllTaxisHaveNitro;
bool CVehicle::m_bDisableMouseSteering = true;
@@ -355,11 +352,11 @@ CVehicle::FlyingControl(eFlightModel flightModel)
float fThrustFallOff = pFlyingHandling->fThrustFallOff;
float fThrustFallOffBack = pFlyingHandling->fThrustFallOff * 8.0f;
#ifdef BETTER_ALLCARSAREDODO_CHEAT
- if (bAltDodoCheat && !IsRealPlane()) {
+ if (bAllDodosCheat && !IsRealPlane()) {
fThrust = pHandling->Transmission.fEngineAcceleration
* (pHandling->Transmission.nDriveType == '4' ? 4.0f : 2.0f);
- fThrust = 5.0f * Max(fThrust, pFlyingHandling->fThrust);
- fThrustFallOff = Min(1.0f / pHandling->Transmission.fMaxVelocity, fThrustFallOff);
+ fThrust = 5.0f * Max(fThrust, pFlyingHandling->fThrust); //tweak: (cars engines too weak to thrust car on air)
+ fThrustFallOff = Min(0.7f / pHandling->Transmission.fMaxVelocity, fThrustFallOff); //tweak: (use 0.7 instead of 1.0 to make cars 30% faster)
fThrustFallOffBack = -1.0f / pHandling->Transmission.fMaxReverseVelocity;
}
#endif
@@ -417,7 +414,7 @@ CVehicle::FlyingControl(eFlightModel flightModel)
else if (flightModel == FLIGHT_MODEL_SEAPLANE && GetPosition().z > 80.0f)
fLiftImpulse = CTimer::GetTimeStep() * 0.9f*GRAVITY * m_fMass;
#ifdef BETTER_ALLCARSAREDODO_CHEAT
- else if(GetPosition().z > 180.0f)
+ else if(bAllDodosCheat && GetPosition().z > 170.0f)
fLiftImpulse = CTimer::GetTimeStep() * 0.9f * GRAVITY * m_fMass;
#endif
}