Skip to content

Commit

Permalink
chastise friendly fire from only humans.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha committed Jun 8, 2021
1 parent 689430a commit edf60b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion regamedll/dlls/bot/cs_bot_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ void CCSBot::OnEvent(GameEventType event, CBaseEntity *pEntity, CBaseEntity *pOt
CBasePlayer *pKiller = static_cast<CBasePlayer *>(pOther);

// check that attacker is an enemy (for friendly fire, etc)
if (pKiller && pKiller->IsPlayer())
if (pKiller && pKiller->IsPlayer()
#ifdef REGAMEDLL_FIXES
// why should they kill each other because of aggression
&& !pKiller->IsBot()
#endif
)
{
// check if we saw our friend die - dont check FOV - assume we're aware of our surroundings in combat
// snipers stay put
Expand Down

0 comments on commit edf60b4

Please sign in to comment.