UTIL_HumansInGame: Ignore HLTV

This commit is contained in:
s1lent 2019-06-13 00:07:17 +07:00
parent 9010e1af04
commit 0ad1232786
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
2 changed files with 6 additions and 0 deletions

View File

@ -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; }

View File

@ -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;