mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 22:10:41 -04:00
Fix movement fatigue loss encumbrance calculation (fixes #4413)
This commit is contained in:
parent
1c9fba9a8c
commit
ba077e7291
@ -1751,8 +1751,7 @@ void CharacterController::update(float duration)
|
|||||||
|
|
||||||
if (cls.getEncumbrance(mPtr) <= cls.getCapacity(mPtr))
|
if (cls.getEncumbrance(mPtr) <= cls.getCapacity(mPtr))
|
||||||
{
|
{
|
||||||
const float encumbrance = cls.getEncumbrance(mPtr) / cls.getCapacity(mPtr);
|
const float encumbrance = cls.getNormalizedEncumbrance(mPtr);
|
||||||
|
|
||||||
if (sneak)
|
if (sneak)
|
||||||
fatigueLoss = fFatigueSneakBase + encumbrance * fFatigueSneakMult;
|
fatigueLoss = fFatigueSneakBase + encumbrance * fFatigueSneakMult;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user