Generating navmeshes which don't connect to spawn

Discussion in 'Mapping Questions & Discussion' started by Phil25, Oct 14, 2015.

  1. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    TL;DR version: nav_generate doesn't generate navmeshes which can't lead to spawn, how do I make it so I can generate them everywhere possible?

    I want to quickly generate navmeshes around the map for bots to move in. Since it's a surf map, I need nothing fancy so I figured I simply use nav_generate to make simplistic movement for skeletons from one of the halloween spells.

    [​IMG]

    Thanks for the help!
     
  2. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,031
    Positive Ratings:
    3,975
    • Thanks Thanks x 1
  3. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    998
    Positive Ratings:
    1,135
    You might be looking for nav_mark_walkable. This command adds a "walkable marker" on the surface under your crosshair, which is used as an additional starting point for the nav mesh generator next time you build one.

    More info: https://developer.valvesoftware.com/wiki/Navigation_Meshes
     
    • Thanks Thanks x 1
  4. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    Thanks for the help guys. Works like charm :)
     
  5. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    I started to have one problem with that though. It seems that sometimes, it just doesn't work.
    When I mark multiple platforms to as a walkable area, some get the navmesh generated on them, others don't. This appears to be random because when I repeat the process different platforms get navmeshes generated. So far, I had no success in getting it to work on all of the desired platforms.

    Has anyone ever encountered this?
     
  6. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410
    By platform, do you mean something that is within the air with no visible access route (you need to jump somewhere to get there or what? Sometimes you also need to just do things like nav_splice (that connects one area to other of different height also) or simply do the nav_mark & nav_connect yourself or create area between the ones and connect them manually.
     
  7. Lampenpam

    aa Lampenpam

    Messages:
    991
    Positive Ratings:
    328
    You can also create nav meshes yourself. Read the wiki article linked by killohurz.
    And having multiple plattforms sounds like something that bots can't use anyway...
     
  8. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    By 'platform', I mean something which has no game-defined connection so to say, by which I mean there's no way bots would understand how to get from one to the other.
    I didn't mean for them to be just single blocks either. They are more complicated than that and manually building a navmesh on them would be too time consuming to simply make bots move and perform the simplest tasks.

    My situation: surf map. I want to add spells to the halloween variant of it, but one of the rare ones spawns skeletons. I'm not looking to teach them how to surf. I just want them to be able to move when there's a floor.