From d93e6b7dc65326397d2368d43ddeb616ec42100b Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Fri, 8 Feb 2019 17:29:56 -0500 Subject: [PATCH] Added outside CTF reset --- Classic/scripts/autoexec/AntiCloak.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Classic/scripts/autoexec/AntiCloak.cs b/Classic/scripts/autoexec/AntiCloak.cs index 3b11219..4ae1e72 100644 --- a/Classic/scripts/autoexec/AntiCloak.cs +++ b/Classic/scripts/autoexec/AntiCloak.cs @@ -25,7 +25,7 @@ function ActivateAntiCloak( %game ) $AntiCloakRunOnce = 0; } } - //All other cases it is. + //Off else { if( $AntiCloakRunOnce !$= 1 ) @@ -38,7 +38,20 @@ function ActivateAntiCloak( %game ) $AntiCloakRunOnce = 1; } } - } + } + //All other cases outside of CTF. + else + { + if( $AntiCloakRunOnce !$= 1 ) + { + $InvBanList[CTF, "CloakingPack"] = 0; + + if(isActivePackage(DisableCloakPack)) + deactivatePackage(DisableCloakPack); + + $AntiCloakRunOnce = 1; + } + } } //So if the player is able to get a cloakpack, he cant use it