mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-06-27 14:51:49 +00:00
climb is expensive
This commit is contained in:
@ -1668,7 +1668,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
|
||||
|
Reference in New Issue
Block a user