3 // time the player was alive and kicking
4 string PLAYERSTATS_ALIVETIME = "alivetime";
5 string PLAYERSTATS_AVGLATENCY = "avglatency";
6 string PLAYERSTATS_WINS = "wins";
7 string PLAYERSTATS_MATCHES = "matches";
8 string PLAYERSTATS_JOINS = "joins";
9 string PLAYERSTATS_SCOREBOARD_VALID = "scoreboardvalid";
10 string PLAYERSTATS_RANK = "rank";
11 string PLAYERSTATS_SCOREBOARD_POS = "scoreboardpos";
13 string PLAYERSTATS_TOTAL = "total-";
14 string PLAYERSTATS_SCOREBOARD = "scoreboard-";
16 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_3 = "achievement-kill-spree-3";
17 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_5 = "achievement-kill-spree-5";
18 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_10 = "achievement-kill-spree-10";
19 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_15 = "achievement-kill-spree-15";
20 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_20 = "achievement-kill-spree-20";
21 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_25 = "achievement-kill-spree-25";
22 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_30 = "achievement-kill-spree-30";
23 string PLAYERSTATS_ACHIEVEMENT_BOTLIKE = "achievement-botlike";
24 string PLAYERSTATS_ACHIEVEMENT_FIRSTBLOOD = "achievement-firstblood";
25 string PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM = "achievement-firstvictim";
27 // delay map switch until this is set
28 float playerstats_waitforme;
30 // call at initialization
31 void PlayerStats_Init();
34 void PlayerStats_AddPlayer(entity e);
37 void PlayerStats_AddTeam(float t);
40 void PlayerStats_AddEvent(string event_id);
42 // call on each event to track, or at player disconnect OR match end for "global stuff"
43 float PlayerStats_Event(entity e, string event_id, float value);
46 float PlayerStats_TeamScore(float t, string event_id, float value);
49 void PlayerStats_Shutdown(); // send stats to the server
51 void PlayerStats_Accuracy(entity p);
53 // call this whenever a player leaves
54 void PlayerStats_AddGlobalInfo(entity p);
56 // call this at the end of the match
57 void PlayerStats_EndMatch(float finished);
64 //// WIP -zykure /////////////////////////////////////////////////////
67 const string playerinfo_uri = "http://localhost:6543"; // FIXME
69 string PlayerInfo_GetItem(entity e, string item_id);
70 void PlayerInfo_Init();
72 void PlayerInfo_Basic(entity p);
75 void PlayerInfo_Details();
78 //void PlayerInfo_Details();