mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-13 09:00:33 +00:00
Pad, BulletInfo, ProjectileInfo, fixes
This commit is contained in:
parent
e3571510ae
commit
da39624f1c
20 changed files with 608 additions and 315 deletions
|
@ -959,17 +959,24 @@ CBoat::PreRender(void)
|
|||
matrix.Translate(pos);
|
||||
matrix.UpdateRW();
|
||||
}
|
||||
// FIX: Planes can also be controlled with GetCarGunUpDown
|
||||
#ifdef FIX_BUGS
|
||||
static float steeringUpDown = 0.0f;
|
||||
steeringUpDown += ((Abs(CPad::GetPad(0)->GetCarGunUpDown()) > 1.0f ? (-CPad::GetPad(0)->GetCarGunUpDown() / 128.0f) : (-CPad::GetPad(0)->GetSteeringUpDown() / 128.0f)) - steeringUpDown) * Min(1.f, CTimer::GetTimeStep() / 5.f);
|
||||
#else
|
||||
float steeringUpDown = -CPad::GetPad(0)->GetSteeringUpDown()/128.0f;
|
||||
#endif
|
||||
if(m_aBoatNodes[BOAT_REARFLAP_LEFT]){
|
||||
matrix.Attach(RwFrameGetMatrix(m_aBoatNodes[BOAT_REARFLAP_LEFT]));
|
||||
pos = matrix.GetPosition();
|
||||
matrix.SetRotateX(-CPad::GetPad(0)->GetSteeringUpDown()/128.0f);
|
||||
matrix.SetRotateX(steeringUpDown);
|
||||
matrix.Translate(pos);
|
||||
matrix.UpdateRW();
|
||||
}
|
||||
if(m_aBoatNodes[BOAT_REARFLAP_RIGHT]){
|
||||
matrix.Attach(RwFrameGetMatrix(m_aBoatNodes[BOAT_REARFLAP_RIGHT]));
|
||||
pos = matrix.GetPosition();
|
||||
matrix.SetRotateX(-CPad::GetPad(0)->GetSteeringUpDown()/128.0f);
|
||||
matrix.SetRotateX(steeringUpDown);
|
||||
matrix.Translate(pos);
|
||||
matrix.UpdateRW();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue