mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-23 02:22:31 +00:00
Add path finder wrapper around devtools proximity show
This commit is contained in:
parent
2c8ed1074a
commit
c1a02e8244
@ -4969,6 +4969,10 @@ void command_proximity(Client *c, const Seperator *sep)
|
|||||||
|
|
||||||
NPC *npc = c->GetTarget()->CastToNPC();
|
NPC *npc = c->GetTarget()->CastToNPC();
|
||||||
|
|
||||||
|
std::vector<FindPerson_Point> points;
|
||||||
|
|
||||||
|
FindPerson_Point p{};
|
||||||
|
|
||||||
if (npc->IsProximitySet()) {
|
if (npc->IsProximitySet()) {
|
||||||
glm::vec4 position;
|
glm::vec4 position;
|
||||||
position.w = npc->GetHeading();
|
position.w = npc->GetHeading();
|
||||||
@ -4991,7 +4995,30 @@ void command_proximity(Client *c, const Seperator *sep)
|
|||||||
position.x = npc->GetProximityMaxX();
|
position.x = npc->GetProximityMaxX();
|
||||||
position.y = npc->GetProximityMaxY();
|
position.y = npc->GetProximityMaxY();
|
||||||
NPC::SpawnNodeNPC("Proximity", "", position);
|
NPC::SpawnNodeNPC("Proximity", "", position);
|
||||||
|
|
||||||
|
p.x = npc->GetProximityMinX();
|
||||||
|
p.y = npc->GetProximityMinY();
|
||||||
|
p.z = npc->GetZ();
|
||||||
|
points.push_back(p);
|
||||||
|
|
||||||
|
p.x = npc->GetProximityMinX();
|
||||||
|
p.y = npc->GetProximityMaxY();
|
||||||
|
points.push_back(p);
|
||||||
|
|
||||||
|
p.x = npc->GetProximityMaxX();
|
||||||
|
p.y = npc->GetProximityMaxY();
|
||||||
|
points.push_back(p);
|
||||||
|
|
||||||
|
p.x = npc->GetProximityMaxX();
|
||||||
|
p.y = npc->GetProximityMinY();
|
||||||
|
points.push_back(p);
|
||||||
|
|
||||||
|
p.x = npc->GetProximityMinX();
|
||||||
|
p.y = npc->GetProximityMinY();
|
||||||
|
points.push_back(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c->SendPathPacket(points);
|
||||||
}
|
}
|
||||||
|
|
||||||
void command_pvp(Client *c, const Seperator *sep)
|
void command_pvp(Client *c, const Seperator *sep)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user