forked from teamnwah/openmw-tes3coop
fix for bug scrawl mentioned
This commit is contained in:
parent
d41f27451b
commit
ffcb7fb280
2 changed files with 3 additions and 2 deletions
|
@ -181,7 +181,7 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
|
|||
mCurrentHit = sHitList[iHit];
|
||||
if(mPtr.getRefData().getHandle()=="player" && !mAnimation->hasAnimation(mCurrentHit))
|
||||
{
|
||||
//only 4 different hit animations if player is in 1st person
|
||||
//only 3 different hit animations if player is in 1st person
|
||||
int iHit = rand() % (sHitListSize-3);
|
||||
mCurrentHit = sHitList[iHit];
|
||||
}
|
||||
|
@ -489,7 +489,7 @@ bool CharacterController::updateNpcState(bool onground, bool inwater, bool isrun
|
|||
const bool isWerewolf = stats.isWerewolf();
|
||||
|
||||
bool forcestateupdate = false;
|
||||
if(weaptype != mWeaponType)
|
||||
if(weaptype != mWeaponType && mHitState != CharState_KnockDown)
|
||||
{
|
||||
forcestateupdate = true;
|
||||
|
||||
|
|
|
@ -258,6 +258,7 @@ public:
|
|||
/** Returns true if the named animation group is playing. */
|
||||
bool isPlaying(const std::string &groupname) const;
|
||||
|
||||
//Checks if playing any animation which shouldn't be stopped when switching camera view modes
|
||||
bool allowSwitchViewMode() const;
|
||||
|
||||
/** Gets info about the given animation group.
|
||||
|
|
Loading…
Reference in a new issue