Map_MarkAsRecent(mapname);
- PlayerStats_Init(); // we need this to be initiated before InitGameplayMode
-
precache_model ("null"); // we need this one before InitGameplayMode
InitGameplayMode();
readlevelcvars();
cvar_set("sv_curl_serverpackages", substring(s, 1, -1));
}
+ PlayerStats_Init();
+
// MOD AUTHORS: change this, and possibly remove a few of the blocks below to ignore certain changes
modname = "Xonotic";
// physics/balance/config changes that count as mod
.float playerstats_addedglobalinfo;
.string playerstats_id;
-void PlayerStats_Init() // initiated before InitGameplayMode so that scores are added properly
+void PlayerStats_Init()
{
string uri;
playerstats_db = -1;
if(playerstats_db >= 0)
playerstats_waitforme = FALSE; // must wait for it at match end
- serverflags |= SERVERFLAG_PLAYERSTATS;
+ serverflags |= SERVERFLAG_PLAYERSTATS;
PlayerStats_AddEvent(PLAYERSTATS_ALIVETIME);
PlayerStats_AddEvent(PLAYERSTATS_WINS);
{
if(playerstats_db < 0)
return;
-
+
string key;
key = sprintf("*:%s", event_id);