1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-22 10:09:41 +00:00

Fix creature attack swish pitch and invisibility break

This commit is contained in:
Alexei Kotov 2022-08-09 23:03:53 +03:00
parent bb9884c024
commit 083fda357b

View file

@ -1559,8 +1559,9 @@ bool CharacterController::updateWeaponState()
mUpperBodyState = UpperBodyState::AttackPreWindUp;
if (isRandomAttackAnimation(mCurrentWeapon))
{
world->breakInvisibility(mPtr);
mAttackStrength = std::min(1.f, 0.1f + Misc::Rng::rollClosedProbability(prng));
playSwishSound(0.0f);
playSwishSound(mAttackStrength);
}
}
}