mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-15 13:44:08 +00:00
anims done. ped fight hacked to compile
This commit is contained in:
parent
4debd89d8e
commit
49d5c02d69
7 changed files with 779 additions and 450 deletions
|
@ -4363,14 +4363,18 @@ cAudioManager::ProcessPedOneShots(cPedParams ¶ms)
|
|||
if (weaponType == WEAPONTYPE_BRASSKNUCKLE) {
|
||||
CPed* ped = params.m_pPed;
|
||||
uint32 fightMove = ped->m_curFightMove;
|
||||
if (fightMove == FIGHTMOVE_BACKLEFT || fightMove == FIGHTMOVE_STDPUNCH || fightMove == FIGHTMOVE_PUNCH ||
|
||||
// LCS:removed for now
|
||||
//if (fightMove == FIGHTMOVE_BACKLEFT || fightMove == FIGHTMOVE_STDPUNCH || fightMove == FIGHTMOVE_PUNCH ||
|
||||
if (
|
||||
ped->m_nPedState == PED_ATTACK) {
|
||||
CEntity* damageEntity = ped->m_pDamageEntity;
|
||||
if (!damageEntity)
|
||||
m_sQueueSample.m_nSampleIndex = m_anRandomTable[3] % 2 + SFX_HAMMER_HIT_1;
|
||||
else if (damageEntity->GetType() != ENTITY_TYPE_PED)
|
||||
m_sQueueSample.m_nSampleIndex = m_anRandomTable[3] % 2 + SFX_HAMMER_HIT_1;
|
||||
else if (((CPed*)damageEntity)->m_curFightMove != FIGHTMOVE_HITHEAD)
|
||||
// LCS:removed for now
|
||||
//else if (((CPed*)damageEntity)->m_curFightMove != FIGHTMOVE_HITHEAD)
|
||||
else if(1)
|
||||
m_sQueueSample.m_nSampleIndex = m_anRandomTable[3] % 2 + SFX_HAMMER_HIT_1;
|
||||
else
|
||||
m_sQueueSample.m_nSampleIndex = SFX_HAMMER_HIT_1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue