mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Update zDarkTigerStats.cs
This commit is contained in:
parent
116e6f9061
commit
7e894284c5
1 changed files with 16 additions and 4 deletions
|
|
@ -167,10 +167,15 @@
|
||||||
// Removed lockout schedule on chain kills, left the multi kill one in as its kind of nessaary in how it functions
|
// Removed lockout schedule on chain kills, left the multi kill one in as its kind of nessaary in how it functions
|
||||||
// Renamed mid air distance vars to know at a glance how its tracking, Ex: instead of cgMaDist renamed to cgMAHitDist
|
// Renamed mid air distance vars to know at a glance how its tracking, Ex: instead of cgMaDist renamed to cgMAHitDist
|
||||||
// Fixed land spike turret stats
|
// Fixed land spike turret stats
|
||||||
|
//
|
||||||
|
// 7.7
|
||||||
|
// Added teamScore to player game files for correct team scores
|
||||||
|
// KDR adjustment
|
||||||
|
// Adjusted cleanup function
|
||||||
|
|
||||||
//-----------Settings------------
|
//-----------Settings------------
|
||||||
//Notes score ui width is 592
|
//Notes score ui width is 592
|
||||||
$dtStats::version = 7.6;
|
$dtStats::version = 7.7;
|
||||||
//disable stats system
|
//disable stats system
|
||||||
$dtStats::Enable = 1;
|
$dtStats::Enable = 1;
|
||||||
//enable disable map stats
|
//enable disable map stats
|
||||||
|
|
@ -423,6 +428,7 @@ $dtStats::FV[$dtStats::FC["CTFGame","TG"]++,"CTFGame","TG"] = "PulseSensorDep";
|
||||||
$dtStats::FV[$dtStats::FC["CTFGame","TG"]++,"CTFGame","TG"] = "InventoryDep";
|
$dtStats::FV[$dtStats::FC["CTFGame","TG"]++,"CTFGame","TG"] = "InventoryDep";
|
||||||
$dtStats::FV[$dtStats::FC["CTFGame","TG"]++,"CTFGame","TG"] = "TurretOutdoorDep";
|
$dtStats::FV[$dtStats::FC["CTFGame","TG"]++,"CTFGame","TG"] = "TurretOutdoorDep";
|
||||||
$dtStats::FV[$dtStats::FC["CTFGame","TG"]++,"CTFGame","TG"] = "TurretIndoorDep";
|
$dtStats::FV[$dtStats::FC["CTFGame","TG"]++,"CTFGame","TG"] = "TurretIndoorDep";
|
||||||
|
$dtStats::FV[$dtStats::FC["CTFGame","Game"]++,"CTFGame","Game"] = "teamScore";
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//Unused vars needed for stats back up
|
//Unused vars needed for stats back up
|
||||||
|
|
@ -505,6 +511,7 @@ $dtStats::FV[$dtStats::FC["SCtFGame","Avg"]++,"SCtFGame","Avg"] = "winLostPct";
|
||||||
$dtStats::FV[$dtStats::FC["SCtFGame","Game"]++,"SCtFGame","Game"] = "dtTeam";
|
$dtStats::FV[$dtStats::FC["SCtFGame","Game"]++,"SCtFGame","Game"] = "dtTeam";
|
||||||
$dtStats::FV[$dtStats::FC["SCtFGame","TG"]++,"SCtFGame","TG"] = "destruction";
|
$dtStats::FV[$dtStats::FC["SCtFGame","TG"]++,"SCtFGame","TG"] = "destruction";
|
||||||
$dtStats::FV[$dtStats::FC["SCtFGame","TG"]++,"SCtFGame","TG"] = "repairs";
|
$dtStats::FV[$dtStats::FC["SCtFGame","TG"]++,"SCtFGame","TG"] = "repairs";
|
||||||
|
$dtStats::FV[$dtStats::FC["SCtFGame","Game"]++,"SCtFGame","Game"] = "teamScore";
|
||||||
////////////////////////////Unused LCTF Vars/////////////////////////////////////
|
////////////////////////////Unused LCTF Vars/////////////////////////////////////
|
||||||
$dtStats::uGFV[$dtStats::uGFC["SCtFGame"]++,"SCtFGame"] = "tkDestroys";
|
$dtStats::uGFV[$dtStats::uGFC["SCtFGame"]++,"SCtFGame"] = "tkDestroys";
|
||||||
$dtStats::uGFV[$dtStats::uGFC["SCtFGame"]++,"SCtFGame"] = "genDestroys";
|
$dtStats::uGFV[$dtStats::uGFC["SCtFGame"]++,"SCtFGame"] = "genDestroys";
|
||||||
|
|
@ -561,6 +568,7 @@ $dtStats::FVG[$dtStats::FCG["ArenaGame","TG"]++,"ArenaGame","TG"] = "assists";
|
||||||
$dtStats::FVG[$dtStats::FCG["ArenaGame","TG"]++,"ArenaGame","TG"] = "roundKills";
|
$dtStats::FVG[$dtStats::FCG["ArenaGame","TG"]++,"ArenaGame","TG"] = "roundKills";
|
||||||
$dtStats::FVG[$dtStats::FCG["ArenaGame","TG"]++,"ArenaGame","TG"] = "hatTricks";
|
$dtStats::FVG[$dtStats::FCG["ArenaGame","TG"]++,"ArenaGame","TG"] = "hatTricks";
|
||||||
$dtStats::FV[$dtStats::FC["ArenaGame","Game"]++,"ArenaGame","Game"] = "dtTeam";
|
$dtStats::FV[$dtStats::FC["ArenaGame","Game"]++,"ArenaGame","Game"] = "dtTeam";
|
||||||
|
$dtStats::FV[$dtStats::FC["ArenaGame","Game"]++,"ArenaGame","Game"] = "teamScore";
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// SiegeGame
|
// SiegeGame
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
@ -3801,7 +3809,7 @@ function DefaultGame::postGameStats(%game,%dtStats){ //stats to add up at the en
|
||||||
if(!isObject(%dtStats))
|
if(!isObject(%dtStats))
|
||||||
return;
|
return;
|
||||||
%dtStats.null = getRandom(1,100);
|
%dtStats.null = getRandom(1,100);
|
||||||
%dtStats.kdr = (%dtStats.kills / (%dtStats.deaths ? %dtStats.deaths : 1));
|
%dtStats.kdr = %dtStats.deaths ? (%dtStats.kills/%dtStats.deaths) : %dtStats.kills;
|
||||||
if(statsGroup.lastKill == %dtStats)
|
if(statsGroup.lastKill == %dtStats)
|
||||||
%dtStats.lastKill = 1;
|
%dtStats.lastKill = 1;
|
||||||
|
|
||||||
|
|
@ -3935,6 +3943,8 @@ function DefaultGame::postGameStats(%game,%dtStats){ //stats to add up at the en
|
||||||
|
|
||||||
|
|
||||||
if(%game.class $= "CTFGame" || %game.class $= "SCtFGame"){
|
if(%game.class $= "CTFGame" || %game.class $= "SCtFGame"){
|
||||||
|
%dtStats.teamScore = $TeamScore[%dtStats.team];
|
||||||
|
|
||||||
%dtStats.destruction = %dtStats.genDestroys +
|
%dtStats.destruction = %dtStats.genDestroys +
|
||||||
%dtStats.solarDestroys +
|
%dtStats.solarDestroys +
|
||||||
%dtStats.sensorDestroys +
|
%dtStats.sensorDestroys +
|
||||||
|
|
@ -3984,6 +3994,8 @@ function DefaultGame::postGameStats(%game,%dtStats){ //stats to add up at the en
|
||||||
}
|
}
|
||||||
else if(%game.class $= "LakRabbitGame")
|
else if(%game.class $= "LakRabbitGame")
|
||||||
%dtStats.flagTimeMin = (%dtStats.flagTimeMS / 1000)/60;
|
%dtStats.flagTimeMin = (%dtStats.flagTimeMS / 1000)/60;
|
||||||
|
else if(%game.class $= "ArenaGame")
|
||||||
|
%dtStats.teamScore = $TeamScore[%dtStats.team];
|
||||||
}
|
}
|
||||||
|
|
||||||
function isGameRun(){//
|
function isGameRun(){//
|
||||||
|
|
@ -11296,7 +11308,7 @@ function dtCleanUp(%force){
|
||||||
%gcCM = getField(%gameCountLine,6);
|
%gcCM = getField(%gameCountLine,6);
|
||||||
%gcPM = getField(%gameCountLine,5);
|
%gcPM = getField(%gameCountLine,5);
|
||||||
%gc = (%gcCM > %gcPM) ? %gcCM : %gcPM;
|
%gc = (%gcCM > %gcPM) ? %gcCM : %gcPM;
|
||||||
%extraDays = mCeil((%gc * $dtStats::expireFactor[%game]) + $dtStats::expireMin);
|
%extraDays = mCeil((%gc * $dtStats::expireFactor[%game]));
|
||||||
//error(%extraDays SPC %dayCount);
|
//error(%extraDays SPC %dayCount);
|
||||||
if(%dayCount > %extraDays || %dayCount > $dtStats::expireMax){
|
if(%dayCount > %extraDays || %dayCount > $dtStats::expireMax){
|
||||||
if($dtStats::sm || %force){
|
if($dtStats::sm || %force){
|
||||||
|
|
@ -11305,12 +11317,12 @@ function dtCleanUp(%force){
|
||||||
schedule(%v++ * 500,0,"deleteFile",%filepath);
|
schedule(%v++ * 500,0,"deleteFile",%filepath);
|
||||||
%oldFileCount++;
|
%oldFileCount++;
|
||||||
}
|
}
|
||||||
%gPath = strreplace(%filepath,"t.cs","g.cs");
|
|
||||||
%mPath = strreplace(%filepath,"t.cs","m.cs");
|
%mPath = strreplace(%filepath,"t.cs","m.cs");
|
||||||
if(isFile(%mPath)){
|
if(isFile(%mPath)){
|
||||||
schedule(%v++ * 500,0,"deleteFile",%mPath);
|
schedule(%v++ * 500,0,"deleteFile",%mPath);
|
||||||
%oldFileCount++;
|
%oldFileCount++;
|
||||||
}
|
}
|
||||||
|
%gPath = strreplace(%filepath,"t.cs","g.cs");
|
||||||
if(isFile(%gPath)){
|
if(isFile(%gPath)){
|
||||||
schedule(%v++ * 500,0,"deleteFile",%gPath);
|
schedule(%v++ * 500,0,"deleteFile",%gPath);
|
||||||
%oldFileCount++;
|
%oldFileCount++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue