1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-05 06:35:54 +00:00

Improve dodo cheat to allow fly on cars

This commit is contained in:
Roman Masanin 2020-09-26 20:36:07 +03:00
parent c61160fee3
commit ec8ac117ed

View file

@ -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;