Adding support for bots

Discussion in 'Mapping Questions & Discussion' started by wrathofmobius, Jul 14, 2011.

  1. wrathofmobius

    wrathofmobius L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    I'm currently making a very simple neutral flag CTF map and was wondering if it would be possible to add bot support for a map. I have tried googling about how to do it, but haven't been successful.
     
  2. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    What do you mean by "bot support"

    You can go into console and type "generate nav_mesh" and it will allow bots to play on the map.

    The just in console tf_bot_add 24 and it should fill up your map with bots. (i think thats the proper command)
     
    • Thanks Thanks x 1
  3. Loc_n_lol

    Loc_n_lol L10: Glamorous Member

    Messages:
    726
    Positive Ratings:
    273
    The command is "nav_generate" actually :p

    And I doubt bots can understand neutral ctf logic. They are pretty new to regular ctf already...
     
  4. wrathofmobius

    wrathofmobius L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    Thanks, but it says that "generate" isn't a valid command.
    What I meant by "bot support" was that I wanted bots to be able to play on the map. Sorry if I wasn't too clear.
     
  5. wrathofmobius

    wrathofmobius L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    nav_generate worked. But yeah, you're right, the bots (well except for the Snipers and Spies) just stayed in the spawn room. Is there anything I can do about this, or do I just have to wait until Valve releases support for neutral CTF?
     
  6. Loc_n_lol

    Loc_n_lol L10: Glamorous Member

    Messages:
    726
    Positive Ratings:
    273
    Yeah, uh, considering there are currently 0 official maps with such a gamemode, I wouldn't expect much on that front, tbh.

    You may try to trick the bots into thinking this is regular ctf by placing 2 team flags where you had your neutral flag, and having them disable each other when picked up, and maybe experiment parenting the disabled flag to the carried one too. This isn't going to be easy and there's no guarantee it will produce good results.
    Basically, experiment, do without bots, or change your game mode.
     
    • Thanks Thanks x 1
  7. wrathofmobius

    wrathofmobius L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    Yeah, that's what I figured. Thanks anyway.
    I decided to change it to a KOTH map. I may later on decide to experiment with what you said, but right now I just want to see if I can get bots to work.
     
  8. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    FUN FACT: Once you've generated a nav, you can type nav_edit 1 in console to see the nav mesh. I'll look like a bunch of squares on the ground. You can then type nav_delete to remove whatever square is highlited in your crosshairs. Bots will only run around in the squares, so delete squares where you don't want them to go into. Type nav_save to overwrite your new nav mesh.
     
    • Thanks Thanks x 2
  9. wrathofmobius

    wrathofmobius L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    Is there a command for adding squares?
     
  10. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    I don't think so, as nav_generate pretty much covers everything
     
  11. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,032
    Positive Ratings:
    3,978
  12. Sergis

    aa Sergis L666: ])oo]v[

    Messages:
    1,871
    Positive Ratings:
    1,130
    also useful are nav_split, nav_splice, nav_mark, nav_connect, nav_disconnect, nav_begin_area and nav_end_area. also after editing the mesh you should do nav_quicksave 0 and nav_analyze for bots to understand the navmesh better