mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-03 09:15:23 +03:00
Added SPEC team to autojoin (#142)
* Added SPEC team to autojoin * added more details to game.cfg
This commit is contained in:
parent
f46cb5a635
commit
b39b581f04
2
dist/game.cfg
vendored
2
dist/game.cfg
vendored
@ -88,7 +88,7 @@ mp_refill_bpammo_weapons 0
|
||||
|
||||
// Automatically joins the team
|
||||
// 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"
|
||||
mp_auto_join_team 0
|
||||
|
@ -3653,6 +3653,10 @@ void CHalfLifeMultiplay::__MAKE_VHOOK(PlayerThink)(CBasePlayer *pPlayer)
|
||||
{
|
||||
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
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user