mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix the reloading sound in 2.0, the behavior is different in 2.0 and 2.30
This commit is contained in:
parent
cde7cbc3a3
commit
3733761696
1 changed files with 12 additions and 0 deletions
|
@ -1031,6 +1031,18 @@ void VehicleTurretGun::AdjustReloadStatus()
|
||||||
m_iAmmo = m_iReloadShots;
|
m_iAmmo = m_iReloadShots;
|
||||||
m_fReloadTimeRemaining = m_fReloadDelay;
|
m_fReloadTimeRemaining = m_fReloadDelay;
|
||||||
|
|
||||||
|
if (g_target_game <= target_game_e::TG_MOHTA) {
|
||||||
|
//
|
||||||
|
// Below 2.30 (Spearhead), the sound is played immediately.
|
||||||
|
// 2.30 has it wrong with the Nebelwerfer.
|
||||||
|
//
|
||||||
|
ProcessEvent(EV_VehicleTurretGun_PlayReloadSound);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Changed in 2.30
|
||||||
|
// Play the reload sound once finished reloading
|
||||||
PostEvent(EV_VehicleTurretGun_PlayReloadSound, m_fReloadDelay * 0.5);
|
PostEvent(EV_VehicleTurretGun_PlayReloadSound, m_fReloadDelay * 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue