forked from mirror/openmw-tes3mp
Use fWereWolfRunMult only when no weapon is drawn
This commit is contained in:
parent
63cb91db2e
commit
177de58884
1 changed files with 3 additions and 2 deletions
|
@ -918,8 +918,6 @@ namespace MWClass
|
|||
|
||||
float runSpeed = walkSpeed*(0.01f * npcdata->mNpcStats.getSkill(ESM::Skill::Athletics).getModified() *
|
||||
gmst.fAthleticsRunBonus->getFloat() + gmst.fBaseRunMultiplier->getFloat());
|
||||
if(npcdata->mNpcStats.isWerewolf())
|
||||
runSpeed *= gmst.fWereWolfRunMult->getFloat();
|
||||
|
||||
float moveSpeed;
|
||||
if(normalizedEncumbrance >= 1.0f)
|
||||
|
@ -951,6 +949,9 @@ namespace MWClass
|
|||
if(getMovementSettings(ptr).mPosition[0] != 0 && getMovementSettings(ptr).mPosition[1] == 0)
|
||||
moveSpeed *= 0.75f;
|
||||
|
||||
if(npcdata->mNpcStats.isWerewolf() && running && npcdata->mNpcStats.getDrawState() == MWMechanics::DrawState_Nothing)
|
||||
moveSpeed *= gmst.fWereWolfRunMult->getFloat();
|
||||
|
||||
return moveSpeed;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue