]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_ca.qc
Merge branch 'terencehill/misc_cleanups' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_ca.qc
index d430f1b00748774083534ce19420b5f1abff0f16..4ba1830048ec4f7733aa62454842e816b4c8c082 100644 (file)
@@ -4,6 +4,14 @@ float redalive, bluealive, yellowalive, pinkalive;
 float ca_teams;
 float allowed_to_spawn;
 
+#define ST_CA_ROUNDS 1
+void ca_ScoreRules(float teams)
+{
+       ScoreRules_basics(teams, SFL_SORT_PRIO_PRIMARY, 0, TRUE);
+       ScoreInfo_SetLabel_TeamScore(ST_CA_ROUNDS, "rounds", SFL_SORT_PRIO_PRIMARY);
+       ScoreRules_basics_end();
+}
+
 void CA_count_alive_players()
 {
        entity e;
@@ -352,7 +360,7 @@ void ca_Initialize()
                ca_teams = autocvar_g_ca_teams;
        ca_teams = bound(2, ca_teams, 4);
        ret_float = ca_teams;
-       ScoreRules_ca(ca_teams);
+       ca_ScoreRules(ca_teams);
 
        round_handler_Spawn(CA_CheckTeams, CA_CheckWinner, CA_RoundStart);
        round_handler_Init(5, autocvar_g_ca_warmup, autocvar_g_ca_round_timelimit);