|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "playerstats.qh"Go to the source code of this file.
Macros | |
| #define | ACCMAC(suffix, field) |
| #define ACCMAC | ( | suffix, | |
| field ) |
Referenced by PlayerStats_GameReport_Accuracy().
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 117 of file playerstats.qc.
References db_get(), db_put(), PS_GR_OUT_DB, PS_GR_OUT_TL, strunzone(), and strzone().
Referenced by PlayerStats_GameReport_Reset_All(), and TeamScore_Spawn().
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().
| string PlayerStats_GetGametype | ( | ) |
Definition at line 346 of file playerstats.qc.
References autocvar_g_maxplayers, FOREACH_CLIENT, GetGametype(), and IS_PLAYER.
Referenced by PlayerStats_GameReport_Handler(), PlayerStats_PlayerBasic(), and PlayerStats_PlayerBasic_Handler().
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().
Definition at line 693 of file playerstats.qc.
References db_get(), db_put(), LOG_DEBUG, PS_D_IN_DB, PS_D_IN_EVL, strunzone(), and strzone().
Referenced by PlayerStats_PlayerDetail_Handler().
| 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().
| void PlayerStats_Prematch | ( | ) |
Definition at line 30 of file playerstats.qc.
| REPLICATE | ( | cvar_cl_allow_uid2name | , |
| int | , | ||
| "cl_allow_uid2name" | ) |
| REPLICATE | ( | cvar_cl_allow_uidranking | , |
| bool | , | ||
| "cl_allow_uidranking" | ) |
| REPLICATE | ( | cvar_cl_allow_uidtracking | , |
| int | , | ||
| "cl_allow_uidtracking" | ) |
| REPLICATE_APPLYCHANGE | ( | "cl_allow_uidtracking" | , |
| { PlayerStats_GameReport_AddPlayer(this);} | ) |
References PlayerStats_GameReport_AddPlayer().
| SHUTDOWN | ( | PlayerStats_PlayerBasic_Shutdown | ) |
Definition at line 584 of file playerstats.qc.
References db_close(), PS_B_IN_DB, and PS_GR_OUT_DB.