diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-26 23:53:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 23:53:54 +0200 |
commit | 68bf2398689a1de168dce41d31ad2070ce32f70a (patch) | |
tree | 9de92b6123fb2b7e219768b5b6e5c11b2ac0b75a /src/vehicles/Automobile.cpp | |
parent | Merge branch 'master' of github.com:gtamodding/re3 (diff) | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | re3-68bf2398689a1de168dce41d31ad2070ce32f70a.tar re3-68bf2398689a1de168dce41d31ad2070ce32f70a.tar.gz re3-68bf2398689a1de168dce41d31ad2070ce32f70a.tar.bz2 re3-68bf2398689a1de168dce41d31ad2070ce32f70a.tar.lz re3-68bf2398689a1de168dce41d31ad2070ce32f70a.tar.xz re3-68bf2398689a1de168dce41d31ad2070ce32f70a.tar.zst re3-68bf2398689a1de168dce41d31ad2070ce32f70a.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 24 |
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); + } } } |