mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-08 23:16:39 +00:00
Merge branch 'sheerheartattackhasnoweaknesses' into 'master'
Animation regression fixes See merge request OpenMW/openmw!2255
This commit is contained in:
commit
10ee0e6e1b
1 changed files with 2 additions and 1 deletions
|
|
@ -1559,8 +1559,9 @@ bool CharacterController::updateWeaponState()
|
||||||
mUpperBodyState = UpperBodyState::AttackPreWindUp;
|
mUpperBodyState = UpperBodyState::AttackPreWindUp;
|
||||||
if (isRandomAttackAnimation(mCurrentWeapon))
|
if (isRandomAttackAnimation(mCurrentWeapon))
|
||||||
{
|
{
|
||||||
|
world->breakInvisibility(mPtr);
|
||||||
mAttackStrength = std::min(1.f, 0.1f + Misc::Rng::rollClosedProbability(prng));
|
mAttackStrength = std::min(1.f, 0.1f + Misc::Rng::rollClosedProbability(prng));
|
||||||
playSwishSound(0.0f);
|
playSwishSound(mAttackStrength);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue