]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/scores.qh
Merge remote-tracking branch 'origin/mrbougo/clonefixes'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / scores.qh
index 60f4d24f6bdeaf6271a223b3919d8bd1e6bed767..c26a4d295ea78cc9ab977d447f336ce7dbcd424f 100644 (file)
@@ -1,6 +1,7 @@
 entity scores_initialized; // non-world when scores labels/rules have been set
 .float scores[MAX_SCORE];
 .float teamscores[MAX_TEAMSCORE];
+.float scoreboard_pos;
 
 /**
  * Attaches a PlayerScore entity to a player. Use that in ClientConnect.
@@ -25,8 +26,9 @@ float PlayerScore_Add(entity player, float scorefield, float score);
  * Initialize the score of this player if needed.
  * Does nothing in teamplay.
  * Use that when a spectator becomes a player.
+ * Returns whether clearing has been performed
  */
-void PlayerScore_Clear(entity player);
+float PlayerScore_Clear(entity player);
 
 /**
  * Adds a score to the player's team's scores.