View Single Post
Re: Alternate paths to a target?
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Alternate paths to a target? - 30-11-2004

well, A* returns the shortest route, yes... UNLESS you weighten the waypoints

By giving them a cost and taking that in account during pathfinding, you can make dangerous routes appear longer to the pathfinder while safer routes will appear shorter. See what I mean ? Currently your pathfinder only sums up the distances between waypoints I suppose. Well just make it sum up the kills/death ratio per team for each waypoint also. Each time a player is killed, see what are the nearest waypoints and add to these waypoints' danger values.

Look at sPlOrYgOn's POD-bot for Counter-Strike: each time you frag the bots on a particular route, the next round they take others and manage to outflank you pretty well.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote