S: "hostname" of the server
C: number of "unpure" cvar changes
P: player ID of an existing player; this also sets the owner for all following "n", "e" and "t" lines (lower case!)
+ I: match ID (see "matchid" in g_world.qc
n: nickname of the player (optional)
- t: team ID
+ t: team ID
e: followed by an event name, a space, and the event count/score
event names can be:
alivetime: total playing time of the player
void PlayerStats_EndMatch(float finished)
{
entity p, winner;
- winner = PlayerScore_Sort(score_dummyfield);
- FOR_EACH_PLAYER(p) // spectators intentionally not included
+ winner = PlayerScore_Sort(score_dummyfield);
+ FOR_EACH_CLIENT(p) // spectators intentionally not included
{
- PlayerScore_PlayerStats(p);
PlayerStats_Accuracy(p);
+ if(g_arena || g_lms || g_ca)
+ {
+ if(p.alivetime <= 0)
+ continue;
+ }
+ else
+ {
+ if(p.classname != "player")
+ continue;
+ }
+ PlayerScore_PlayerStats(p);
PlayerStats_Event(p, PLAYERSTATS_SCOREBOARD_VALID, 1);
if(finished)
{