mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
fix(Core/Movement): Add force speed ack to async movement and resolve stutter (#23371)
This commit is contained in:
@@ -417,10 +417,10 @@ public:
|
||||
if (CheckModifySpeed(handler, target, allSpeed, 0.1f, 50.0f))
|
||||
{
|
||||
NotifyModification(handler, target, LANG_YOU_CHANGE_ASPEED, LANG_YOURS_ASPEED_CHANGED, allSpeed);
|
||||
target->SetSpeed(MOVE_WALK, allSpeed);
|
||||
target->SetSpeed(MOVE_RUN, allSpeed);
|
||||
target->SetSpeed(MOVE_SWIM, allSpeed);
|
||||
target->SetSpeed(MOVE_FLIGHT, allSpeed);
|
||||
target->SetSpeed(MOVE_WALK, allSpeed, true);
|
||||
target->SetSpeed(MOVE_RUN, allSpeed, true);
|
||||
target->SetSpeed(MOVE_SWIM, allSpeed, true);
|
||||
target->SetSpeed(MOVE_FLIGHT, allSpeed, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -2566,7 +2566,7 @@ public:
|
||||
me->SetCanFly(false);
|
||||
me->SetDisableGravity(false);
|
||||
me->GetMotionMaster()->MovePoint(POINT_DROP_PLAYER, _destPoint, FORCED_MOVEMENT_NONE, 0.f, false);
|
||||
me->SetDisableGravity(true, true);
|
||||
me->SetDisableGravity(true);
|
||||
me->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
break;
|
||||
case EVENT_MOVE_TO_SIPHON_POS:
|
||||
@@ -2732,7 +2732,7 @@ class spell_the_lich_king_valkyr_target_search : public SpellScript
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
GetCaster()->GetMotionMaster()->MoveCharge(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ() + 4.0f, 42.0f, EVENT_CHARGE);
|
||||
GetCaster()->SetDisableGravity(true, true);
|
||||
GetCaster()->SetDisableGravity(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -528,9 +528,7 @@ public:
|
||||
init.Launch();
|
||||
|
||||
pPlayer->SetUnitMovementFlags(MOVEMENTFLAG_NONE);
|
||||
pPlayer->SetDisableGravity(true, true);
|
||||
|
||||
sScriptMgr->AnticheatSetCanFlybyServer(pPlayer, true);
|
||||
pPlayer->SetDisableGravity(true);
|
||||
|
||||
WorldPacket data(SMSG_SPLINE_MOVE_UNROOT, 8);
|
||||
data << pPlayer->GetPackGUID();
|
||||
@@ -941,10 +939,7 @@ public:
|
||||
if (!bUpdatedFlying && timer)
|
||||
{
|
||||
bUpdatedFlying = true;
|
||||
plr->SetDisableGravity(true, true);
|
||||
|
||||
sScriptMgr->AnticheatSetCanFlybyServer(plr, true);
|
||||
sScriptMgr->AnticheatSetUnderACKmount(plr);
|
||||
plr->SetDisableGravity(true);
|
||||
}
|
||||
|
||||
plr->SendMonsterMove(me->GetPositionX() + dist * cos(arcangle), me->GetPositionY() + dist * std::sin(arcangle), me->GetPositionZ(), VORTEX_DEFAULT_DIFF * 2, SPLINEFLAG_FLYING);
|
||||
|
||||
@@ -347,7 +347,7 @@ struct boss_kaelthas : public BossAI
|
||||
}
|
||||
else if (point == POINT_AIR)
|
||||
{
|
||||
me->SetDisableGravity(true, false, false); // updating AnimationTier will break drowning animation later
|
||||
me->SetDisableGravity(true); // updating AnimationTier will break drowning animation later
|
||||
}
|
||||
else if (point == POINT_START_LAST_PHASE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user