mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Merge pull request #1010 from EQEmu/feared_proximity
Added proximity check for feared clients
This commit is contained in:
@@ -747,6 +747,13 @@ void Client::AI_Process()
|
||||
RunTo(m_FearWalkTarget.x, m_FearWalkTarget.y, m_FearWalkTarget.z);
|
||||
}
|
||||
}
|
||||
if (RuleB(Character, ProcessFearedProximity) && proximity_timer.Check()) {
|
||||
entity_list.ProcessMove(this, glm::vec3(GetX(), GetY(), GetZ()));
|
||||
if (RuleB(TaskSystem, EnableTaskSystem) && RuleB(TaskSystem, EnableTaskProximity))
|
||||
ProcessTaskProximities(GetX(), GetY(), GetZ());
|
||||
|
||||
m_Proximity = glm::vec3(GetX(), GetY(), GetZ());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user