Core/Movement: Defined and implemented new spline flag - JumpOrientationFixed

This commit is contained in:
Shauren
2024-06-29 18:15:43 +02:00
parent 8ce710fa6f
commit bd9fb4a563
9 changed files with 37 additions and 27 deletions
@@ -1973,11 +1973,11 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
{
float gravity = e.action.jump.UseDefaultGravity ? Movement::gravity : e.action.jump.Gravity;
me->GetMotionMaster()->MoveJumpWithGravity(pos, float(e.action.jump.SpeedXY), gravity, e.action.jump.PointId,
{}, nullptr, nullptr, std::move(actionResultSetter));
{}, false, nullptr, nullptr, std::move(actionResultSetter));
}
else
me->GetMotionMaster()->MoveJump(pos, float(e.action.jump.SpeedXY), float(e.action.jump.SpeedZ), e.action.jump.PointId,
{}, nullptr, nullptr, std::move(actionResultSetter));
{}, false, nullptr, nullptr, std::move(actionResultSetter));
mTimedActionWaitEvent = std::move(waitEvent);
break;