mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-24 04:11:50 -04:00
Merge branch 'sheerheartattackhasnoweaknesses' into 'master'
Animation regression fixes See merge request OpenMW/openmw!2255
This commit is contained in:
parent
cec1429c0f
commit
bc79de4934
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user