[Pathing] Improvements to handling tight corridors pathing, clipping detection and recovery (#2826)

This commit is contained in:
Chris Miles
2023-02-06 17:24:03 -06:00
committed by GitHub
parent 823e73336d
commit 404f7cada8
6 changed files with 62 additions and 12 deletions
+9
View File
@@ -29,6 +29,7 @@ void command_loc(Client *c, const Seperator *sep)
glm::vec3 hit;
auto best_z = zone->zonemap->FindBestZ(tarloc, &hit);
auto fixed_z = c->GetFixedZ(c->GetPosition());
if (best_z != BEST_Z_INVALID) {
c->Message(
@@ -39,6 +40,14 @@ void command_loc(Client *c, const Seperator *sep)
best_z
).c_str()
);
c->Message(
Chat::White,
fmt::format(
"Fixed Z for {} | {:.2f}",
c->GetTargetDescription(target, TargetDescriptionType::UCSelf),
fixed_z
).c_str()
);
} else {
c->Message(Chat::White, "Could not find Best Z.");
}