mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
[Pathing] Improvements to handling tight corridors pathing, clipping detection and recovery (#2826)
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user