mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
CHalfLifeMultiplay::SwapAllPlayers: Ignore HLTV
This commit is contained in:
parent
15328fd764
commit
aae507c9f5
@ -1502,6 +1502,12 @@ void CHalfLifeMultiplay::SwapAllPlayers()
|
|||||||
if (pEntity->IsDormant())
|
if (pEntity->IsDormant())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
// ignore HLTV
|
||||||
|
if (pEntity->IsProxy())
|
||||||
|
continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
CBasePlayer *pPlayer = GetClassPtr<CCSPlayer>((CBasePlayer *)pEntity->pev);
|
CBasePlayer *pPlayer = GetClassPtr<CCSPlayer>((CBasePlayer *)pEntity->pev);
|
||||||
pPlayer->SwitchTeam();
|
pPlayer->SwitchTeam();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user