mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-13 23:28:04 +03:00
UTIL_HumansInGame: Ignore HLTV
This commit is contained in:
parent
9010e1af04
commit
0ad1232786
@ -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; }
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user