finish sab

This commit is contained in:
INeedBots
2020-11-21 23:25:58 -06:00
parent 2aae13900e
commit d57d38d478
3 changed files with 37 additions and 5 deletions

View File

@ -1806,7 +1806,7 @@ AStarSearch(start, goal, team, greedy_path)
// have certain types of nodes more expensive
if (childtype == "climb" || childtype == "prone")
penalty++;
penalty += 4;
//calc the total path we have took
newg = bestNode.g + DistanceSquared(nodeorg, childorg)*penalty;//bots on same team's path are more expensive