Format change

This commit is contained in:
ChocoTaco 2021-06-08 13:47:42 -04:00
parent f42f580e15
commit f1def5318a

View file

@ -14,7 +14,7 @@
//-----------Settings------------ //-----------Settings------------
//Notes score ui width is 592 //Notes score ui width is 592
$dtStats::version = 9.2; $dtStats::version = 9.3;
//disable stats system //disable stats system
$dtStats::Enable = 1; $dtStats::Enable = 1;
//enable disable map stats //enable disable map stats
@ -2473,14 +2473,14 @@ package dtStatsGame{
if(%clTeam == 1){ if(%clTeam == 1){
$dtStats::teamOneCapCount++; $dtStats::teamOneCapCount++;
if($dtStats::teamOneCapCount == 1) if($dtStats::teamOneCapCount == 1)
$dtStats::teamOneCapTimes = cropFloat(%time,1); $dtStats::teamOneCapTimes = 0 @ "," @ cropFloat(%time,1);
else else
$dtStats::teamOneCapTimes = $dtStats::teamOneCapTimes @ "," @ cropFloat(%time,1); $dtStats::teamOneCapTimes = $dtStats::teamOneCapTimes @ "," @ cropFloat(%time,1);
} }
else{ else{
$dtStats::teamTwoCapCount++; $dtStats::teamTwoCapCount++;
if($dtStats::teamTwoCapCount == 1) if($dtStats::teamTwoCapCount == 1)
$dtStats::teamTwoCapTimes = cropFloat(%time,1); $dtStats::teamTwoCapTimes = 0 @ "," @ cropFloat(%time,1);
else else
$dtStats::teamTwoCapTimes = $dtStats::teamTwoCapTimes @ "," @ cropFloat(%time,1); $dtStats::teamTwoCapTimes = $dtStats::teamTwoCapTimes @ "," @ cropFloat(%time,1);
} }
@ -2590,14 +2590,14 @@ package dtStatsGame{
if(%clTeam == 1){ if(%clTeam == 1){
$dtStats::teamOneCapCount++; $dtStats::teamOneCapCount++;
if($dtStats::teamOneCapCount == 1) if($dtStats::teamOneCapCount == 1)
$dtStats::teamOneCapTimes = cropFloat(%time,1); $dtStats::teamOneCapTimes = 0 @ "," @ cropFloat(%time,1);
else else
$dtStats::teamOneCapTimes = $dtStats::teamOneCapTimes @ "," @ cropFloat(%time,1); $dtStats::teamOneCapTimes = $dtStats::teamOneCapTimes @ "," @ cropFloat(%time,1);
} }
else{ else{
$dtStats::teamTwoCapCount++; $dtStats::teamTwoCapCount++;
if($dtStats::teamTwoCapCount == 1) if($dtStats::teamTwoCapCount == 1)
$dtStats::teamTwoCapTimes = cropFloat(%time,1); $dtStats::teamTwoCapTimes = 0 @ "," @ cropFloat(%time,1);
else else
$dtStats::teamTwoCapTimes = $dtStats::teamTwoCapTimes @ "," @ cropFloat(%time,1); $dtStats::teamTwoCapTimes = $dtStats::teamTwoCapTimes @ "," @ cropFloat(%time,1);
} }
@ -12991,4 +12991,7 @@ function testVarsRandomAll(%max){
// 9.2 // 9.2
// Added a delay for server crash to be able to report it to the bot on server start // Added a delay for server crash to be able to report it to the bot on server start
// Fix Cap timers a 3rd time // Fix Cap timers a 3rd time
// Server crash messsage fix // Server crash messsage fix
//
// 9.3
// Stat format change for flag cap times, they now start at 0