diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-05-12 02:26:54 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-05-12 02:26:54 +0200 |
commit | 2fc431d1bb9870e39727548ef80f9512644990d1 (patch) | |
tree | 4d14cc19d659a1af7c1da09a8724a225d6aff3c9 /src/peds/PedFight.cpp | |
parent | fabs -> fabsf (diff) | |
download | re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.gz re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.bz2 re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.lz re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.xz re3-2fc431d1bb9870e39727548ef80f9512644990d1.tar.zst re3-2fc431d1bb9870e39727548ef80f9512644990d1.zip |
Diffstat (limited to 'src/peds/PedFight.cpp')
-rw-r--r-- | src/peds/PedFight.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PedFight.cpp b/src/peds/PedFight.cpp index 79e01211..9ea0ae4e 100644 --- a/src/peds/PedFight.cpp +++ b/src/peds/PedFight.cpp @@ -821,7 +821,7 @@ CPed::Attack(void) || weaponAnimAssoc->currentTime - weaponAnimAssoc->timeStep > delayBetweenAnimAndFire) { if (GetWeapon()->m_eWeaponType == WEAPONTYPE_CHAINSAW) { - DMAudio.PlayOneShot(m_audioEntityId, SOUND_WEAPON_CHAINSAW_ATTACK, 0.0f); + DMAudio.PlayOneShot(m_audioEntityId, SOUND_WEAPON_CHAINSAW_IDLE, 0.0f); } else if (weaponAnimTime <= delayBetweenAnimAndFire || weaponAnimTime - weaponAnimAssoc->timeStep > delayBetweenAnimAndFire || !weaponAnimAssoc->IsRunning()) { if (weaponAnimAssoc->speed < 1.0f) weaponAnimAssoc->speed = 1.0f; @@ -897,7 +897,7 @@ CPed::Attack(void) CPad::GetPad(0)->StartShake(240, 180); } } else { - DMAudio.PlayOneShot(m_audioEntityId, SOUND_WEAPON_CHAINSAW_IDLE, 0.0f); + DMAudio.PlayOneShot(m_audioEntityId, SOUND_WEAPON_CHAINSAW_ATTACK, 0.0f); if (IsPlayer()) { CPad::GetPad(0)->StartShake(240, 90); } |