diff --git a/userraw/maps/mp/bots/_bot_utility.gsc b/userraw/maps/mp/bots/_bot_utility.gsc index 5a4a355..4e60995 100644 --- a/userraw/maps/mp/bots/_bot_utility.gsc +++ b/userraw/maps/mp/bots/_bot_utility.gsc @@ -1794,6 +1794,7 @@ AStarSearch(start, goal, team, greedy_path) { child = level.waypoints[bestNode.index].children[i]; childorg = level.waypoints[child].origin; + childtype = level.waypoints[child].type; penalty = 1; if(!greedy_path && isdefined(team)) @@ -1802,6 +1803,10 @@ AStarSearch(start, goal, team, greedy_path) if(temppen > 1) penalty = temppen; } + + // have certain types of nodes more expensive + if (childtype == "climb" || childtype == "prone") + penalty++; //calc the total path we have took newg = bestNode.g + DistanceSquared(nodeorg, childorg)*penalty;//bots on same team's path are more expensive