mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 02:09:00 +00:00
Improve dodo cheat to allow fly on cars
This commit is contained in:
parent
c61160fee3
commit
ec8ac117ed
1 changed files with 5 additions and 0 deletions
|
@ -351,6 +351,11 @@ CVehicle::FlyingControl(eFlightModel flightModel)
|
||||||
fSteerUD *= -fSteerMult;
|
fSteerUD *= -fSteerMult;
|
||||||
|
|
||||||
// thrust
|
// 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());
|
float fForwSpeed = DotProduct(GetMoveSpeed(), GetForward());
|
||||||
CVector vecTail = GetColModel()->boundingBox.min.y * GetForward();
|
CVector vecTail = GetColModel()->boundingBox.min.y * GetForward();
|
||||||
float fThrust = (CPad::GetPad(0)->GetAccelerate() - CPad::GetPad(0)->GetBrake()) / 255.0f;
|
float fThrust = (CPad::GetPad(0)->GetAccelerate() - CPad::GetPad(0)->GetBrake()) / 255.0f;
|
||||||
|
|
Loading…
Reference in a new issue