Uploaded September 2015 | Updated November 2026, 22 hours ago
If the bots win the wave, the game forces all of them into SeekAndDestroy behavior so that they'll chase down the losing team and kill them. Problem is, the AI override is also applied to sentry busters, so they act like regular bots with a melee weapon.
So how did I fix this? I simply disallow CTFBotTacticalMonitor::Update to change the bot's active AI if (a) we are in the post-round win time state, AND (b) the bot's mission is equal to 2 (the value used for "Objective DestroySentries").
Source code for this server mod:
github.com/sigsegv-mvm/libtf2mod/commit/f95be84407db114a532a23fa81b726b6361b0d2d
If the bots win the wave, the game forces all of them into SeekAndDestroy behavior so that they'll chase down the losing team and kill them. Problem is, the AI override is also applied to sentry busters, so they act like regular bots with a melee weapon.
So how did I fix this? I simply disallow CTFBotTacticalMonitor::Update to change the bot's active AI if (a) we are in the post-round win time state, AND (b) the bot's mission is equal to 2 (the value used for "Objective DestroySentries").
Source code for this server mod:
github.com/sigsegv-mvm/libtf2mod/commit/f95be84407db114a532a23fa81b726b6361b0d2d










