mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
Water work and work with grids (still not perfect but i think its the ai code)
This commit is contained in:
+2
-2
@@ -1710,7 +1710,7 @@ void NPC::AI_DoMovement() {
|
||||
|
||||
SetWaypointPause();
|
||||
SetAppearance(eaStanding, false);
|
||||
if (m_CurrentWayPoint.w >= 0.0) {
|
||||
if (cur_wp_pause > 0 && m_CurrentWayPoint.w >= 0.0) {
|
||||
RotateTo(m_CurrentWayPoint.w);
|
||||
}
|
||||
|
||||
@@ -1756,7 +1756,7 @@ void NPC::AI_DoMovement() {
|
||||
|
||||
}
|
||||
else if (IsGuarding()) {
|
||||
bool at_gp = IsPositionEqualWithinCertainZ(m_Position, m_GuardPoint, 5.0f);
|
||||
bool at_gp = IsPositionEqualWithinCertainZ(m_Position, m_GuardPoint, 15.0f);
|
||||
|
||||
if (at_gp) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user