]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator/gamemode_keepaway.qc
Refactor game rules
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_keepaway.qc
index c28fd5eb8e7eab4f30378ad5fdaeccc2b84dc909..93ec6558b6778f7bc70e5c91b95784988e1414d9 100644 (file)
@@ -468,11 +468,11 @@ void ka_SpawnBall() // loads various values for the ball, runs only once at star
 
 void ka_ScoreRules()
 {
-       ScoreRules_basics(0, SFL_SORT_PRIO_PRIMARY, 0, true); // SFL_SORT_PRIO_PRIMARY
-       ScoreInfo_SetLabel_PlayerScore(SP_KEEPAWAY_PICKUPS,             "pickups",              0);
-       ScoreInfo_SetLabel_PlayerScore(SP_KEEPAWAY_CARRIERKILLS,   "bckills",           0);
-       ScoreInfo_SetLabel_PlayerScore(SP_KEEPAWAY_BCTIME,                  "bctime",           SFL_SORT_PRIO_SECONDARY);
-       ScoreRules_basics_end();
+       GameRules_scoring(0, SFL_SORT_PRIO_PRIMARY, 0, {
+        field(SP_KEEPAWAY_PICKUPS, "pickups", 0);
+        field(SP_KEEPAWAY_CARRIERKILLS, "bckills", 0);
+        field(SP_KEEPAWAY_BCTIME, "bctime", SFL_SORT_PRIO_SECONDARY);
+       });
 }
 
 void ka_Initialize() // run at the start of a match, initiates game mode