1 // time the player was alive and kicking
2 const string PLAYERSTATS_ALIVETIME = "alivetime";
3 const string PLAYERSTATS_AVGLATENCY = "avglatency";
4 const string PLAYERSTATS_WINS = "wins";
5 const string PLAYERSTATS_MATCHES = "matches";
6 const string PLAYERSTATS_JOINS = "joins";
7 const string PLAYERSTATS_SCOREBOARD_VALID = "scoreboardvalid";
8 const string PLAYERSTATS_RANK = "rank";
9 const string PLAYERSTATS_SCOREBOARD_POS = "scoreboardpos";
11 const string PLAYERSTATS_TOTAL = "total-";
12 const string PLAYERSTATS_SCOREBOARD = "scoreboard-";
14 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_3 = "achievement-kill-spree-3";
15 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_5 = "achievement-kill-spree-5";
16 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_10 = "achievement-kill-spree-10";
17 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_15 = "achievement-kill-spree-15";
18 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_20 = "achievement-kill-spree-20";
19 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_25 = "achievement-kill-spree-25";
20 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_30 = "achievement-kill-spree-30";
21 const string PLAYERSTATS_ACHIEVEMENT_BOTLIKE = "achievement-botlike";
22 const string PLAYERSTATS_ACHIEVEMENT_FIRSTBLOOD = "achievement-firstblood";
23 const string PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM = "achievement-firstvictim";
25 // delay map switch until this is set
26 float playerstats_waitforme;
28 // call at initialization
29 void PlayerStats_Init();
32 void PlayerStats_AddPlayer(entity e);
35 void PlayerStats_AddTeam(float t);
38 void PlayerStats_AddEvent(string event_id);
40 // call on each event to track, or at player disconnect OR match end for "global stuff"
41 float PlayerStats_Event(entity e, string event_id, float value);
44 float PlayerStats_TeamScore(float t, string event_id, float value);
47 void PlayerStats_Shutdown(); // send stats to the server
49 // call this whenever a player leaves
50 void PlayerStats_AddGlobalInfo(entity p);
52 // call this at the end of the match
53 void PlayerStats_EndMatch(float finished);