summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-09-26 19:36:07 +0200
committerRoman Masanin <36927roma@gmail.com>2020-09-26 19:36:07 +0200
commitec8ac117ed061abbd72215e4efef18e7f48294cf (patch)
tree958e75e6ee6a5e724a7c520eb64fbb0b7398e1e8 /src/vehicles
parentsmall fixes and cleanup (diff)
downloadre3-ec8ac117ed061abbd72215e4efef18e7f48294cf.tar
re3-ec8ac117ed061abbd72215e4efef18e7f48294cf.tar.gz
re3-ec8ac117ed061abbd72215e4efef18e7f48294cf.tar.bz2
re3-ec8ac117ed061abbd72215e4efef18e7f48294cf.tar.lz
re3-ec8ac117ed061abbd72215e4efef18e7f48294cf.tar.xz
re3-ec8ac117ed061abbd72215e4efef18e7f48294cf.tar.zst
re3-ec8ac117ed061abbd72215e4efef18e7f48294cf.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Vehicle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 378a4c0a..795219ba 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -351,6 +351,11 @@ CVehicle::FlyingControl(eFlightModel flightModel)
fSteerUD *= -fSteerMult;
// thrust
+#ifdef ALT_DODO_CHEAT //allow fly on cars
+ float dooCompinsator = ((CPad::GetPad(0)->GetAccelerate() - CPad::GetPad(0)->GetBrake()) / 255.0f) * 2;
+ if (bAltDodoCheat)
+ ApplyMoveForce(GetForward() * CTimer::GetTimeStep() * dooCompinsator);
+#endif
float fForwSpeed = DotProduct(GetMoveSpeed(), GetForward());
CVector vecTail = GetColModel()->boundingBox.min.y * GetForward();
float fThrust = (CPad::GetPad(0)->GetAccelerate() - CPad::GetPad(0)->GetBrake()) / 255.0f;