aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Movement/MotionMaster.cpp
diff options
context:
space:
mode:
authorRiztazz <felianther15@gmail.com>2016-11-25 00:31:10 +0100
committerjoschiwald <joschiwald.trinity@gmail.com>2018-02-11 15:53:32 +0100
commit05fb27dae4e8af859e01e5b9e52b082cba217657 (patch)
treeda858a540a26344d3e6af66017d46d7b1df7eb71 /src/server/game/Movement/MotionMaster.cpp
parent27cdd4b257d01005d9e342b39a4fdf76567d13cf (diff)
[3.3.5][master] Core/Movement: Smooth movement #13467 (#18020)
Implement smooth movement for all waypoint pathing and escortai (cherry picked from commit 28050f338dfc66e0c40b6a3915bf96e38e0613e5)
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rw-r--r--src/server/game/Movement/MotionMaster.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp
index 463ba3a5da1..f8836d01e52 100644
--- a/src/server/game/Movement/MotionMaster.cpp
+++ b/src/server/game/Movement/MotionMaster.cpp
@@ -701,6 +701,14 @@ void MotionMaster::MovePath(uint32 path_id, bool repeatable)
_owner->GetGUID().ToString().c_str(), path_id, repeatable ? "YES" : "NO");
}
+void MotionMaster::MovePath(WaypointPath& path, bool repeatable)
+{
+ Mutate(new WaypointMovementGenerator<Creature>(path, repeatable), MOTION_SLOT_IDLE);
+
+ TC_LOG_DEBUG("misc", "%s starts moving over path (repeatable: %s).",
+ _owner->GetGUID().ToString().c_str(), repeatable ? "YES" : "NO");
+}
+
void MotionMaster::MoveRotate(uint32 time, RotateDirection direction)
{
if (!time)