|
|
@ -1232,6 +1232,9 @@ namespace MWMechanics
|
|
|
|
float sqrHeadTrackDistance = std::numeric_limits<float>::max();
|
|
|
|
float sqrHeadTrackDistance = std::numeric_limits<float>::max();
|
|
|
|
MWWorld::Ptr headTrackTarget;
|
|
|
|
MWWorld::Ptr headTrackTarget;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Unconsious actor can not track target
|
|
|
|
|
|
|
|
if (!iter->first.getClass().getCreatureStats(iter->first).getKnockedDown())
|
|
|
|
|
|
|
|
{
|
|
|
|
for(PtrActorMap::iterator it(mActors.begin()); it != mActors.end(); ++it)
|
|
|
|
for(PtrActorMap::iterator it(mActors.begin()); it != mActors.end(); ++it)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (it->first == iter->first)
|
|
|
|
if (it->first == iter->first)
|
|
|
@ -1240,6 +1243,7 @@ namespace MWMechanics
|
|
|
|
}
|
|
|
|
}
|
|
|
|
iter->second->getCharacterController()->setHeadTrackTarget(headTrackTarget);
|
|
|
|
iter->second->getCharacterController()->setHeadTrackTarget(headTrackTarget);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (iter->first.getClass().isNpc() && iter->first != player)
|
|
|
|
if (iter->first.getClass().isNpc() && iter->first != player)
|
|
|
|
updateCrimePersuit(iter->first, duration);
|
|
|
|
updateCrimePersuit(iter->first, duration);
|
|
|
|