Uploaded September 2019 | Updated November 2026, 23 hours ago
Part 3: I was working on a TFBot AI mod with the goal to make bots track down enemy stickybombs and then destroy them by shooting/hitting them. (Continue reading!)
Part 1: youtu.be/z2M5HtX-_p4
Part 2: youtu.be/r6fwuVO38t8
This clip shows what I believe to be basically the final iteration of the fully-custom AI behavior mod, now featuring custom enemy target identification, target selection, pathfinding, intentionally forcing the bots' vision system to ignore any entities that are not stickybombs, and finally, actually shooting the damn things.
Unfortunately, the target selection code was a bit dumb and just chose known stickies randomly, so the bot kinda goes crazy aiming in different random directions, rather than going sticky-by-sticky in a more effective manner. (Could have been implemented, as a distance-to-sticky and difference-of-viewangles optimization heuristic.)
Also there was apparently some kind of weird issue where occasionally the bot would choose a particular sticky, and would become unable to see it for whatever reason; and then it would just stay fixated on that one stickybomb it couldn't shoot in stupid fashion. (I believe this was mitigated somewhat in the code later by adding a 5-second automatic-retarget mechanism, but that's a bit of a kludge.)
The code for final(ish) version of this mod:
github.com/sigsegv-mvm/sigsegv-mvm/blob/dfe7f0d35edef3a8e040f266415751cd5d7b1355/src/mod/pop/extattr/targetstickies.cpp
Part 3: I was working on a TFBot AI mod with the goal to make bots track down enemy stickybombs and then destroy them by shooting/hitting them. (Continue reading!)
Part 1: youtu.be/z2M5HtX-_p4
Part 2: youtu.be/r6fwuVO38t8
This clip shows what I believe to be basically the final iteration of the fully-custom AI behavior mod, now featuring custom enemy target identification, target selection, pathfinding, intentionally forcing the bots' vision system to ignore any entities that are not stickybombs, and finally, actually shooting the damn things.
Unfortunately, the target selection code was a bit dumb and just chose known stickies randomly, so the bot kinda goes crazy aiming in different random directions, rather than going sticky-by-sticky in a more effective manner. (Could have been implemented, as a distance-to-sticky and difference-of-viewangles optimization heuristic.)
Also there was apparently some kind of weird issue where occasionally the bot would choose a particular sticky, and would become unable to see it for whatever reason; and then it would just stay fixated on that one stickybomb it couldn't shoot in stupid fashion. (I believe this was mitigated somewhat in the code later by adding a 5-second automatic-retarget mechanism, but that's a bit of a kludge.)
The code for final(ish) version of this mod:
github.com/sigsegv-mvm/sigsegv-mvm/blob/dfe7f0d35edef3a8e040f266415751cd5d7b1355/src/mod/pop/extattr/targetstickies.cpp








![[1/3] Chase-Down-Stickies TFBot AI Mod (Jan 28 2016)
Part 1: I was working on a TFBot AI mod with the goal to make bots track down enemy stickybombs and then destroy them by shooting/hitting them. (Continue reading!)
Part 2: https://youtu.be/r6fwuVO38t8
Part 3: https://youtu.be/vkmh0rE3zLs
I believe this clip shows an early attempt that mostly just used the existing TFBot AlwaysAttack pop attribute and SeekAndDestroy action to make the bots hold down +mouse1 and chase down enemies, respectively. Then on top of that, I believe I wrote a little bit of custom code that altered the bots enemy determination code to make them consider stickybombs to be enemies rather than players. (Something like that... its been a long time, and this wasnt all documented super-well.)
The code for final(ish) version of this mod:
https://github.com/sigsegv-mvm/sigsegv-mvm/blob/dfe7f0d35edef3a8e040f266415751cd5d7b1355/src/mod/pop/extattr/targetstickies.cpp [1/3] Chase-Down-Stickies TFBot AI Mod (Jan 28 2016)](https://i.ytimg.com/vi/z2M5HtX-_p4/mqdefault.jpg)

