mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 12:07:51 +03:00
Override non-biped follow animation by movement
This commit is contained in:
parent
16922f8000
commit
6b07acbbae
1 changed files with 5 additions and 1 deletions
|
@ -1647,7 +1647,11 @@ bool CharacterController::updateWeaponState()
|
|||
|
||||
if (animPlaying)
|
||||
mAnimation->disable(mCurrentWeapon);
|
||||
mAnimation->play(mCurrentWeapon, priorityWeapon, MWRender::Animation::BlendMask_All, false, weapSpeed, mAttackType + ' ' + start, mAttackType + ' ' + stop, 0.0f, 0);
|
||||
MWRender::Animation::AnimPriority priorityFollow(priorityWeapon);
|
||||
// Follow animations have lower priority than movement for non-biped creatures, logic be damned
|
||||
if (!cls.isBipedal(mPtr))
|
||||
priorityFollow = Priority_Default;
|
||||
mAnimation->play(mCurrentWeapon, priorityFollow, MWRender::Animation::BlendMask_All, false, weapSpeed, mAttackType + ' ' + start, mAttackType + ' ' + stop, 0.0f, 0);
|
||||
mUpperBodyState = UpperBodyState::AttackEnd;
|
||||
|
||||
animPlaying = mAnimation->getInfo(mCurrentWeapon, &complete);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue