From 695f212be6e24c984ae7e409de3e482a754142e9 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 25 Jul 2022 22:13:03 -0400 Subject: [PATCH] Core/Units: Removed spline speed limit for MoveJumpWithGravity Port From (https://github.com/TrinityCore/TrinityCore/commit/96295cfc5fdd6790313eda694da99ee661f3c0f0) --- Source/Game/Movement/MotionMaster.cs | 1 + Source/Game/Movement/MoveSplineInit.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Source/Game/Movement/MotionMaster.cs b/Source/Game/Movement/MotionMaster.cs index 534dfabb3..f026f0a00 100644 --- a/Source/Game/Movement/MotionMaster.cs +++ b/Source/Game/Movement/MotionMaster.cs @@ -812,6 +812,7 @@ namespace Game.Movement init.SetParabolicVerticalAcceleration(gravity, 0); init.SetUncompressed(); init.SetVelocity(speedXY); + init.SetUnlimitedSpeed(); if (hasOrientation) init.SetFacing(pos.GetOrientation()); if (spellEffectExtraData != null) diff --git a/Source/Game/Movement/MoveSplineInit.cs b/Source/Game/Movement/MoveSplineInit.cs index 83b06d158..a9edefc5e 100644 --- a/Source/Game/Movement/MoveSplineInit.cs +++ b/Source/Game/Movement/MoveSplineInit.cs @@ -283,6 +283,8 @@ namespace Game.Movement public void SetOrientationFixed(bool enable) { args.flags.SetUnsetFlag(SplineFlag.OrientationFixed, enable); } + public void SetUnlimitedSpeed() { args.flags.SetUnsetFlag(SplineFlag.UnlimitedSpeed, true); } + public void MovebyPath(Vector3[] controls, int path_offset = 0) { args.path_Idx_offset = path_offset;