How to make bots that follow a specific path?

Discussion in 'Mapping Questions & Discussion' started by Cookie^, Aug 25, 2014.

  1. Cookie^

    Cookie^ L2: Junior Member

    Messages:
    75
    Positive Ratings:
    2
    I was wondering how to make a path which bots can follow. I do not want the bots to shoot, just follow the path kind of like in tr_walkway the bots walk in a straight line. Also, should I use the bots with the "bot" command or the bots with the "tf_bot_add" command for this?
    Thanks a lot! :D
     
  2. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    749
    func_nav_prerequisite might help. Its the mvm method to order them to walk to a specific area. Im not sure if it works for normal games though, but since its still bots i wouldnt be surprised if it actualy did. And they wont walk a straight line but instead walk based on the nav file then.

    However, they will shoot using this method so you might want to actualy use a method to prevent that from happening aswel.
     
  3. Cookie^

    Cookie^ L2: Junior Member

    Messages:
    75
    Positive Ratings:
    2
    Alright, I am going to try that. Will be back with the results. :)
     
  4. Cookie^

    Cookie^ L2: Junior Member

    Messages:
    75
    Positive Ratings:
    2
    I don't really understand how to use it, couldn't find any tutorials on it, too.
    Also, how do I make it so that the bots don't shoot?
     
  5. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    749
    Its not the best guide and aimed for mvm but it should explain the prerequisite a bit: http://forums.tf2maps.net/showthread.php?t=22184
    Its a quite recently used entity and currently only exists in mannhattan (or other control point based mvm maps - if there are any).

    However, most important is to have 1 prerequisite that covers the spawn area of the bots and 1 info_target for the destination to walk to. The prerequisite can set the objective for the bots which in this case should be walking to the target.

    However, i dont know how to prevent them shooting.
     
  6. Cookie^

    Cookie^ L2: Junior Member

    Messages:
    75
    Positive Ratings:
    2
    I tried what you said, it does not seem to work.
    I just place a nodraw brush with func_nav_prerequisite on the bot's spawn and I created an info_target entity. Then I set it's task to "Move To Entity" and I set the Task Entity to the info_target. Using the "bot" command just creates a bot that doesn't move and using the "tf_bot_add" command spawns a bot that attacks me.
     
  7. Cookie^

    Cookie^ L2: Junior Member

    Messages:
    75
    Positive Ratings:
    2
    I just opened up tr_walkway on Hammer and it looks like trigger_push is used for the bots to move. Very interesting.
     
  8. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    You did make a .nav, right?
     
  9. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,879
    Positive Ratings:
    4,970
    tr_walkway bots are just "bots". They're dumb. Don't require a nav. The path they follow is just a trigger_push, if they're on the ground it makes it look like they're walking.