]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/playerstats.qh
Update default video settings
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / playerstats.qh
index 4383ee3eb4a8253a8e05401bc13edda590b8f091..9fff940f243ad4025e26ed424810263700c4fdb8 100644 (file)
@@ -81,11 +81,12 @@ void PlayerStats_GameReport_Accuracy(entity p);
 void PlayerStats_GameReport_FinalizePlayer(entity p);
 
 // call this at the end of the match
-void PlayerStats_GameReport(float finished);
+void PlayerStats_GameReport(bool finished);
 
 void PlayerStats_GameReport_Handler(entity fh, entity pass, float status);
 
 .string playerstats_id;
+.float scoreboard_pos;
 
 //string autocvar_g_playerstats_uri;
 
@@ -98,7 +99,7 @@ const float PS_B_STATUS_WAITING = 0;
 const float PS_B_STATUS_RECEIVED = 1;
 const float PS_B_STATUS_UPDATING = 2;
 .float playerstats_basicstatus;
-string autocvar_g_playerstats_playerbasic_uri = "http://stats.xonotic.org";
+string autocvar_g_playerstats_playerbasic_uri = "https://stats.xonotic.org";
 
 void PlayerStats_PlayerBasic(entity joiningplayer, float newrequest);
 void PlayerStats_PlayerBasic_CheckUpdate(entity joiningplayer);
@@ -112,7 +113,7 @@ const float PS_D_STATUS_IDLE = -1;
 const float PS_D_STATUS_WAITING = 0;
 const float PS_D_STATUS_RECEIVED = 1;
 float PlayerStats_PlayerDetail_Status = PS_D_STATUS_IDLE;
-string autocvar_g_playerstats_playerdetail_uri = "http://stats.xonotic.org/player/me";
+string autocvar_g_playerstats_playerdetail_uri = "https://stats.xonotic.org/player/me";
 float autocvar_g_playerstats_playerdetail_autoupdatetime = 1800; // automatically update every 30 minutes anyway
 void PlayerStats_PlayerDetail();
 void PlayerStats_PlayerDetail_CheckUpdate();
@@ -122,8 +123,8 @@ void PlayerStats_PlayerDetail_Handler(entity fh, entity p, float status);
 
 #ifdef GAMEQC
 
-REPLICATE_FIELD(int, cvar_cl_allow_uid2name);
-REPLICATE_FIELD(bool, cvar_cl_allow_uidranking);
-REPLICATE_FIELD(int, cvar_cl_allow_uidtracking);
+REPLICATE_INIT(int, cvar_cl_allow_uid2name);
+REPLICATE_INIT(bool, cvar_cl_allow_uidranking);
+REPLICATE_INIT(int, cvar_cl_allow_uidtracking);
 
 #endif