Core: Updated to 11.1.7

Port From (https://github.com/TrinityCore/TrinityCore/commit/ceb8d561b44579118b109a9ff71ba415df53bbdc)
This commit is contained in:
Hondacrx
2025-08-18 14:47:48 -04:00
parent 5f6329665a
commit ebd9c9e636
35 changed files with 1824 additions and 1603 deletions
+17
View File
@@ -176,6 +176,9 @@ namespace Game.Movement
loc.W = unit.GetOrientation();
}
if (move_spline.IsTurning())
SetFacing(loc.W);
args.flags.Flags = MoveSplineFlagEnum.Done;
unit.m_movementInfo.RemoveMovementFlag(MovementFlag.Forward);
move_spline.onTransport = transport;
@@ -186,6 +189,9 @@ namespace Game.Movement
packet.Pos = new Vector3(loc.X, loc.Y, loc.Z);
packet.SplineData.StopSplineStyle = 2;
packet.SplineData.Id = move_spline.GetId();
packet.SplineData.StopUseFaceDirection = args.facing.type == MonsterMoveType.FacingAngle;
packet.SplineData.Move.Face = args.facing.type;
packet.SplineData.Move.FaceDirection = args.facing.angle;
if (transport)
{
@@ -324,6 +330,17 @@ namespace Game.Movement
args.spellEffectExtra = spellEffectExtraData;
}
public void SetTurning(float startFacing, float totalTurnRads, float radsPerSec)
{
args.flags.SetUnsetFlag(MoveSplineFlagEnum.Turning, true);
TurnData turn = new();
turn.StartFacing = startFacing;
turn.TotalTurnRads = totalTurnRads;
turn.RadsPerSec = radsPerSec;
args.turnData = turn;
}
public List<Vector3> Path() { return args.path; }
public MoveSplineInitArgs args = new();