Re: Builders helpers for UT Editor
Posted: Sat Apr 08, 2023 9:34 am
Returning to the Trash-Lord aka MapGarbage.
Here I won't add major changes but... something for Navigation Chain - planed for this month.
If it's reconnected after disconnecting it (for completions or whatever tasks), it will wrap Nodes with objectives first, attempting to speed up internal routing procedures... Routing starts with goals, then is reversed, then is mapped RouteCache points. It's an attempt to reduce iterations if possible...
Here I won't add major changes but... something for Navigation Chain - planed for this month.
If it's reconnected after disconnecting it (for completions or whatever tasks), it will wrap Nodes with objectives first, attempting to speed up internal routing procedures... Routing starts with goals, then is reversed, then is mapped RouteCache points. It's an attempt to reduce iterations if possible...
Code: Select all
/* ReverseRouteFor() changes the direction that the previousPath linked list enumerates the route.
*/
void APawn::SetRouteCache(ANavigationPoint *BestPath)
{
guard(APawn::SetRouteCache);
for ( int i=0; i<16; i++ )
{
RouteCache[i] = BestPath;
if ( BestPath )
{
//debugf("route %s", BestPath->GetName());
BestPath = BestPath->previousPath;
}
}
//debugf("------------------------------------");
unguard;
}