From a162bf0eb75962b26fa66a70d1b1376f40738510 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Sun, 18 Aug 2024 22:11:34 -0400 Subject: [PATCH] Core/Movement: Enable Catmullrom spline flag by default for flying waypoint paths Port From (https://github.com/TrinityCore/TrinityCore/commit/e0e1b6a4098badb6f48ba1d5cb1cc1739e310959) --- Source/Game/Movement/Generators/WaypointMovement.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/Movement/Generators/WaypointMovement.cs b/Source/Game/Movement/Generators/WaypointMovement.cs index 428913494..1526a2f73 100644 --- a/Source/Game/Movement/Generators/WaypointMovement.cs +++ b/Source/Game/Movement/Generators/WaypointMovement.cs @@ -485,6 +485,9 @@ namespace Game.Movement if (_speed.HasValue) init.SetVelocity(_speed.Value); + if (IsExactSplinePath() && points.Count > 2 && owner.CanFly()) + init.SetSmooth(); + TimeSpan duration = TimeSpan.FromMilliseconds(init.Launch()); if (!IsExactSplinePath()