]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/playerstats.qh
Merge remote-tracking branch 'origin/terencehill/forced_intermission_eventchase'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / playerstats.qh
1 // time the player was alive and kicking
2 string PLAYERSTATS_ALIVETIME  = "alivetime";
3 string PLAYERSTATS_AVGLATENCY = "avglatency";
4 string PLAYERSTATS_WINS = "wins";
5 string PLAYERSTATS_MATCHES = "matches";
6 string PLAYERSTATS_JOINS = "joins";
7 string PLAYERSTATS_SCOREBOARD_VALID = "scoreboardvalid";
8 string PLAYERSTATS_RANK = "rank";
9
10 string PLAYERSTATS_TOTAL = "total-";
11 string PLAYERSTATS_SCOREBOARD = "scoreboard-";
12
13 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_3 = "achievement-kill-spree-3";
14 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_5 = "achievement-kill-spree-5";
15 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_10 = "achievement-kill-spree-10";
16 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_15 = "achievement-kill-spree-15";
17 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_20 = "achievement-kill-spree-20";
18 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_25 = "achievement-kill-spree-25";
19 string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_30 = "achievement-kill-spree-30";
20 string PLAYERSTATS_ACHIEVEMENT_BOTLIKE = "achievement-botlike";
21 string PLAYERSTATS_ACHIEVEMENT_FIRSTBLOOD = "achievement-firstblood";
22 string PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM = "achievement-firstvictim";
23
24 // delay map switch until this is set
25 float playerstats_waitforme;
26
27 // call at initialization
28 void PlayerStats_Init();
29
30 // add a new player
31 void PlayerStats_AddPlayer(entity e);
32
33 // add a new team
34 void PlayerStats_AddTeam(float t);
35
36 // add a new event
37 void PlayerStats_AddEvent(string event_id);
38
39 // call on each event to track, or at player disconnect OR match end for "global stuff"
40 void PlayerStats_Event(entity e, string event_id, float value);
41
42 // add a team score
43 void PlayerStats_TeamScore(float t, string event_id, float value);
44
45 // call at game over
46 void PlayerStats_Shutdown(); // send stats to the server
47
48 // call this whenever a player leaves
49 void PlayerStats_AddGlobalInfo(entity p);
50
51 // call this at the end of the match
52 void PlayerStats_EndMatch(float finished);