strfree(PS_GR_OUT_EVL);
if (PS_GR_OUT_DB >= 0)
+ {
db_close(PS_GR_OUT_DB);
- PlayerStats_GameReport_Init();
+ PlayerStats_GameReport_Init();
+ }
if(PS_GR_OUT_DB < 0)
return;
{
if(CS(p).latency_cnt)
{
- float latency = (CS(p).latency_sum / CS(p).latency_cnt);
+ float latency = max(0, CS(p).latency_sum / CS(p).latency_cnt);
if(latency)
PlayerStats_GameReport_Event_Player(p, PLAYERSTATS_AVGLATENCY, latency);
}
PlayerStats_GameReport_DelayMapVote = true;
serverflags |= SERVERFLAG_PLAYERSTATS;
+ if(autocvar_g_playerstats_gamereport_uri != cvar_defstring("g_playerstats_gamereport_uri"))
+ {
+ serverflags |= SERVERFLAG_PLAYERSTATS_CUSTOM;
+ }
PlayerStats_GameReport_AddEvent(PLAYERSTATS_ALIVETIME);
PlayerStats_GameReport_AddEvent(PLAYERSTATS_AVGLATENCY);
* i: player index
* n: nickname of the player (optional)
* t: team ID
+ * r: player ranking enabled / disabled
* e: followed by an event name, a space, and the event count/score
* event names can be:
* alivetime: total playing time of the player