Make fear and fleeing respect navmesh for both clients and NPCs

This commit is contained in:
Akkadius
2018-09-03 03:06:23 -05:00
parent 8a580a7774
commit 8a28e8500d
3 changed files with 24 additions and 19 deletions
+6 -2
View File
@@ -1142,8 +1142,12 @@ void Mob::AI_Process() {
bool WaypointChanged, NodeReached;
glm::vec3 Goal = UpdatePath(
m_FearWalkTarget.x, m_FearWalkTarget.y, m_FearWalkTarget.z,
GetFearSpeed(), WaypointChanged, NodeReached
m_FearWalkTarget.x,
m_FearWalkTarget.y,
m_FearWalkTarget.z,
GetFearSpeed(),
WaypointChanged,
NodeReached
);
if (WaypointChanged)