mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 00:27:16 +00:00
[Bots] Positioning rewrite (#4856)
* [Bots] Positioning rewrite - Fixes positioning issues where bots could run back and forth or stay at the target's feet. - Adds checks to ensure bots don't spam positioning updates and complete their initial positioning. - Cleans up logic and makes it easier to read. * Cleanup
This commit is contained in:
1 parent
08bb9de437
commit
ff71cfbd5b
5 files changed
+193
-243
No files matched your search
@@ -1698,13 +1698,6 @@ void Mob::StopMoving()
|
||||
|
||||
void Mob::StopMoving(float new_heading)
|
||||
{
|
||||
if (IsBot()) {
|
||||
auto bot = CastToBot();
|
||||
|
||||
bot->SetCombatJitterFlag(false);
|
||||
bot->SetCombatOutOfRangeJitterFlag(false);
|
||||
}
|
||||
|
||||
StopNavigation();
|
||||
RotateTo(new_heading);
|
||||
|
||||
|
||||
Reference in new issue
Block a user