]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/scores_rules.qc
Fix implementation of CA score rules
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / scores_rules.qc
index d60f4563c1cfdbf937982c9046ed66cc2f264423..133178a205d1fb03a24dc0a3787ec364067844ac 100644 (file)
@@ -115,3 +115,11 @@ void ScoreRules_freezetag()
        ScoreInfo_SetLabel_PlayerScore(SP_FREEZETAG_REVIVALS,           "revivals",             0);
        ScoreRules_basics_end();
 }
+#define ST_CA_ROUNDS 1
+void ScoreRules_ca(float teams)
+{
+       CheckAllowedTeams(world);
+       ScoreRules_basics(teams, SFL_SORT_PRIO_PRIMARY, 0, TRUE);
+       ScoreInfo_SetLabel_TeamScore(ST_CA_ROUNDS, "rounds", SFL_SORT_PRIO_PRIMARY);
+       ScoreRules_basics_end();
+}