It's my fault
I didn't know that the sentry guns and the dispensers also had the FL_MONSTER flag...
To fix this, add these two lines in BotFindEnemy() in the bot_combat.cpp file: (lines starting with "context" are here to show you where to commit the changes)
Code:
(context) if (!IsAlive (pMonster))
(context) continue; // discard dead or dying monsters
if (strncmp ("building_", STRING (pMonster->v.classname), 9) == 0)
continue; // TFC: skip sentry guns and dispensers
(context) vecEnd = pMonster->v.origin + pMonster->v.view_ofs;
(context)
Here's included an updated HPB_bot dll... someone gotta compile it for Linux also