Making a Bot for CSGO

Posts 1–5 of 5 · Page 1 of 1
Making a Bot for CSGO
I want to create my own csgo bot. When I say bot I mean a bot that will move in game, shoot, and defuse/plant bombs. I already having the aimbot made, but know I need to know how move around the map. The only idea I have is that the code would read the nav mesh but how would I do that?
Quote Originally Posted by certmemer View Post
https://gitlab.com/Cre3per/bot.nav/tree/master

complete paste, gl.
can you give an example on how to move the bot to a site? I'm a little confused about this.
Quote Originally Posted by gmamafilms View Post
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...)
Quote Originally Posted by Don Coderleone View Post
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...)
can you add my skype? I sent your a request.
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us