1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 11:15:36 +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 committed by Bret Curtis
parent cec1429c0f
commit bc79de4934

View file

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