32 const string PLAYERSTATS_ALIVETIME =
"alivetime";
33 const string PLAYERSTATS_AVGLATENCY =
"avglatency";
34 const string PLAYERSTATS_WINS =
"wins";
35 const string PLAYERSTATS_MATCHES =
"matches";
36 const string PLAYERSTATS_JOINS =
"joins";
37 const string PLAYERSTATS_SCOREBOARD_VALID =
"scoreboardvalid";
38 const string PLAYERSTATS_RANK =
"rank";
39 const string PLAYERSTATS_SCOREBOARD_POS =
"scoreboardpos";
41 const string PLAYERSTATS_TOTAL =
"total-";
42 const string PLAYERSTATS_SCOREBOARD =
"scoreboard-";
43 const string PLAYERSTATS_ANTICHEAT =
"anticheat-";
45 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_3 =
"achievement-kill-spree-3";
46 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_5 =
"achievement-kill-spree-5";
47 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_10 =
"achievement-kill-spree-10";
48 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_15 =
"achievement-kill-spree-15";
49 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_20 =
"achievement-kill-spree-20";
50 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_25 =
"achievement-kill-spree-25";
51 const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_30 =
"achievement-kill-spree-30";
52 const string PLAYERSTATS_ACHIEVEMENT_BOTLIKE =
"achievement-botlike";
53 const string PLAYERSTATS_ACHIEVEMENT_FIRSTBLOOD =
"achievement-firstblood";
54 const string PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM =
"achievement-firstvictim";
57 bool PlayerStats_GameReport_DelayMapVote;
59 void PlayerStats_GameReport_Reset_All();
62 void PlayerStats_GameReport_Init();
65 void PlayerStats_GameReport_AddPlayer(
entity e);
68 void PlayerStats_GameReport_AddTeam(
float t);
71 void PlayerStats_GameReport_AddEvent(
string event_id);
74 #define PlayerStats_GameReport_Event_Player(ent, eventid, val) PlayerStats_GameReport_Event(ent.playerstats_id, eventid, val) 75 #define PlayerStats_GameReport_Event_Team(team, eventid, val) PlayerStats_GameReport_Event(sprintf("team#%d", team), eventid, val) 76 float PlayerStats_GameReport_Event(
string prefix,
string event_id,
float value);
78 void PlayerStats_GameReport_Accuracy(
entity p);
81 void PlayerStats_GameReport_FinalizePlayer(
entity p);
84 void PlayerStats_GameReport(
float finished);
88 .string playerstats_id;
92 string autocvar_g_playerstats_gamereport_ladder;
93 string autocvar_g_playerstats_gamereport_uri =
"https://stats.xonotic.org/stats/submit";
95 const float PS_B_STATUS_ERROR = -2;
96 const float PS_B_STATUS_IDLE = -1;
97 const float PS_B_STATUS_WAITING = 0;
98 const float PS_B_STATUS_RECEIVED = 1;
99 const float PS_B_STATUS_UPDATING = 2;
100 .float playerstats_basicstatus;
101 string autocvar_g_playerstats_playerbasic_uri =
"http://stats.xonotic.org";
103 void PlayerStats_PlayerBasic(
entity joiningplayer,
float newrequest);
104 void PlayerStats_PlayerBasic_CheckUpdate(
entity joiningplayer);
105 void PlayerStats_PlayerBasic_Handler(
entity fh,
entity p,
float status);
108 float PS_D_NEXTUPDATETIME;
109 float PS_D_LASTGAMECOUNT;
110 const float PS_D_STATUS_ERROR = -2;
111 const float PS_D_STATUS_IDLE = -1;
112 const float PS_D_STATUS_WAITING = 0;
113 const float PS_D_STATUS_RECEIVED = 1;
114 float PlayerStats_PlayerDetail_Status = PS_D_STATUS_IDLE;
115 string autocvar_g_playerstats_playerdetail_uri =
"http://stats.xonotic.org/player/me";
116 float autocvar_g_playerstats_playerdetail_autoupdatetime = 1800;
117 void PlayerStats_PlayerDetail();
118 void PlayerStats_PlayerDetail_CheckUpdate();
119 void PlayerStats_PlayerDetail_Handler(
entity fh,
entity p,
float status);
REPLICATE_INIT(float, cvar_cl_autotaunt)
#define pass(name, colormin, colormax)