
Originally Posted by
gmamafilms
can you give an example on how to move the bot to a site? I'm a little confused about this.
I suggest you to record walkable coordinates on a specific map manually and then make a walkable path from your actual coordinate to the desired coordinate (bomb site) using the backtracking algorithm, i'll explain it a bit a little lower. I'd advise you to use the iterative form of it, but the recursive form will get the job done too, just a little slower.
For example you are near to A site, but the bomb got planted on B site, you need to create the shortest walkable path from predefined coordinates to B site.
To walk from points to points, just use your aimbot look at the next position and then just move there, then look at the next pos and so on....
Manual recording could have some bugs, because it can stuck if there is a wall between two coordinates. So you could easily mark them like: you can go from a to b, and you can go from b to c, but you can't go a to c. It's called intransitivity in mathematics (correct me if i'm wrong).
Only do it for one map to see how it should work, then start to work with the nav files.
Hope i could help. Good luck
//Edit:
And take a look at this class: CSGameRulesProxy
(isinbombzone, isinbuyzone...)