|
|
|
@ -2012,10 +2012,7 @@ void CharacterController::update(float duration)
|
|
|
|
|
// inflict fall damages
|
|
|
|
|
if (!godmode)
|
|
|
|
|
{
|
|
|
|
|
DynamicStat<float> health = cls.getCreatureStats(mPtr).getHealth();
|
|
|
|
|
float realHealthLost = static_cast<float>(healthLost * (1.0f - 0.25f * fatigueTerm));
|
|
|
|
|
health.setCurrent(health.getCurrent() - realHealthLost);
|
|
|
|
|
cls.getCreatureStats(mPtr).setHealth(health);
|
|
|
|
|
cls.onHit(mPtr, realHealthLost, true, MWWorld::Ptr(), MWWorld::Ptr(), osg::Vec3f(), true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|