summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-22 06:01:04 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-22 06:01:04 +0200
commita1444b992f47ef058d0f270716d9b00791e80862 (patch)
treef36f341f61482270e8c54dd04987d623a49f8f62
parentfix garbage data written in garage save block (diff)
downloadre3-a1444b992f47ef058d0f270716d9b00791e80862.tar
re3-a1444b992f47ef058d0f270716d9b00791e80862.tar.gz
re3-a1444b992f47ef058d0f270716d9b00791e80862.tar.bz2
re3-a1444b992f47ef058d0f270716d9b00791e80862.tar.lz
re3-a1444b992f47ef058d0f270716d9b00791e80862.tar.xz
re3-a1444b992f47ef058d0f270716d9b00791e80862.tar.zst
re3-a1444b992f47ef058d0f270716d9b00791e80862.zip
-rw-r--r--src/audio/AudioLogic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 5ee5ddd1..6c53eb10 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -2955,7 +2955,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params)
CPed *pPed = params.m_pVehicle->pDriver;
if(!pPed)
break;
- if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN)) {
+ if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
sampleIndex = SFX_UZI_LEFT;
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
frequency += RandomDisplacement(frequency / 32);