1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Merge pull request #3000 from akortunov/swish

Do not use swish sound for ranged weapons
This commit is contained in:
Andrei Kortunov 2020-09-04 13:48:09 +04:00 committed by GitHub
commit c9f0e4b62a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1788,7 +1788,9 @@ bool CharacterController::updateWeaponState(CharacterState& idle)
mUpperBodyState = UpperCharState_MinAttackToMaxAttack;
break;
}
playSwishSound(0.0f);
if(weapclass != ESM::WeaponType::Ranged && weapclass != ESM::WeaponType::Thrown)
playSwishSound(0.0f);
}
if(mAttackType == "shoot")