Added SPEC team to autojoin (#142)

* Added SPEC team to autojoin
* added more details to game.cfg
This commit is contained in:
justgo97 2017-05-04 11:45:29 +01:00 committed by s1lentq
parent f46cb5a635
commit b39b581f04
2 changed files with 5 additions and 1 deletions

2
dist/game.cfg vendored
View File

@ -88,7 +88,7 @@ mp_refill_bpammo_weapons 0
// Automatically joins the team // Automatically joins the team
// 0 - disabled // 0 - disabled
// 1 - enabled (Use in conjunction with the cvar humans_join_team any/CT/T) // 1 - enabled (Use in conjunction with the cvar humans_join_team any/SPEC/CT/T)
// //
// Default value: "0" // Default value: "0"
mp_auto_join_team 0 mp_auto_join_team 0

View File

@ -3653,6 +3653,10 @@ void CHalfLifeMultiplay::__MAKE_VHOOK(PlayerThink)(CBasePlayer *pPlayer)
{ {
slot = MENU_SLOT_TEAM_RANDOM; slot = MENU_SLOT_TEAM_RANDOM;
} }
else if (!Q_stricmp(humans_join_team.string, "SPEC") && auto_join_team.value != 0.0f)
{
slot = MENU_SLOT_TEAM_SPECT;
}
#endif #endif
else else
{ {