X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fscores.qh;h=5960b9f427fc3a459550dd0585fd8eacee686134;hb=0f3709f96ff607455d69dc4844e39a8ea0587675;hp=3ac0b03b5577dd49cf5dbb5eea7e1ad7e2fd02e6;hpb=1f1c714c231334ca941e029e7ab2094fff25b476;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/scores.qh b/qcsrc/server/scores.qh index 3ac0b03b5..5960b9f42 100644 --- a/qcsrc/server/scores.qh +++ b/qcsrc/server/scores.qh @@ -25,8 +25,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. @@ -117,5 +118,8 @@ string GetTeamScoreString(float tm, float shortString); * Sorts the players and stores their place in the given field, starting with * 1. Non-players get 0 written into that field. * Returns the beginning of a sorted chain of the non-spectators. + * teams: >0: sort by teams first (always strict ordering); <0: sort by teams only (respects strict flag) + * strict: return a strict ordering + * nospectators: exclude spectators */ -entity PlayerScore_Sort(.float field); +entity PlayerScore_Sort(.float field, float teams, float strict, float nospectators);