]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/server/scores.qh
add generic csqc scoreboard managing beginning (does nothing yet)
[divverent/nexuiz.git] / data / qcsrc / server / scores.qh
1 #define MAX_SCORE 8
2 #define MAX_TEAMSCORE 2
3
4 .float scores[MAX_SCORE];
5 .float teamscores[MAX_TEAMSCORE];
6
7 void PlayerScore_Attach(entity player);
8 void PlayerScore_Detach(entity player);
9 void PlayerScore_Add(entity player, float scorefield, float score);
10 void PlayerScore_Clear(entity player);
11 void TeamScore_Add(entity player, float scorefield, float score);
12
13 void ScoreInfo_Init(float teams);
14 void ScoreInfo_SetLabel_TeamScore(float i, string label, float scoreflags);
15 void ScoreInfo_SetLabel_PlayerScore(float i, string label, float scoreflags);
16 #define SFL_DECREASING         1 // e.g. lives in LMS
17 #define SFL_SORT_PRIO_LOW      2
18 #define SFL_SORT_PRIO_MED      4
19 #define SFL_SORT_PRIO_HIGH     8
20 #define SFL_SORT_PRIO_PRIMARY 14
21 #define SFL_SORT_PRIO_MASK    14
22
23 void WinningConditionHelper();
24 float WinningConditionHelper_topscore;
25 float WinningConditionHelper_equality;
26 float WinningConditionHelper_winnerteam;
27 entity WinningConditionHelper_winner;
28
29
30 #define S_KILLS 0
31 #define S_DEATHS 1
32 #define S_SUICIDES 2
33
34 #define S_CTF_CAPS 3
35 #define S_CTF_RETURNS 4
36
37 #define S_KH_COLLECT 3
38 #define S_KH_LOSEKEY 4
39 #define S_KH_CAPTURE 5
40 #define S_KH_PUSH 6
41 #define S_KH_DESTROYED 7