❓ Implement bot-mode

Posts 1–2 of 2 · Page 1 of 1
❓ Implement bot-mode
Hello,
I view too many hacks with bot mode(the game play for you) and i want implement this on my hack, anyone can give me one "light" with anything to start this implement ?
Thanks!
Search for nav parsing / try to make a raytrace AI / record the path on your own.
If you record the path on your own, i'd suggest you to store it in a graph data structure.

If you pick the first / last method, then you'll need to implement a path making algorithm, either dijkstra / a*. Both will work fine.
Your path will be surely stored in a queue.

If you made what i told you above, now you'll just need to make a GoToPos function which is simple as hell. Look at the first position at your queue and check the distance from your origin to that point, if it's less then xy, dequeu and roll to the next position.

Remaking paths: when you are dead / the queue is empty / enemy hunter terminator

Here is an example of this:


That's all. At the moment i'm working on a raytracer ai, it's pretty funny to mess around with it.
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us