]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/playerstats.qh
add a scoreboardvalid field to the stats
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / playerstats.qh
1 // time the player was alive and kicking
2 string PLAYERSTATS_ALIVETIME  = "alivetime";
3 string PLAYERSTATS_WINS = "wins";
4 string PLAYERSTATS_MATCHES = "matches";
5 string PLAYERSTATS_TOTAL = "total-";
6 string PLAYERSTATS_SCOREBOARD = "scoreboard-";
7 string PLAYERSTATS_SCOREBOARD_VALID = "scoreboardvalid";
8
9 // delay map switch until this is set
10 float playerstats_waitforme;
11
12 // call at initialization
13 void PlayerStats_Init();
14
15 // add a new player
16 void PlayerStats_AddPlayer(entity e);
17
18 // add a new event
19 void PlayerStats_AddEvent(string event_id);
20
21 // call on each event to track, or at player disconnect OR match end for "global stuff"
22 void PlayerStats_Event(entity e, string event_id, float value);
23
24 // call at game over
25 void PlayerStats_Shutdown(); // send stats to the server
26
27 // URI GET callback
28 void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data);
29
30 // call this whenever a player leaves
31 void PlayerStats_AddGlobalInfo(entity p);
32
33 // call this at the end of the match
34 void PlayerStats_EndMatch(float finished);