Core/Movement: merged smooth waypoints (commit: 05fb27dae4)

This commit is contained in:
Ovalord
2018-02-15 13:28:36 +01:00
parent 9b8b296b8a
commit 6dddfc812c
16 changed files with 618 additions and 642 deletions

View File

@@ -679,6 +679,14 @@ void MotionMaster::MovePath(uint32 path_id, bool repeatable)
_owner->GetGUID().GetCounter(), 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)