PDA

View Full Version : How i can make zombots ?



thOuMta
29th October 2013, 20:46
Hey all,

Can you explain me how i can make zombots please ?

Thanks

RobsoN
29th October 2013, 20:56
http://killtube.org/showthread.php?1442-Zombots-Mod&highlight=zombots


Making zombot takes a lot of work and a well-functioning algorithm. Not a lot of people did zombot and I think you can't get the source code. You need to make an algorithm that will not be charged to the server and also chose the shortest path (the problem comes at the height of 3D maps and locating entity).

Here is simple navigation mesh tutorial (found by iznogod): http://www.ai-blog.net/archives/000152.html
In my zombots i used A* search algorithm, I adapted it to 3d maps and it's working well (https://en.wikipedia.org/wiki/A*_search_algorithm)

randall
29th October 2013, 20:58
Hi,

in cod2 iwds you can find an astar.gsc file, its a pathfinding algorithm. Use it for search the path between the bots and players. Write a function what searches the shortest path and get the closest player. The bots have to move along on this path. If the bot is close enough to the target, hit him. That's all.

thOuMta
29th October 2013, 20:59
I understand nothing about that :/

randall
29th October 2013, 21:09
Its just general math. If you know nothing about graphs or vectors, forget the botzom and make easier scripts, for example opening doors, moving plates etc.

thOuMta
29th October 2013, 21:13
Lol yes its will be better i think.
Thanks..