mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-14 15:48:01 +03:00
UTIL_HumansInGame: Ignore HLTV
This commit is contained in:
parent
9010e1af04
commit
0ad1232786
@ -156,6 +156,7 @@ public:
|
|||||||
// This entity's classname.
|
// This entity's classname.
|
||||||
const char *GetClassname() const { return pev->classname.str(); }
|
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 IsDormant() const { return (pev->flags & FL_DORMANT) == FL_DORMANT; }
|
||||||
BOOL IsLockedByMaster() { return FALSE; }
|
BOOL IsLockedByMaster() { return FALSE; }
|
||||||
|
|
||||||
|
@ -111,6 +111,11 @@ int UTIL_HumansInGame(bool ignoreSpectators)
|
|||||||
if (FStrEq(STRING(pPlayer->pev->netname), ""))
|
if (FStrEq(STRING(pPlayer->pev->netname), ""))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
if (pPlayer->IsProxy())
|
||||||
|
continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (pPlayer->IsBot())
|
if (pPlayer->IsBot())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user