Skip to content

Commit

Permalink
-Nodegen fix: Used the proper vator object for pathing right before g…
Browse files Browse the repository at this point in the history
…nomerang. Stop including the plunger (right above the elevator) as a viable transport.
  • Loading branch information
mostlikely4r committed Oct 22, 2024
1 parent 097d2bf commit dd99cc2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions playerbot/TravelNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1989,8 +1989,6 @@ void TravelNodeMap::generateAreaTriggerNodes()
else
nodeName = inPos.getAreaName(false) + " portal";

TravelNode* entryNode = sTravelNodeMap.getNode(outPos, NULL, 20.0f); //Entry side, portal exit.

TravelNode* outNode = sTravelNodeMap.addNode(outPos, nodeName, true, true); //Exit size, portal exit.

TravelNode* inNode = sTravelNodeMap.getNode(inPos, NULL, 5.0f); //Entry side, portal center.
Expand Down Expand Up @@ -2099,10 +2097,14 @@ void TravelNodeMap::makeDockNode(TravelNode* node, WorldPosition pos, std::strin
void TravelNodeMap::generateTransportNodes()
{
for (uint32 entry = 1; entry <= sGOStorage.GetMaxEntry(); ++entry)
{
{
auto data = sGOStorage.LookupEntry<GameObjectInfo>(entry);

if (data && (data->type == GAMEOBJECT_TYPE_TRANSPORT || data->type == GAMEOBJECT_TYPE_MO_TRANSPORT))
{
if (data->displayId == 808) //Remove plunger
continue;

TransportAnimation const* animation = sTransportMgr.GetTransportAnimInfo(entry);

uint32 pathId = data->moTransport.taxiPathId;
Expand All @@ -2123,7 +2125,7 @@ void TravelNodeMap::generateTransportNodes()
TransportPathContainer aPath = animation->Path;
float timeStart;

for (auto& transport : WorldPosition().getGameObjectsNear(0,entry))
for (auto& transport : WorldPosition().getGameObjectsNear(0, entry))
{
GuidPosition guidP(transport);
prevNode = nullptr;
Expand Down Expand Up @@ -2155,8 +2157,8 @@ void TravelNodeMap::generateTransportNodes()

if (data->displayId == 3831) //Subway
exitPos.setZ(exitPos.getZ() - 10.0f);
if (data->displayId == 808) //Gnome elevator
exitPos.setZ(exitPos.getZ() - 1.24f);
if (data->displayId == 807) //Vator
exitPos.setZ(exitPos.getZ() - 1.25f);
if (data->displayId == 455) //Undervator
exitPos.setZ(exitPos.getZ() - 0.46f);

Expand Down Expand Up @@ -2207,7 +2209,7 @@ void TravelNodeMap::generateTransportNodes()

if (data->displayId == 3831) //Subway
exitPos.setZ(exitPos.getZ() - 10.0f);
if (data->displayId == 808) //Gnome elevator
if (data->displayId == 807) //Vator
exitPos.setZ(exitPos.getZ() - 1.24f);
if (data->displayId == 455) //Undervator
exitPos.setZ(exitPos.getZ() - 0.46f);
Expand Down Expand Up @@ -2252,7 +2254,7 @@ void TravelNodeMap::generateTransportNodes()
if (p->delay > 0)
{
TravelNode* node = sTravelNodeMap.addNode(pos, data->name, true, true, true, entry);

WorldPosition exitPos = pos;

if (data->displayId == 3015) //Boat
Expand Down

0 comments on commit dd99cc2

Please sign in to comment.