mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-27 14:08:00 +03:00
Do not ignore thirdparty bots in humans_join_team cvar checks. (#306)
Game dll considers third party bots as humans when dealing with humans_join_team cvar, thus making those bots to join team specified in this cvar.
This commit is contained in:
parent
26db32e884
commit
e924a266b0
@ -1904,7 +1904,7 @@ BOOL EXT_FUNC __API_HOOK(HandleMenu_ChooseTeam)(CBasePlayer *pPlayer, int slot)
|
||||
|
||||
if (team != SPECTATOR && !pPlayer->IsBot()
|
||||
#ifdef REGAMEDLL_ADD
|
||||
&& auto_join_team.value != 1.0f
|
||||
&& !(pPlayer->pev->flags & FL_FAKECLIENT) && auto_join_team.value != 1.0f
|
||||
#endif
|
||||
)
|
||||
{
|
||||
|
@ -3587,7 +3587,11 @@ void CHalfLifeMultiplay::PlayerThink(CBasePlayer *pPlayer)
|
||||
pPlayer->m_iMenu = Menu_ChooseTeam;
|
||||
pPlayer->m_iJoiningState = PICKINGTEAM;
|
||||
|
||||
if (slot != MENU_SLOT_TEAM_UNDEFINED && !pPlayer->IsBot())
|
||||
if (slot != MENU_SLOT_TEAM_UNDEFINED && !pPlayer->IsBot()
|
||||
#ifdef REGAMEDLL_ADD
|
||||
&& !(pPlayer->pev->flags & FL_FAKECLIENT)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
#ifdef REGAMEDLL_ADD
|
||||
m_bSkipShowMenu = (auto_join_team.value != 0.0f) && !(pPlayer->pev->flags & FL_FAKECLIENT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user