diff --git a/regamedll/dlls/cbase.h b/regamedll/dlls/cbase.h index ed6911cc..43a89554 100644 --- a/regamedll/dlls/cbase.h +++ b/regamedll/dlls/cbase.h @@ -156,6 +156,7 @@ public: // This entity's classname. const char *GetClassname() const { return pev->classname.str(); } + bool IsProxy() const { return (pev->flags & FL_PROXY) == FL_PROXY; } bool IsDormant() const { return (pev->flags & FL_DORMANT) == FL_DORMANT; } BOOL IsLockedByMaster() { return FALSE; } diff --git a/regamedll/game_shared/bot/bot_util.cpp b/regamedll/game_shared/bot/bot_util.cpp index fc195762..cfb37f8d 100644 --- a/regamedll/game_shared/bot/bot_util.cpp +++ b/regamedll/game_shared/bot/bot_util.cpp @@ -111,6 +111,11 @@ int UTIL_HumansInGame(bool ignoreSpectators) if (FStrEq(STRING(pPlayer->pev->netname), "")) continue; +#ifdef REGAMEDLL_FIXES + if (pPlayer->IsProxy()) + continue; +#endif + if (pPlayer->IsBot()) continue;