mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Don't apply kick fireback on older versions of the game
This commit is contained in:
parent
45de1067bd
commit
ec6cab28a5
1 changed files with 8 additions and 0 deletions
|
@ -1157,6 +1157,14 @@ void VehicleTurretGun::ApplyFireKickback(const Vector& org, float kickback)
|
|||
return;
|
||||
}
|
||||
|
||||
if (g_target_game <= target_game_e::TG_MOH) {
|
||||
// Don't apply fire kickback in older version
|
||||
// this could cause issues as models weren't made for this feature
|
||||
return;
|
||||
}
|
||||
|
||||
// Added in 2.0
|
||||
|
||||
pVehicle = static_cast<Vehicle *>(m_pVehicleOwner.Pointer());
|
||||
pVehicle->m_fForwardForce += org.x * kickback;
|
||||
pVehicle->m_fLeftForce += org.y * kickback;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue