Added outside CTF reset

This commit is contained in:
ChocoTaco 2019-02-08 17:29:56 -05:00
parent dddb677517
commit d93e6b7dc6

View file

@ -25,7 +25,7 @@ function ActivateAntiCloak( %game )
$AntiCloakRunOnce = 0; $AntiCloakRunOnce = 0;
} }
} }
//All other cases it is. //Off
else else
{ {
if( $AntiCloakRunOnce !$= 1 ) if( $AntiCloakRunOnce !$= 1 )
@ -39,6 +39,19 @@ function ActivateAntiCloak( %game )
} }
} }
} }
//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 //So if the player is able to get a cloakpack, he cant use it