Results 1 to 6 of 6

Thread: How i can make zombots ?

  1. #1
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts

    How i can make zombots ?

    Hey all,

    Can you explain me how i can make zombots please ?

    Thanks

  2. #2
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    http://killtube.org/showthread.php?1...hlight=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)
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  3. #3
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    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.

  4. #4
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    I understand nothing about that :/

  5. #5
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    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.

  6. #6
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    Lol yes its will be better i think.
    Thanks..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •