mirror of
https://github.com/halpz/re3.git
synced 2025-01-11 20:55:27 +00:00
Fix Predator shooting sound
This commit is contained in:
parent
76558e9313
commit
a1444b992f
|
@ -2955,7 +2955,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params)
|
||||||
CPed *pPed = params.m_pVehicle->pDriver;
|
CPed *pPed = params.m_pVehicle->pDriver;
|
||||||
if(!pPed)
|
if(!pPed)
|
||||||
break;
|
break;
|
||||||
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN)) {
|
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
|
||||||
sampleIndex = SFX_UZI_LEFT;
|
sampleIndex = SFX_UZI_LEFT;
|
||||||
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
|
||||||
frequency += RandomDisplacement(frequency / 32);
|
frequency += RandomDisplacement(frequency / 32);
|
||||||
|
|
Loading…
Reference in a new issue