mirror of
https://github.com/halpz/re3.git
synced 2024-12-31 19:05:27 +00:00
making it close to original
This commit is contained in:
parent
1234fe9c1c
commit
5fd330b35e
|
@ -2442,16 +2442,24 @@ CBike::BurstTyre(uint8 wheel, bool applyForces)
|
||||||
ApplyTurnForce(GetRight() * m_fTurnMass * CGeneral::GetRandomNumberInRange(-0.02f, 0.02f), GetForward());
|
ApplyTurnForce(GetRight() * m_fTurnMass * CGeneral::GetRandomNumberInRange(-0.02f, 0.02f), GetForward());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FIX_SIGNIFICANT_BUGS
|
|
||||||
// This code checks piece types originally so it is never triggered
|
// This code checks piece types originally so it is never triggered
|
||||||
// as we have converted them to wheel indices above already.
|
// as we have converted them to wheel indices above already.
|
||||||
if(pDriver){
|
if(pDriver){
|
||||||
|
#ifdef FIX_SIGNIFICANT_BUGS
|
||||||
if(wheel == BIKEWHEEL_FRONT && (m_aSuspensionSpringRatioPrev[BIKESUSP_F1] < 1.0f || m_aSuspensionSpringRatioPrev[BIKESUSP_F2] < 1.0f) ||
|
if(wheel == BIKEWHEEL_FRONT && (m_aSuspensionSpringRatioPrev[BIKESUSP_F1] < 1.0f || m_aSuspensionSpringRatioPrev[BIKESUSP_F2] < 1.0f) ||
|
||||||
wheel == BIKEWHEEL_REAR && (m_aSuspensionSpringRatioPrev[BIKESUSP_R1] < 1.0f || m_aSuspensionSpringRatioPrev[BIKESUSP_R2] < 1.0f)){
|
wheel == BIKEWHEEL_REAR && (m_aSuspensionSpringRatioPrev[BIKESUSP_R1] < 1.0f || m_aSuspensionSpringRatioPrev[BIKESUSP_R2] < 1.0f)){
|
||||||
|
#else
|
||||||
|
if(wheel == CAR_PIECE_WHEEL_LF && (m_aSuspensionSpringRatioPrev[BIKESUSP_F1] < 1.0f || m_aSuspensionSpringRatioPrev[BIKESUSP_F2] < 1.0f) ||
|
||||||
|
wheel == CAR_PIECE_WHEEL_LR && (m_aSuspensionSpringRatioPrev[BIKESUSP_R1] < 1.0f || m_aSuspensionSpringRatioPrev[BIKESUSP_R2] < 1.0f)){
|
||||||
|
#endif
|
||||||
float speedSq = m_vecMoveSpeed.MagnitudeSqr();
|
float speedSq = m_vecMoveSpeed.MagnitudeSqr();
|
||||||
if(speedSq > fBikeBurstFallSpeed &&
|
if(speedSq > fBikeBurstFallSpeed &&
|
||||||
(GetStatus() != STATUS_PLAYER || speedSq > fBikeBurstFallSpeedPlayer)){
|
(GetStatus() != STATUS_PLAYER || speedSq > fBikeBurstFallSpeedPlayer)){
|
||||||
|
#ifdef FIX_SIGNIFICANT_BUGS
|
||||||
if(wheel == BIKEWHEEL_FRONT){
|
if(wheel == BIKEWHEEL_FRONT){
|
||||||
|
#else
|
||||||
|
if(wheel == CAR_PIECE_WHEEL_LF){
|
||||||
|
#endif
|
||||||
KnockOffRider(WEAPONTYPE_RAMMEDBYCAR, 0, pDriver, false);
|
KnockOffRider(WEAPONTYPE_RAMMEDBYCAR, 0, pDriver, false);
|
||||||
if(pPassengers[0])
|
if(pPassengers[0])
|
||||||
KnockOffRider(WEAPONTYPE_RAMMEDBYCAR, 0, pPassengers[0], false);
|
KnockOffRider(WEAPONTYPE_RAMMEDBYCAR, 0, pPassengers[0], false);
|
||||||
|
@ -2460,7 +2468,6 @@ CBike::BurstTyre(uint8 wheel, bool applyForces)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue