Core/Movement: inital work on chase movement rewrite
* chase movement will now launch within a sniffed time interval * the movement will now use a predicting method to get a estimated chase destination to avoid falling behind the chase target * ChaseRange has been dropped and stepping backward has now a own implementation within the movement generator. Todo: analyzing sniffs for the correct time interval
This commit is contained in:
1 parent
f119e8c79d
commit
1f93a67e04
6 files changed
+147
-116
No files matched your search
@@ -263,7 +263,7 @@ void MotionMaster::MoveFollow(Unit* target, float dist, ChaseAngle angle, bool a
|
||||
Mutate(new FollowMovementGenerator(target, dist, angle, allignToTargetSpeed), slot);
|
||||
}
|
||||
|
||||
void MotionMaster::MoveChase(Unit* target, Optional<ChaseRange> dist, Optional<ChaseAngle> angle)
|
||||
void MotionMaster::MoveChase(Unit* target, float dist, Optional<ChaseAngle> angle)
|
||||
{
|
||||
// ignore movement request if target not exist
|
||||
if (!target || target == _owner)
|
||||
|
||||
Reference in new issue
Block a user