summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/ControllerConfig.cpp3
-rw-r--r--src/core/Pad.cpp31
-rw-r--r--src/vehicles/Automobile.cpp3
-rw-r--r--src/vehicles/Vehicle.cpp11
-rw-r--r--src/vehicles/Vehicle.h3
5 files changed, 8 insertions, 43 deletions
diff --git a/src/core/ControllerConfig.cpp b/src/core/ControllerConfig.cpp
index 222e9e34..51e942d0 100644
--- a/src/core/ControllerConfig.cpp
+++ b/src/core/ControllerConfig.cpp
@@ -742,9 +742,6 @@ void CControllerConfigManager::AffectControllerStateOn_ButtonDown_Driving(int32
#ifdef FIX_BUGS
|| (CVehicle::bAllDodosCheat && !FindPlayerVehicle()->IsRealHeli())
#endif
-#ifdef BETTER_ALLCARSAREDODO_CHEAT
- || (CVehicle::bAltDodoCheat && !FindPlayerVehicle()->IsRealHeli())
-#endif
)))
{
isDodo = true;
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 6e9a37b3..910a8c52 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -412,7 +412,11 @@ void OnlyRenderWheelsCheat()
void ChittyChittyBangBangCheat()
{
+#ifdef BETTER_ALLCARSAREDODO_CHEAT
+ CHud::SetHelpMessage(TheText.Get(!CVehicle::bAllDodosCheat ? "CHEAT1" : "CHEATOF"), true);
+#else
CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
+#endif
CVehicle::bAllDodosCheat = !CVehicle::bAllDodosCheat;
CStats::CheatedCount += 1000;
CPad::bHasPlayerCheated = true;
@@ -542,22 +546,6 @@ void AllCarsHeliCheat(void)
}
#endif
-#ifdef BETTER_ALLCARSAREDODO_CHEAT
-void AllCarsPlaneCheat(void)
-{
- wchar* string;
- if (CVehicle::bAltDodoCheat) {
- string = TheText.Get("CHEATOF");
- CVehicle::bAltDodoCheat = false;
- }
- else {
- string = TheText.Get("CHEAT1");
- CVehicle::bAltDodoCheat = true;
- }
- CHud::SetHelpMessage(string, true);
-}
-#endif
-
#ifdef WALLCLIMB_CHEAT
void WallClimbingCheat(void)
{
@@ -1444,12 +1432,6 @@ void CPad::AddToPCCheatString(char c)
AllCarsHeliCheat();
#endif
-#ifdef BETTER_ALLCARSAREDODO_CHEAT
- // "CARSAREPLANE"
- if (!_CHEATCMP("ENALPERASRAC"))
- AllCarsPlaneCheat();
-#endif
-
#ifdef WALLCLIMB_CHEAT
// "SPIDERCAR"
if (!_CHEATCMP("RACREDIPS"))
@@ -3169,11 +3151,6 @@ void CPad::ResetCheats(void)
#ifdef RESTORE_ALLCARSHELI_CHEAT
bAllCarCheat = false;
#endif
-#ifdef BETTER_ALLCARSAREDODO_CHEAT
- CVehicle::bAltDodoCheat = false;
-#endif
-
-
gbBlackCars = false;
gbPinkCars = false;
CCarCtrl::bMadDriversCheat = false;
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 08fe7718..2d6fc740 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -1376,9 +1376,6 @@ CAutomobile::ProcessControl(void)
bool playRotorSound = false;
bool isPlane = GetModelIndex() == MI_DODO || bAllDodosCheat;
-#ifdef BETTER_ALLCARSAREDODO_CHEAT
- isPlane = isPlane || bAltDodoCheat;
-#endif
#ifdef FIX_BUGS
isPlane = isPlane && !IsRealHeli();
#endif
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
}
diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h
index 30f84ede..6bd6f7c6 100644
--- a/src/vehicles/Vehicle.h
+++ b/src/vehicles/Vehicle.h
@@ -400,9 +400,6 @@ public:
static bool bCheat4;
static bool bCheat5;
static bool bCheat8;
-#ifdef BETTER_ALLCARSAREDODO_CHEAT
- static bool bAltDodoCheat;
-#endif
static bool bHoverCheat;
static bool bAllTaxisHaveNitro;
static bool m_bDisableMouseSteering;