From c29bdd4b1def801614b366c773299431ed553547 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Sat, 17 Mar 2018 14:29:11 -0400 Subject: [PATCH] Add a sanity check to prevent mobs climbing steep walls Ex. in OMM's room in anguish --- zone/mob_ai.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index d40f3ab9a..134beee0a 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -1023,6 +1023,8 @@ void Mob::ProcessForcedMovement() pLastChange = Timer::GetCurrentTime(); FixZ(); // so we teleport to the ground locally, we want the client to interpolate falling etc } else if (--ForcedMovement) { + if (normal.z < -0.15f) // prevent too much wall climbing. ex. OMM's room in anguish + normal.z = 0.0f; auto proj = glm::proj(static_cast(m_Delta), normal); m_Delta.x -= proj.x; m_Delta.y -= proj.y;