#pragma once
-#include <common/constants.qh>
+#include <common/scores.qh>
entity scores_initialized; // non-NULL when scores labels/rules have been set
.float scoreboard_pos;
* \param[in] scorefield Field of the score.
* \return Player's score.
*/
-float PlayerScore_Get(entity player, PlayerScoreField scorefield);
+#define PlayerScore_Get(player, scorefield) PlayerScore_Add(player, scorefield, 0)
/**
* Initialize the score of this player if needed.
*/
float PlayerTeamScore_Add(entity player, PlayerScoreField pscorefield, float tscorefield, float score);
-/**
- * Adds to the generic score fields for both the player and the team.
- */
-#define PlayerTeamScore_AddScore(p, s) PlayerTeamScore_Add(p, SP_SCORE, ST_SCORE, s)
-
/**
* Set the label of a team score item, as well as the scoring flags.
*/