mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 03:24:15 +01:00
Fix wrong sound when bumping peds
This commit is contained in:
parent
60197c2d7e
commit
c3f49386ca
@ -4354,7 +4354,7 @@ cAudioManager::ProcessPedOneShots(cPedParams ¶ms)
|
||||
m_sQueueSample.m_nFrequency = 20000;
|
||||
AddFightSound:
|
||||
{
|
||||
uint32 soundParams = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i]; // wtf? stroring int as float
|
||||
uint32 soundParams = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i]; // wtf? storing int as float
|
||||
uint8 damagerType = soundParams & 0xFF;
|
||||
uint32 weaponType = soundParams >> 8;
|
||||
|
||||
@ -4402,7 +4402,7 @@ cAudioManager::ProcessPedOneShots(cPedParams ¶ms)
|
||||
case SOUND_WEAPON_BAT_ATTACK:
|
||||
case SOUND_WEAPON_KNIFE_ATTACK:
|
||||
{
|
||||
uint32 soundParams = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i]; // wtf? stroring int as float
|
||||
uint32 soundParams = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i]; // wtf? storing int as float
|
||||
uint8 damagerType = soundParams & 0xFF;
|
||||
uint32 weaponType = soundParams >> 8;
|
||||
if (damagerType == ENTITY_TYPE_PED) {
|
||||
|
@ -2021,9 +2021,9 @@ CPed::PlayHitSound(CPed *hitTo)
|
||||
if (weaponInfo->m_AnimToPlay == ASSOCGRP_KNIFE) {
|
||||
if (m_curFightMove >= FIGHTMOVE_MELEE1) {
|
||||
if (m_curFightMove == FIGHTMOVE_MELEE3) {
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_WEAPON_BAT_ATTACK, (weapon << 8) | 3);
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_WEAPON_BAT_ATTACK, (weapon << 8) | ENTITY_TYPE_PED);
|
||||
} else {
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_WEAPON_KNIFE_ATTACK, (weapon << 8) | 3);
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_WEAPON_KNIFE_ATTACK, (weapon << 8) | ENTITY_TYPE_PED);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@ -2048,7 +2048,7 @@ CPed::PlayHitSound(CPed *hitTo)
|
||||
}
|
||||
|
||||
if (soundId != NO_SND)
|
||||
DMAudio.PlayOneShot(m_audioEntityId, soundId, (weapon << 8) | 3);
|
||||
DMAudio.PlayOneShot(m_audioEntityId, soundId, (weapon << 8) | ENTITY_TYPE_PED);
|
||||
}
|
||||
|
||||
// --MIAMI: Done
|
||||
@ -3567,7 +3567,7 @@ CPed::CollideWithPed(CPed *collideWith)
|
||||
animAssoc->flags |= ASSOC_FADEOUTWHENDONE;
|
||||
collideWith->m_nPedStateTimer = CTimer::GetTimeInMilliseconds() + 1000;
|
||||
if (m_nPedState == PED_ATTACK)
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_FIGHT_46, 0.0f);
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_49, 0.0f);
|
||||
}
|
||||
} else {
|
||||
// We're at his right side
|
||||
|
Loading…
Reference in New Issue
Block a user