Complete sfx enum, rename some sounds + fixes of missing ped comments
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user