best way to make a ledge that bots can't jump up

Discussion in 'Mapping Questions & Discussion' started by WolfKit, Jan 4, 2013.

  1. WolfKit

    WolfKit L3: Member

    Messages:
    128
    Positive Ratings:
    83
    So, in the test of a5 of buffalocreek, I found that bots can jump up 64 hu ledges (albeit clumsily) ruining the intent of the climb to the hatch in my map.
    I could easily put a thin nav_avoid along the edge to prevent them from jumping up, but it would also prevent them from dropping down, which I would prefer them able to.
    I could also add a nav_prefer, which would make them take the route up I want them to, but would also keep them from dropping down.
    Does anyone know an elegant way of keeping them from jumping up but letting them drop down other than making it taller?
     
  2. Schnedwob

    Schnedwob L1: Registered

    Messages:
    10
    Positive Ratings:
    3
    Put a thin playerclip there, big enough to block their jump from below, but not so big as to prevent them from walking over it from above.
     
  3. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    586
    If you want Human players to be able to jump up over the ledge, make a respawn room visualizer at the edge of the cliff, set to Red team. That'll let human players (red) climb over the cliff, and block the bots (blue) from doing the same
     
  4. WolfKit

    WolfKit L3: Member

    Messages:
    128
    Positive Ratings:
    83
    Wouldn't a respawnroomvisualizer stop bots from firing through it though?
     
  5. GPuzzle

    GPuzzle L9: Fashionable Member

    Messages:
    638
    Positive Ratings:
    200
    Nah, you can fire at the spawn when the doors are open, can't you?
     
  6. Schnedwob

    Schnedwob L1: Registered

    Messages:
    10
    Positive Ratings:
    3
    I think it would, so let's combine the ideas: a playerclip on the ledge and a BLU respawnroomvisualiser on the ground beneath it. That way it's too tall for bots to jump up but the players have a little extra boost.

    A player can, but a bot won't.
     
    Last edited: Jan 4, 2013
  7. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,883
    Positive Ratings:
    5,125
    func_nav_avoid set to team blue on the ledge. Make sure it's touching the floor though.
     
  8. Schnedwob

    Schnedwob L1: Registered

    Messages:
    10
    Positive Ratings:
    3
    Ahem.

     
    • Thanks Thanks x 1
  9. Dr. Spud

    aa Dr. Spud Grossly Incandescent

    Messages:
    879
    Positive Ratings:
    830
    I don't see why you're opposed to making it taller; it's the easy solution.

    But if you want, you should be able to edit the nav mesh so that the jump piece is only connected to the two floors in one direction (when you connect two pieces of nav mesh, A to B and B to A are separate). Failing that, removing the jump piece and connecting the upper floor to the lower floor in the downward direction should also work.
     
    • Thanks Thanks x 1
  10. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,883
    Positive Ratings:
    5,125
    Okay ignore me I'm bad
     
    • Thanks Thanks x 3
  11. henke37

    aa henke37

    Messages:
    1,945
    Positive Ratings:
    461
    Yeah, manually editing the nav mesh sounds like the best idea. This way has no strange sideeffects and clearly documents the intent to the bots.
     
    • Thanks Thanks x 1
  12. WolfKit

    WolfKit L3: Member

    Messages:
    128
    Positive Ratings:
    83
    Okay then guess it's time learn how to edit the nav mesh.
     
  13. Dr. Spud

    aa Dr. Spud Grossly Incandescent

    Messages:
    879
    Positive Ratings:
    830