View Single Post
Re: Simple Pathfinding Idea
Old
  (#13)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Simple Pathfinding Idea - 06-12-2004

well, then simply change the cost. So normally you have:

cost=distance

you add lines so yo uhave

cost += cost * (any value between 0 and 1).

Ie, when danger is 1, its very dangerious and will double the cost for that node...


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote