|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | PlayerStats_GameReport_Event_Player(ent, eventid, val) |
| #define | PlayerStats_GameReport_Event_Team(team, eventid, val) |
| #define PlayerStats_GameReport_Event_Player | ( | ent, | |
| eventid, | |||
| val ) |
Definition at line 76 of file playerstats.qh.
Referenced by anticheat_report_to_playerstats(), GiveFrags(), Obituary(), PlayerDamage(), PlayerScore_Add(), PlayerScore_PlayerStats(), PlayerStats_GameReport(), PlayerStats_GameReport_FinalizePlayer(), and PutObserverInServer().
| #define PlayerStats_GameReport_Event_Team | ( | team, | |
| eventid, | |||
| val ) |
Definition at line 229 of file playerstats.qc.
References autocvar_g_playerstats_gamereport_uri, db_close(), FILE_APPEND, FOREACH_CLIENT, GameRules_scoring_add, NULL, PlayerScore_PlayerStats(), PlayerScore_Sort(), PlayerScore_TeamStats(), PlayerStats_GameReport_DelayMapVote, PlayerStats_GameReport_Event_Player, PlayerStats_GameReport_FinalizePlayer(), PlayerStats_GameReport_Handler(), PLAYERSTATS_HANDICAP_GIVEN, PLAYERSTATS_HANDICAP_TAKEN, PLAYERSTATS_MATCHES, PLAYERSTATS_RANK, PLAYERSTATS_SCOREBOARD_POS, PLAYERSTATS_SCOREBOARD_VALID, PLAYERSTATS_WINS, PS_GR_OUT_DB, score_dummyfield, scoreboard_pos, teamplay, url_multi_fopen(), and warmup_stage.
Referenced by NextLevel(), and Shutdown().
Definition at line 167 of file playerstats.qc.
References ACCMAC, accuracy_cnt_fired, accuracy_cnt_hit, accuracy_fired, accuracy_frags, accuracy_hit, accuracy_real, entity(), FOREACH, and Weapons.
Referenced by PlayerStats_GameReport_FinalizePlayer().
Definition at line 136 of file playerstats.qc.
References db_get(), db_put(), PS_GR_OUT_DB, PS_GR_OUT_EVL, strunzone(), and strzone().
Referenced by anticheat_register_to_playerstats(), ClientConnect(), PlayerStats_GameReport_Init(), PlayerStats_GameReport_Reset_All(), ScoreInfo_SetLabel_PlayerScore(), and ScoreInfo_SetLabel_TeamScore().
Definition at line 79 of file playerstats.qc.
References CS_CVAR, db_get(), db_put(), entity(), find(), IS_BOT_CLIENT, NULL, playerstats_id, PS_GR_OUT_DB, PS_GR_OUT_PL, skill, strunzone(), and strzone().
Referenced by ClientConnect(), PlayerStats_GameReport_Reset_All(), and REPLICATE_APPLYCHANGE().
Definition at line 155 of file playerstats.qc.
References db_get(), db_put(), ftos(), PS_GR_OUT_DB, stof(), and strcat().
Definition at line 183 of file playerstats.qc.
References anticheat_report_to_playerstats(), CS(), CS_CVAR, db_get(), db_put(), entity(), ftos(), IS_BOT_CLIENT, IS_REAL_CLIENT, latency_cnt, latency_sum, max(), playername(), PLAYERSTATS_ALIVETIME, PLAYERSTATS_AVGLATENCY, PlayerStats_GameReport_Accuracy(), PlayerStats_GameReport_Event_Player, PLAYERSTATS_JOINS, PS_GR_OUT_DB, stof(), strfree, teamplay, and time.
Referenced by ClientDisconnect(), and PlayerStats_GameReport().
Definition at line 359 of file playerstats.qc.
References autocvar_g_playerstats_gamereport_ladder, cvar(), cvar_purechanges_count, cvar_string(), db_close(), db_get(), entity(), ftos(), game_starttime, GetMapname(), LOG_DEBUG, LOG_INFO, matchid, max(), modname, pass, PlayerStats_GameReport_DelayMapVote, PlayerStats_GetGametype(), PS_GR_OUT_DB, PS_GR_OUT_EVL, PS_GR_OUT_PL, PS_GR_OUT_TL, rounds_played, stof(), teamplay, time, url_fclose(), url_fgets(), url_fputs(), URL_READY_CANREAD, URL_READY_CANWRITE, URL_READY_CLOSED, and URL_READY_ERROR.
Referenced by PlayerStats_GameReport().
| void PlayerStats_GameReport_Init | ( | ) |
Definition at line 288 of file playerstats.qc.
References anticheat_register_to_playerstats(), autocvar_g_playerstats_gamereport_uri, checkextension(), cvar_defstring(), db_create(), FOREACH, PLAYERSTATS_ACHIEVEMENT_BOTLIKE, PLAYERSTATS_ACHIEVEMENT_FIRSTBLOOD, PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_10, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_15, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_20, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_25, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_3, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_30, PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_5, PLAYERSTATS_ALIVETIME, PLAYERSTATS_AVGLATENCY, PlayerStats_GameReport_AddEvent(), PlayerStats_GameReport_DelayMapVote, PLAYERSTATS_HANDICAP_GIVEN, PLAYERSTATS_HANDICAP_TAKEN, PLAYERSTATS_JOINS, PLAYERSTATS_MATCHES, PLAYERSTATS_RANK, PLAYERSTATS_SCOREBOARD_POS, PLAYERSTATS_SCOREBOARD_VALID, PLAYERSTATS_WINS, PS_GR_OUT_DB, SERVERFLAG_PLAYERSTATS, SERVERFLAG_PLAYERSTATS_CUSTOM, serverflags, strcat(), and Weapons.
Referenced by PlayerStats_GameReport_Reset_All(), and spawnfunc().
| void PlayerStats_GameReport_Reset_All | ( | ) |
Definition at line 36 of file playerstats.qc.
References db_close(), FOREACH, FOREACH_CLIENT, MAX_TEAMSCORE, PlayerStats_GameReport_AddEvent(), PlayerStats_GameReport_AddPlayer(), PlayerStats_GameReport_AddTeam(), PlayerStats_GameReport_Init(), PLAYERSTATS_SCOREBOARD, PLAYERSTATS_TOTAL, PS_GR_OUT_DB, PS_GR_OUT_EVL, PS_GR_OUT_PL, PS_GR_OUT_TL, scores_label, strcat(), strfree, teamscorekeepers, and teamscores_label.
Referenced by reset_map().
Definition at line 532 of file playerstats.qc.
References autocvar_g_playerstats_playerbasic_uri, db_close(), db_create(), entity(), FILE_READ, FOREACH_CLIENT, GameRules_scoring_add, IS_REAL_CLIENT, LOG_DEBUG, PlayerStats_GetGametype(), PlayerStats_PlayerBasic_Handler(), PS_B_IN_DB, PS_B_STATUS_IDLE, PS_B_STATUS_UPDATING, PS_B_STATUS_WAITING, strcat(), and url_single_fopen().
Referenced by PlayerStats_PlayerBasic_CheckUpdate().
Definition at line 599 of file playerstats.qc.
References entity(), LOG_DEBUGF, PlayerStats_PlayerBasic(), PS_B_STATUS_RECEIVED, and time.
Referenced by ClientState_attach().
Definition at line 620 of file playerstats.qc.
References _json_parse_array(), entity(), EXPECT_NE, ftos(), GameRules_scoring_add, gametype, json_get(), json_parse(), LOG_DEBUG, LOG_INFO, max(), PlayerStats_GetGametype(), skill, stof(), strcat(), url_fclose(), url_fgets(), url_fputs(), URL_READY_CANREAD, URL_READY_CANWRITE, URL_READY_CLOSED, and URL_READY_ERROR.
Referenced by PlayerStats_PlayerBasic().
| void PlayerStats_PlayerDetail | ( | ) |
Definition at line 715 of file playerstats.qc.
References autocvar_g_playerstats_playerdetail_uri, db_close(), db_create(), FILE_APPEND, LOG_DEBUG, NULL, PlayerStats_PlayerDetail_Handler(), PlayerStats_PlayerDetail_Status, PS_D_IN_DB, PS_D_STATUS_IDLE, PS_D_STATUS_WAITING, and url_single_fopen().
Referenced by PlayerStats_PlayerDetail_CheckUpdate().
| void PlayerStats_PlayerDetail_CheckUpdate | ( | ) |
Definition at line 748 of file playerstats.qc.
References autocvar_g_playerstats_playerdetail_autoupdatetime, cvar(), LOG_INFOF, PlayerStats_PlayerDetail(), PS_D_LASTGAMECOUNT, PS_D_NEXTUPDATETIME, and time.
Referenced by XonoticStatsList_showNotify().
Definition at line 774 of file playerstats.qc.
References argv(), argv_start_index, count, cvar_string(), db_close(), entity(), ftos(), gametype, LOG_DEBUG, LOG_INFO, LOG_INFOF, PlayerStats_PlayerDetail_AddItem(), PlayerStats_PlayerDetail_Status, PS_D_IN_DB, PS_D_STATUS_ERROR, PS_D_STATUS_RECEIVED, statslist, strlen, substring(), tokenizebyseparator, url_fclose(), url_fgets(), url_fputs(), URL_READY_CANREAD, URL_READY_CANWRITE, URL_READY_CLOSED, and URL_READY_ERROR.
Referenced by PlayerStats_PlayerDetail().
| REPLICATE_INIT | ( | bool | , |
| cvar_cl_allow_uidranking | ) |
| REPLICATE_INIT | ( | int | , |
| cvar_cl_allow_uid2name | ) |
| REPLICATE_INIT | ( | int | , |
| cvar_cl_allow_uidtracking | ) |
| string autocvar_g_playerstats_gamereport_ladder |
Definition at line 95 of file playerstats.qh.
Referenced by PlayerStats_GameReport_Handler().
| string autocvar_g_playerstats_gamereport_uri = "https://stats.xonotic.org/stats/submit" |
Definition at line 96 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), and PlayerStats_GameReport_Init().
| string autocvar_g_playerstats_playerbasic_uri = "https://stats.xonotic.org" |
Definition at line 104 of file playerstats.qh.
Referenced by PlayerStats_PlayerBasic().
| float autocvar_g_playerstats_playerdetail_autoupdatetime = 1800 |
Definition at line 119 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail_CheckUpdate().
| string autocvar_g_playerstats_playerdetail_uri = "https://stats.xonotic.org/player/me" |
Definition at line 118 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail().
| const string PLAYERSTATS_ACHIEVEMENT_BOTLIKE = "achievement-botlike" |
Definition at line 54 of file playerstats.qh.
Referenced by Obituary(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_FIRSTBLOOD = "achievement-firstblood" |
Definition at line 55 of file playerstats.qh.
Referenced by Obituary(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM = "achievement-firstvictim" |
Definition at line 56 of file playerstats.qh.
Referenced by Obituary(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_10 = "achievement-kill-spree-10" |
Definition at line 49 of file playerstats.qh.
Referenced by PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_15 = "achievement-kill-spree-15" |
Definition at line 50 of file playerstats.qh.
Referenced by PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_20 = "achievement-kill-spree-20" |
Definition at line 51 of file playerstats.qh.
Referenced by PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_25 = "achievement-kill-spree-25" |
Definition at line 52 of file playerstats.qh.
Referenced by PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_3 = "achievement-kill-spree-3" |
Definition at line 47 of file playerstats.qh.
Referenced by PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_30 = "achievement-kill-spree-30" |
Definition at line 53 of file playerstats.qh.
Referenced by PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ACHIEVEMENT_KILL_SPREE_5 = "achievement-kill-spree-5" |
Definition at line 48 of file playerstats.qh.
Referenced by PlayerStats_GameReport_Init().
| const string PLAYERSTATS_ALIVETIME = "alivetime" |
Definition at line 32 of file playerstats.qh.
Referenced by PlayerDamage(), PlayerStats_GameReport_FinalizePlayer(), PlayerStats_GameReport_Init(), and PutObserverInServer().
| const string PLAYERSTATS_ANTICHEAT = "anticheat-" |
Definition at line 45 of file playerstats.qh.
Referenced by anticheat_register_to_playerstats(), and anticheat_report_to_playerstats().
| const string PLAYERSTATS_AVGLATENCY = "avglatency" |
Definition at line 33 of file playerstats.qh.
Referenced by PlayerStats_GameReport_FinalizePlayer(), and PlayerStats_GameReport_Init().
| float playerstats_basicstatus |
Definition at line 103 of file playerstats.qh.
| bool PlayerStats_GameReport_DelayMapVote |
Definition at line 59 of file playerstats.qh.
Referenced by MapVote_Start(), PlayerStats_GameReport(), PlayerStats_GameReport_Handler(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_HANDICAP_GIVEN = "handicapgiven" |
Definition at line 40 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_HANDICAP_TAKEN = "handicaptaken" |
Definition at line 41 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), and PlayerStats_GameReport_Init().
| string playerstats_id |
Definition at line 90 of file playerstats.qh.
Referenced by PlayerStats_GameReport_AddPlayer().
| const string PLAYERSTATS_JOINS = "joins" |
Definition at line 36 of file playerstats.qh.
Referenced by PlayerStats_GameReport_FinalizePlayer(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_MATCHES = "matches" |
Definition at line 35 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), and PlayerStats_GameReport_Init().
| float PlayerStats_PlayerDetail_Status = PS_D_STATUS_IDLE |
Definition at line 117 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail(), and PlayerStats_PlayerDetail_Handler().
| const string PLAYERSTATS_RANK = "rank" |
Definition at line 38 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_SCOREBOARD = "scoreboard-" |
Definition at line 44 of file playerstats.qh.
Referenced by PlayerScore_PlayerStats(), PlayerScore_TeamStats(), PlayerStats_GameReport_Reset_All(), ScoreInfo_SetLabel_PlayerScore(), and ScoreInfo_SetLabel_TeamScore().
| const string PLAYERSTATS_SCOREBOARD_POS = "scoreboardpos" |
Definition at line 39 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_SCOREBOARD_VALID = "scoreboardvalid" |
Definition at line 37 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), and PlayerStats_GameReport_Init().
| const string PLAYERSTATS_TOTAL = "total-" |
Definition at line 43 of file playerstats.qh.
Referenced by PlayerScore_Add(), PlayerStats_GameReport_Reset_All(), ScoreInfo_SetLabel_PlayerScore(), and ScoreInfo_SetLabel_TeamScore().
| const string PLAYERSTATS_WINS = "wins" |
Definition at line 34 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), and PlayerStats_GameReport_Init().
| float PS_B_IN_DB = -1 |
Definition at line 7 of file playerstats.qh.
Referenced by PlayerStats_PlayerBasic(), and SHUTDOWN().
| const float PS_B_STATUS_ERROR = -2 |
Definition at line 98 of file playerstats.qh.
| const float PS_B_STATUS_IDLE = -1 |
Definition at line 99 of file playerstats.qh.
Referenced by PlayerStats_PlayerBasic().
| const float PS_B_STATUS_RECEIVED = 1 |
Definition at line 101 of file playerstats.qh.
Referenced by PlayerStats_PlayerBasic_CheckUpdate().
| const float PS_B_STATUS_UPDATING = 2 |
Definition at line 102 of file playerstats.qh.
Referenced by PlayerStats_PlayerBasic().
| const float PS_B_STATUS_WAITING = 0 |
Definition at line 100 of file playerstats.qh.
Referenced by PlayerStats_PlayerBasic().
| int PS_D_IN_DB = -1 |
Definition at line 11 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail(), PlayerStats_PlayerDetail_AddItem(), PlayerStats_PlayerDetail_Handler(), and XonoticStatsList_getStats().
| string PS_D_IN_EVL |
Definition at line 26 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail_AddItem(), and XonoticStatsList_getStats().
| float PS_D_LASTGAMECOUNT |
Definition at line 112 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail_CheckUpdate().
| float PS_D_NEXTUPDATETIME |
Definition at line 111 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail_CheckUpdate().
| const float PS_D_STATUS_ERROR = -2 |
Definition at line 113 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail_Handler().
| const float PS_D_STATUS_IDLE = -1 |
Definition at line 114 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail().
| const float PS_D_STATUS_RECEIVED = 1 |
Definition at line 116 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail_Handler().
| const float PS_D_STATUS_WAITING = 0 |
Definition at line 115 of file playerstats.qh.
Referenced by PlayerStats_PlayerDetail().
| int PS_GR_OUT_DB = -1 |
Definition at line 5 of file playerstats.qh.
Referenced by PlayerStats_GameReport(), PlayerStats_GameReport_AddEvent(), PlayerStats_GameReport_AddPlayer(), PlayerStats_GameReport_AddTeam(), PlayerStats_GameReport_Event(), PlayerStats_GameReport_FinalizePlayer(), PlayerStats_GameReport_Handler(), PlayerStats_GameReport_Init(), PlayerStats_GameReport_Reset_All(), and SHUTDOWN().
| string PS_GR_OUT_EVL |
Definition at line 18 of file playerstats.qh.
Referenced by PlayerStats_GameReport_AddEvent(), PlayerStats_GameReport_Handler(), and PlayerStats_GameReport_Reset_All().
| string PS_GR_OUT_PL |
Definition at line 17 of file playerstats.qh.
Referenced by PlayerStats_GameReport_AddPlayer(), PlayerStats_GameReport_Handler(), and PlayerStats_GameReport_Reset_All().
| string PS_GR_OUT_TL |
Definition at line 16 of file playerstats.qh.
Referenced by PlayerStats_GameReport_AddTeam(), PlayerStats_GameReport_Handler(), and PlayerStats_GameReport_Reset_All().
| float scoreboard_pos |
Definition at line 91 of file playerstats.qh.
Referenced by PlayerStats_GameReport().