Core/Movement: reworked chase movement
* the destination prediction is now much more reliable * the movement generator will now more frequently check for valid positions to match retail behavior * the catch-up mechanic will now adapt its speed to the target's one when being close enough to hit it * temporarily disabled backwards movement when being too close to a target to avoid some edge cases that need additional research * fixed the pathfinding reaching behavior so that they no longer follow you to unreachable obstacles and return home when they can't reach you anymore closes #345 closes #260
This commit is contained in:
1 parent
63be5a888c
commit
0840143137
9 files changed
+204
-120
No files matched your search
@@ -490,7 +490,7 @@ struct npc_drahga_invoked_flaming_spirit : public ScriptedAI
|
||||
AddThreat(target, 1500000.0f); // Todo: this should be handled by serverside spell 95207
|
||||
me->GetThreatManager().FixateTarget(target);
|
||||
me->ClearUnitState(UNIT_STATE_CASTING);
|
||||
me->GetMotionMaster()->MoveChase(target, 0.f, 0.f);
|
||||
me->GetMotionMaster()->MoveChase(target);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user