]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/playerstats.qh
Merge branch 'master' into terencehill/menu_tooltips_2
[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_JOINS = "joins";
6 string PLAYERSTATS_SCOREBOARD_VALID = "scoreboardvalid";
7
8 string PLAYERSTATS_TOTAL = "total-";
9 string PLAYERSTATS_SCOREBOARD = "scoreboard-";
10
11 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_3 = "achievement-kill-spree-3";
12 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_5 = "achievement-kill-spree-5";
13 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_10 = "achievement-kill-spree-10";
14 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_15 = "achievement-kill-spree-15";
15 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_20 = "achievement-kill-spree-20";
16 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_25 = "achievement-kill-spree-25";
17 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_30 = "achievement-kill-spree-30";
18 string PLAYERSTATS_ACHIEVEMENT_BOTLIKE = "achievement-botlike";
19 string PLAYERSTATS_ACHIEVEMENT_FIRSTBLOOD = "achievement-firstblood";
20 string PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM = "achievement-firstvictim";
21
22 // delay map switch until this is set
23 float playerstats_waitforme;
24
25 // call at initialization
26 void PlayerStats_Init();
27
28 // add a new player
29 void PlayerStats_AddPlayer(entity e);
30
31 // add a new event
32 void PlayerStats_AddEvent(string event_id);
33
34 // call on each event to track, or at player disconnect OR match end for "global stuff"
35 void PlayerStats_Event(entity e, string event_id, float value);
36
37 // call at game over
38 void PlayerStats_Shutdown(); // send stats to the server
39
40 // URI GET callback
41 void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data);
42
43 // call this whenever a player leaves
44 void PlayerStats_AddGlobalInfo(entity p);
45
46 // call this at the end of the match
47 void PlayerStats_EndMatch(float finished);