mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-19 07:21:12 +00:00
Removed ...
* g_teamautojoin * g_teamforcebalance
This commit is contained in:
parent
0e4ac8e9e6
commit
b99a372ff1
3 changed files with 0 additions and 31 deletions
|
@ -742,31 +742,6 @@ qboolean SetTeam( gentity_t *ent, char *s ) {
|
|||
specState = SPECTATOR_FREE;
|
||||
}
|
||||
}
|
||||
|
||||
if ( g_teamForceBalance.integer )
|
||||
{
|
||||
int counts[TEAM_NUM_TEAMS];
|
||||
|
||||
counts[TEAM_BLUE] = G_Client_TeamCount( clNum, TEAM_BLUE );
|
||||
counts[TEAM_RED] = G_Client_TeamCount( clNum, TEAM_RED );
|
||||
|
||||
// We allow a spread of two
|
||||
if ( team == TEAM_RED && counts[TEAM_RED] - counts[TEAM_BLUE] > 1 )
|
||||
{
|
||||
trap_SendServerCommand( clNum,
|
||||
"cp \"Red team has too many players.\n\"" );
|
||||
return qfalse; // ignore the request
|
||||
}
|
||||
if ( team == TEAM_BLUE && counts[TEAM_BLUE] - counts[TEAM_RED] > 1 )
|
||||
{
|
||||
trap_SendServerCommand( clNum,
|
||||
"cp \"Blue team has too many players.\n\"" );
|
||||
return qfalse; // ignore the request
|
||||
}
|
||||
|
||||
// It's ok, the team we are switching to has less or same number of players
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1420,8 +1420,6 @@ extern vmCvar_t g_adaptRespawn;
|
|||
extern vmCvar_t g_synchronousClients;
|
||||
extern vmCvar_t g_motd;
|
||||
extern vmCvar_t g_allowVote;
|
||||
extern vmCvar_t g_teamAutoJoin;
|
||||
extern vmCvar_t g_teamForceBalance;
|
||||
extern vmCvar_t g_banIPs;
|
||||
extern vmCvar_t g_banIDs; //TiM - Security ban system
|
||||
extern vmCvar_t g_filterBan;
|
||||
|
|
|
@ -61,8 +61,6 @@ vmCvar_t g_logSync;
|
|||
vmCvar_t g_podiumDist;
|
||||
vmCvar_t g_podiumDrop;
|
||||
vmCvar_t g_allowVote;
|
||||
vmCvar_t g_teamAutoJoin;
|
||||
vmCvar_t g_teamForceBalance;
|
||||
vmCvar_t g_banIPs;
|
||||
vmCvar_t g_filterBan;
|
||||
vmCvar_t g_banIDs; //TiM - Security ban system
|
||||
|
@ -322,8 +320,6 @@ static cvarTable_t gameCvarTable[] = {
|
|||
// change anytime vars
|
||||
{ &g_dmflags, "dmflags", "0", CVAR_SERVERINFO | CVAR_ARCHIVE, 0, qtrue },
|
||||
{ &g_synchronousClients, "g_synchronousClients", "0", CVAR_SYSTEMINFO, 0, qfalse },
|
||||
{ &g_teamAutoJoin, "g_teamAutoJoin", "0", CVAR_ARCHIVE, 0, qfalse },
|
||||
{ &g_teamForceBalance, "g_teamForceBalance", "1", CVAR_ARCHIVE, 0, qfalse },
|
||||
{ &g_intermissionTime, "g_intermissionTime", "20", CVAR_ARCHIVE, 0, qtrue },
|
||||
{ &g_log, "g_log", "", CVAR_ARCHIVE, 0, qfalse },
|
||||
{ &g_logSync, "g_logSync", "0", CVAR_ARCHIVE, 0, qfalse },
|
||||
|
|
Loading…
Reference in a new issue