1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-01 13:41:34 +00:00

Merge branch 'sheerheartattackhasnoweaknesses' into 'master'

Animation regression fixes

See merge request OpenMW/openmw!2255
This commit is contained in:
psi29a 2022-08-10 07:55:01 +00:00
commit 10ee0e6e1b

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);
}
}
}