mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-18 23:52:05 +00:00
teamCount cvars for Makro
This commit is contained in:
parent
ce0189c7eb
commit
29f340b182
3 changed files with 21 additions and 3 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.57 2002/03/25 14:55:00 jbravo
|
||||||
|
// teamCount cvars for Makro
|
||||||
|
//
|
||||||
// Revision 1.56 2002/03/23 05:17:42 jbravo
|
// Revision 1.56 2002/03/23 05:17:42 jbravo
|
||||||
// Major cleanup of game -> cgame communication with LCA vars.
|
// Major cleanup of game -> cgame communication with LCA vars.
|
||||||
//
|
//
|
||||||
|
@ -1131,6 +1134,9 @@ extern vmCvar_t g_RQ3_team1name; // JBravo: cvar for the name of team 1
|
||||||
extern vmCvar_t g_RQ3_team2name; // JBravo: cvar for the name of team 2
|
extern vmCvar_t g_RQ3_team2name; // JBravo: cvar for the name of team 2
|
||||||
extern vmCvar_t g_RQ3_lca; // JBravo: cvar to signal cgame that LCA is in progress
|
extern vmCvar_t g_RQ3_lca; // JBravo: cvar to signal cgame that LCA is in progress
|
||||||
extern vmCvar_t g_RQ3_team_round_going; // JBravo: cvar to signal cgame that a round is in progress
|
extern vmCvar_t g_RQ3_team_round_going; // JBravo: cvar to signal cgame that a round is in progress
|
||||||
|
extern vmCvar_t g_RQ3_teamCount1; // JBravo: cvar for the UI join menus
|
||||||
|
extern vmCvar_t g_RQ3_teamCount2; // JBravo: cvar for the UI join menus
|
||||||
|
extern vmCvar_t g_RQ3_numSpectators; // JBravo: cvar for the UI join menus
|
||||||
//Slicer: Team Status Cvars for MM
|
//Slicer: Team Status Cvars for MM
|
||||||
extern vmCvar_t RQ3_team1;
|
extern vmCvar_t RQ3_team1;
|
||||||
extern vmCvar_t RQ3_team2;
|
extern vmCvar_t RQ3_team2;
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.38 2002/03/25 14:55:00 jbravo
|
||||||
|
// teamCount cvars for Makro
|
||||||
|
//
|
||||||
// Revision 1.37 2002/03/24 06:06:53 jbravo
|
// Revision 1.37 2002/03/24 06:06:53 jbravo
|
||||||
// Some tweaks and cleanups
|
// Some tweaks and cleanups
|
||||||
//
|
//
|
||||||
|
@ -174,6 +177,9 @@ vmCvar_t g_RQ3_lca;
|
||||||
vmCvar_t g_RQ3_team_round_going;
|
vmCvar_t g_RQ3_team_round_going;
|
||||||
vmCvar_t g_RQ3_team1name;
|
vmCvar_t g_RQ3_team1name;
|
||||||
vmCvar_t g_RQ3_team2name;
|
vmCvar_t g_RQ3_team2name;
|
||||||
|
vmCvar_t g_RQ3_teamCount1;
|
||||||
|
vmCvar_t g_RQ3_teamCount2;
|
||||||
|
vmCvar_t g_RQ3_numSpectators;
|
||||||
//Slicer: Team Status Cvars for MM
|
//Slicer: Team Status Cvars for MM
|
||||||
vmCvar_t RQ3_team1;
|
vmCvar_t RQ3_team1;
|
||||||
vmCvar_t RQ3_team2;
|
vmCvar_t RQ3_team2;
|
||||||
|
@ -309,6 +315,9 @@ static cvarTable_t gameCvarTable[] = {
|
||||||
{ &g_RQ3_sniperup, "g_RQ3_sniperup", "0", CVAR_ARCHIVE, 0, qtrue},
|
{ &g_RQ3_sniperup, "g_RQ3_sniperup", "0", CVAR_ARCHIVE, 0, qtrue},
|
||||||
{ &g_RQ3_team1name, "g_RQ3_team1name", "Robbers", CVAR_SYSTEMINFO | CVAR_SERVERINFO | CVAR_USERINFO | CVAR_LATCH, 0, qtrue, qtrue },
|
{ &g_RQ3_team1name, "g_RQ3_team1name", "Robbers", CVAR_SYSTEMINFO | CVAR_SERVERINFO | CVAR_USERINFO | CVAR_LATCH, 0, qtrue, qtrue },
|
||||||
{ &g_RQ3_team2name, "g_RQ3_team2name", "Swat", CVAR_SYSTEMINFO | CVAR_SERVERINFO | CVAR_USERINFO | CVAR_LATCH, 0, qtrue, qtrue },
|
{ &g_RQ3_team2name, "g_RQ3_team2name", "Swat", CVAR_SYSTEMINFO | CVAR_SERVERINFO | CVAR_USERINFO | CVAR_LATCH, 0, qtrue, qtrue },
|
||||||
|
{ &g_RQ3_teamCount1, "g_RQ3_teamCount1", "0", CVAR_SYSTEMINFO, 0, qfalse },
|
||||||
|
{ &g_RQ3_teamCount2, "g_RQ3_teamCount2", "0", CVAR_SYSTEMINFO, 0, qfalse },
|
||||||
|
{ &g_RQ3_numSpectators, "g_RQ3_numSpectators", "0", CVAR_SYSTEMINFO, 0, qfalse },
|
||||||
{ &g_RQ3_lca, "g_RQ3_lca", "0", CVAR_SYSTEMINFO, 0, qfalse},
|
{ &g_RQ3_lca, "g_RQ3_lca", "0", CVAR_SYSTEMINFO, 0, qfalse},
|
||||||
{ &g_RQ3_team_round_going, "g_RQ3_team_round_going", "0", CVAR_SYSTEMINFO, 0, qfalse},
|
{ &g_RQ3_team_round_going, "g_RQ3_team_round_going", "0", CVAR_SYSTEMINFO, 0, qfalse},
|
||||||
//Slicer: Team Status Cvars for MM
|
//Slicer: Team Status Cvars for MM
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.44 2002/03/25 14:55:01 jbravo
|
||||||
|
// teamCount cvars for Makro
|
||||||
|
//
|
||||||
// Revision 1.43 2002/03/24 06:06:53 jbravo
|
// Revision 1.43 2002/03/24 06:06:53 jbravo
|
||||||
// Some tweaks and cleanups
|
// Some tweaks and cleanups
|
||||||
//
|
//
|
||||||
|
@ -554,11 +557,11 @@ team_t RQ3TeamCount( int ignoreClientNum, int team )
|
||||||
|
|
||||||
Com_sprintf (buf, sizeof(buf), "%i", count);
|
Com_sprintf (buf, sizeof(buf), "%i", count);
|
||||||
if (team == TEAM_RED)
|
if (team == TEAM_RED)
|
||||||
trap_Cvar_Set("ui_RQ3_teamCount1", buf);
|
trap_Cvar_Set("g_RQ3_teamCount1", buf);
|
||||||
else if (team == TEAM_BLUE)
|
else if (team == TEAM_BLUE)
|
||||||
trap_Cvar_Set("ui_RQ3_teamCount2", buf);
|
trap_Cvar_Set("g_RQ3_teamCount2", buf);
|
||||||
else if (team == TEAM_SPECTATOR || team == TEAM_FREE)
|
else if (team == TEAM_SPECTATOR || team == TEAM_FREE)
|
||||||
trap_Cvar_Set("ui_RQ3_numSpectators", buf);
|
trap_Cvar_Set("g_RQ3_numSpectators", buf);
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue