Bunch of refactoring and walking, AI needs a ton of tweaking to use the new logic

This commit is contained in:
KimLS
2018-10-12 00:03:58 -07:00
parent 29ea65a71e
commit 1785120796
17 changed files with 787 additions and 474 deletions
+4 -2
View File
@@ -1284,9 +1284,11 @@ void command_movement(Client *c, const Seperator *sep)
c->Message(0, "Requires target");
}
mgr.NavigateTo(target, c->GetX(), c->GetY(), c->GetZ(), false, MovementRunning);
auto heading = target->CalculateHeadingToTarget(c->GetX(), c->GetY());
mgr.RotateTo(target, heading, 16.0f);
//auto heading = target->CalculateHeadingToTarget(c->GetX(), c->GetY());
//mgr.SendCommandToClients(target, 0.0f, 0.0f, 0.0f, atof(sep->arg[2]), 0, ClientRangeAny);
//mgr.RotateTo(target, heading);
//double a1 = atof(sep->arg[2]);
//double a2 = atof(sep->arg[3]);