mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 10:09:41 +00:00
Fix creature attack swish pitch and invisibility break
This commit is contained in:
parent
bb9884c024
commit
083fda357b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue