mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-03 00:04:31 +00:00
Merge branch 'sheerheartattackhasnoweaknesses' into 'master'
Animation regression fixes See merge request OpenMW/openmw!2255
This commit is contained in:
parent
cec1429c0f
commit
bc79de4934
1 changed files with 2 additions and 1 deletions
|
|
@ -1570,8 +1570,9 @@ bool CharacterController::updateWeaponState(CharacterState idle)
|
||||||
mUpperBodyState = UpperCharState_StartToMinAttack;
|
mUpperBodyState = UpperCharState_StartToMinAttack;
|
||||||
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