mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Check for Active Compile
This commit is contained in:
parent
de78816458
commit
5f0b7c57f8
1 changed files with 16 additions and 3 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
//-----------Settings------------
|
//-----------Settings------------
|
||||||
//Notes score ui width is 592
|
//Notes score ui width is 592
|
||||||
$dtStats::version = 9.3;
|
$dtStats::version = 9.4;
|
||||||
//disable stats system
|
//disable stats system
|
||||||
$dtStats::Enable = 1;
|
$dtStats::Enable = 1;
|
||||||
//enable disable map stats
|
//enable disable map stats
|
||||||
|
|
@ -1534,6 +1534,16 @@ if(!isObject(statsGroup)){
|
||||||
$dtStats::leftID++;
|
$dtStats::leftID++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//start compile
|
||||||
|
function compileStats(){
|
||||||
|
if(!$dtStats::building){
|
||||||
|
lStatsCycle(1, 1);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
error("Stats Already Compiling");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function dtAICON(%client){
|
function dtAICON(%client){
|
||||||
dtStatsMissionDropReady(Game.getId(), %client);
|
dtStatsMissionDropReady(Game.getId(), %client);
|
||||||
}
|
}
|
||||||
|
|
@ -11901,7 +11911,7 @@ function loadLeaderboards(%reset){ // loads up leaderboards
|
||||||
markNewDay();//called when server starts and when build completes
|
markNewDay();//called when server starts and when build completes
|
||||||
dtCleanUp(0);
|
dtCleanUp(0);
|
||||||
if(!isEventPending($dtStats::buildEvent))
|
if(!isEventPending($dtStats::buildEvent))
|
||||||
$dtStats::buildEvent = schedule(getTimeDif($dtStats::buildSetTime),0,"lStatsCycle",1,1);
|
$dtStats::buildEvent = schedule(getTimeDif($dtStats::buildSetTime),0,"compileStats");
|
||||||
$dtStats::building = 0;
|
$dtStats::building = 0;
|
||||||
if(isFile("serverStats/saveVars.cs"))
|
if(isFile("serverStats/saveVars.cs"))
|
||||||
exec("serverStats/saveVars.cs");
|
exec("serverStats/saveVars.cs");
|
||||||
|
|
@ -13006,3 +13016,6 @@ function testVarsRandomAll(%max){
|
||||||
//
|
//
|
||||||
// 9.3
|
// 9.3
|
||||||
// Stat format change for flag cap times, they now start at 0
|
// Stat format change for flag cap times, they now start at 0
|
||||||
|
//
|
||||||
|
// 9.4
|
||||||
|
// Added compileStats function and active compile check
|
||||||
Loading…
Add table
Add a link
Reference in a new issue