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