Make a NextBot ignore players

Mar 2, 2018
124
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.
 

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994
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.
 
Mar 2, 2018
124
4
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.
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.
 

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994
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.
 
Mar 2, 2018
124
4
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.
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 \:
 

ficool2

L4: Comfortable Member
Oct 28, 2017
161
232
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.

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
 
Last edited:
Mar 2, 2018
124
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: