Make a NextBot ignore players

Discussion in 'Mapping Questions & Discussion' started by Unregistered HyperCam 2, Nov 24, 2018.

  1. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    124
    Positive Ratings:
    4
    I want the headless_hatman in my map to target specific players and ignore others, is that possible? The only entity that seems to work on NextBots is the func_nav_prerequisite but I cant get it to work.
    Tried generating the nav mesh after compiling with it and having it as a trigger and checking for any start touch inputs but to no avail.
     
  2. Da Spud Lord

    aa Da Spud Lord Occasionally I make maps

    Messages:
    1,335
    Positive Ratings:
    898
    Supposedly the headless_hatman has a relationship keyvalue that can be used to determine who the bot "likes" and "dislikes". Not sure if this actually works in TF2, and I don't know how it works or how to use it.

    There's also an Enemy Filter keyvalue which might be useful, but again, who knows if it's actually functional.
     
  3. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    124
    Positive Ratings:
    4
    Ah I should have mentioned I tried using those but they didn't work, I assume it's because these are npc (in the Source engine sense of that term) features and not nextbot ones.
     
  4. Da Spud Lord

    aa Da Spud Lord Occasionally I make maps

    Messages:
    1,335
    Positive Ratings:
    898
    Hm.

    What conditions are you seeking to use to determine if a player can be chased by the HHH? If it's location, you could try func_nav_avoid.
     
  5. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    124
    Positive Ratings:
    4
    Might sound a bit silly but I have this useless hacky work-around to pick a random living player, I was planning on having the HHH chase them and only them around the map, until they are killed or after a certain time limit has passed and then pick another.
    I don't think it's possible with func_nav_avoids \:
     
  6. ficool2

    ficool2 L4: Comfortable Member

    Messages:
    161
    Positive Ratings:
    162
    None of the HL2 AI keyvalues function on any NextBot entities. Puddy's FGD (Valve's too IIRC) has a very bad habit of shoving the entire NPC class into the NextBot entities, while NONE of it even works, just to inform anyone that uses it

    I highly recommend getting rid of Puddy's FGD and using my FGD instead, as it fixes those misconceptions so that you don't get disappointed by non-working stuff
     
    • Thanks Thanks x 1
    Last edited: Nov 24, 2018
  7. Unregistered HyperCam 2

    Unregistered HyperCam 2 L3: Member

    Messages:
    124
    Positive Ratings:
    4
    In case someone is interested in this or will be in the future, the only possible way to achieve this is to add an uber condition to your non target players, the HHH ai seems to ignore players based on some kind of internal check for being ubered, most of the uber conditions work.
     
    Last edited: Nov 26, 2018