Core/Units: Removed spline speed limit for MoveJumpWithGravity
Port From (https://github.com/TrinityCore/TrinityCore/commit/96295cfc5fdd6790313eda694da99ee661f3c0f0)
This commit is contained in:
@@ -812,6 +812,7 @@ namespace Game.Movement
|
|||||||
init.SetParabolicVerticalAcceleration(gravity, 0);
|
init.SetParabolicVerticalAcceleration(gravity, 0);
|
||||||
init.SetUncompressed();
|
init.SetUncompressed();
|
||||||
init.SetVelocity(speedXY);
|
init.SetVelocity(speedXY);
|
||||||
|
init.SetUnlimitedSpeed();
|
||||||
if (hasOrientation)
|
if (hasOrientation)
|
||||||
init.SetFacing(pos.GetOrientation());
|
init.SetFacing(pos.GetOrientation());
|
||||||
if (spellEffectExtraData != null)
|
if (spellEffectExtraData != null)
|
||||||
|
|||||||
@@ -283,6 +283,8 @@ namespace Game.Movement
|
|||||||
|
|
||||||
public void SetOrientationFixed(bool enable) { args.flags.SetUnsetFlag(SplineFlag.OrientationFixed, enable); }
|
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)
|
public void MovebyPath(Vector3[] controls, int path_offset = 0)
|
||||||
{
|
{
|
||||||
args.path_Idx_offset = path_offset;
|
args.path_Idx_offset = path_offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user