diff --git a/regamedll/dlls/bot/cs_bot.cpp b/regamedll/dlls/bot/cs_bot.cpp index dd85448c6..86108d8c9 100644 --- a/regamedll/dlls/bot/cs_bot.cpp +++ b/regamedll/dlls/bot/cs_bot.cpp @@ -105,6 +105,10 @@ BOOL CCSBot::TakeDamage(entvars_t *pevInflictor, entvars_t *pevAttacker, float f CBasePlayer *pPlayer = static_cast(pAttacker); if (BotRelationship(pPlayer) == BOT_TEAMMATE && !pPlayer->IsBot()) { +#ifdef REGAMEDLL_FIXES + // (Ancient bug maybe) The bots will not react if they get shot by a teammate while mp_friendlyfire is 0. + if (friendlyfire.value != 0.0f) +#endif GetChatter()->FriendlyFire(); }