summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-25 20:25:14 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-25 20:25:14 +0200
commitae8deff1315f8535ebed4ae4a22d1dd7e808f3d0 (patch)
tree0b3bceea982c0b2d435322eda6922a34d83431ba /src/vehicles/Automobile.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar
re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.gz
re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.bz2
re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.lz
re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.xz
re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.zst
re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r--src/vehicles/Automobile.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 74609e15..bfb215d2 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -1013,16 +1013,28 @@ CAutomobile::ProcessControl(void)
m_aWheelSpeed[0] = Max(m_aWheelSpeed[0]-0.0005f, 0.0f);
}else if((GetModelIndex() == MI_DODO || CVehicle::bAllDodosCheat) &&
m_vecMoveSpeed.Magnitude() > 0.0f && CTimer::GetTimeStep() > 0.0f){
- FlyingControl(FLIGHT_MODEL_DODO);
+#ifdef ALT_DODO_CHEAT
+ if (bAltDodoCheat)
+ FlyingControl(FLIGHT_MODEL_SEAPLANE);
+ else
+#endif
+ FlyingControl(FLIGHT_MODEL_DODO);
}else if(GetModelIndex() == MI_MIAMI_RCBARON){
FlyingControl(FLIGHT_MODEL_RCPLANE);
}else if(GetModelIndex() == MI_MIAMI_RCRAIDER || GetModelIndex() == MI_MIAMI_SPARROW || bAllCarCheat){
- if(CPad::GetPad(0)->GetCircleJustDown())
- m_aWheelSpeed[0] = Max(m_aWheelSpeed[0]-0.03f, 0.0f);
- if(m_aWheelSpeed[0] < 0.22f)
- m_aWheelSpeed[0] += 0.0001f;
- if(m_aWheelSpeed[0] > 0.15f)
+#ifdef ALLCARSHELI_CHEAT
+ if (bAllCarCheat)
FlyingControl(FLIGHT_MODEL_HELI);
+ else
+#endif
+ {
+ if (CPad::GetPad(0)->GetCircleJustDown())
+ m_aWheelSpeed[0] = Max(m_aWheelSpeed[0] - 0.03f, 0.0f);
+ if (m_aWheelSpeed[0] < 0.22f)
+ m_aWheelSpeed[0] += 0.0001f;
+ if (m_aWheelSpeed[0] > 0.15f)
+ FlyingControl(FLIGHT_MODEL_HELI);
+ }
}
}