mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
dtStats 10.58
This commit is contained in:
parent
7c90a2bee0
commit
054df32043
|
|
@ -15,7 +15,7 @@
|
|||
// Note See bottom of file for full log
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//-----------Settings-----------
|
||||
$dtStats::version = 10.57;
|
||||
$dtStats::version = 10.58;
|
||||
//disable stats system
|
||||
$dtStats::Enable = $Host::dtStatsEnable $= "" ? ($Host::dtStatsEnable = 1) : $Host::dtStatsEnable;
|
||||
if(!$dtStats::Enable){ return;}// so it disables with a restart
|
||||
|
|
@ -28,17 +28,22 @@ $dtStats::midAirHeight = 10;
|
|||
|
||||
//only enable if evo system is not available
|
||||
$dtStats::midAirMessage = $Host::dtStatsMidAirMessage $= "" ? ($Host::dtStatsMidAirMessage = 1) : $Host::dtStatsMidAirMessage;
|
||||
|
||||
$dtStats::midAirMessage = isFile("scripts/autoexec/MidairDetection.cs") == 0 ? $dtStats::midAirMessage : 0;
|
||||
//capture best cap times restart required if changed
|
||||
//only enable if evo system is not available
|
||||
$dtStats::ctfTimes = $Host::dtStatsCTFTimes $= "" ? ($Host::dtStatsCTFTimes = 1) : $Host::dtStatsCTFTimes;
|
||||
$dtStats::ctfTimes = $Host::ClassicEvoStats $= "" ? $dtStats::ctfTimes : 0;
|
||||
|
||||
//number of players before it starts counting captimes
|
||||
$dtStats::ctfTimesPlayerLimit = $Host::dtStatsCTFTimesPlayerLimit $= "" ? ($Host::dtStatsCTFTimesPlayerLimit = 8) : $Host::dtStatsCTFTimesPlayerLimit;
|
||||
|
||||
//converts the debrief into easer to read teams for ctf and lctf
|
||||
$dtStats::teamDebrief = $Host::dtStatsTeamDebrief $= "" ? ($Host::dtStatsTeamDebrief = 1) : $Host::dtStatsTeamDebrief;
|
||||
$dtStats::teamDebrief = isFile("scripts/autoexec/EvoStats.cs") == 0 ? $dtStats::teamDebrief : 0;
|
||||
|
||||
//extends the debrief with extra stats done in the evo style
|
||||
$dtStats::evoStyleDebrief = $Host::dtStatsEvoStyleDebrief $= "" ? ($Host::dtStatsEvoStyleDebrief = 1) : $Host::dtStatsEvoStyleDebrief ;
|
||||
$dtStats::evoStyleDebrief = isFile("scripts/autoexec/EvoStats.cs") == 0 ? $dtStats::evoStyleDebrief : 0;
|
||||
|
||||
|
||||
// 30 sec min after not making an action reset
|
||||
|
|
@ -3028,7 +3033,7 @@ package dtStats{
|
|||
|
||||
function CTFGame::awardScoreFlagCap(%game, %cl, %flag){
|
||||
parent::awardScoreFlagCap(%game, %cl, %flag);
|
||||
%cl.dtStats.stat["flagCaps"] = %cl.flagCaps;
|
||||
%cl.dtStats.stat["flagCaps"]++;
|
||||
dtMinMax("flagCaps", "flag", 1, %cl.dtStats.stat["flagCaps"], %cl);
|
||||
}
|
||||
function CTFGame::awardScoreFlagTouch(%game, %cl, %flag){
|
||||
|
|
@ -3228,7 +3233,7 @@ package dtStats{
|
|||
}
|
||||
function LCTFGame::awardScoreFlagCap(%game, %cl, %flag){
|
||||
parent::awardScoreFlagCap(%game, %cl, %flag);
|
||||
%cl.dtStats.stat["flagCaps"] = %cl.flagCaps;
|
||||
%cl.dtStats.stat["flagCaps"]++;
|
||||
dtMinMax("flagCaps", "flag", 1, %cl.dtStats.stat["flagCaps"], %cl);
|
||||
}
|
||||
function LCTFGame::awardScoreFlagTouch(%game, %cl, %flag){
|
||||
|
|
@ -3283,7 +3288,7 @@ package dtStats{
|
|||
}
|
||||
function SCtFGame::awardScoreFlagCap(%game, %cl, %flag){
|
||||
parent::awardScoreFlagCap(%game, %cl, %flag);
|
||||
%cl.dtStats.stat["flagCaps"] = %cl.flagCaps;
|
||||
%cl.dtStats.stat["flagCaps"]++;
|
||||
dtMinMax("flagCaps", "flag", 1, %cl.dtStats.stat["flagCaps"], %cl);
|
||||
}
|
||||
function SCtFGame::awardScoreFlagTouch(%game, %cl, %flag){
|
||||
|
|
|
|||
Loading…
Reference in a new issue