This commit is contained in:
ChocoTaco1 2022-08-28 12:14:56 -04:00
commit de78816458

View file

@ -17,8 +17,7 @@ $AntiPackIncludeShield = 0;
// Called in GetCounts.cs // Called in GetCounts.cs
function CheckAntiPack(%game) function CheckAntiPack(%game)
{ {
//CTF only if($Host::AntiPackEnable)
if($Host::AntiPackEnable && $CurrentMissionType $= "DM" || $CurrentMissionType $= "CTF")
{ {
//echo("TotalTeamPlayerCount " @ $TotalTeamPlayerCount); //echo("TotalTeamPlayerCount " @ $TotalTeamPlayerCount);
//echo("AntiPackPlayerCount " @ $Host::AntiPackPlayerCount); //echo("AntiPackPlayerCount " @ $Host::AntiPackPlayerCount);
@ -35,7 +34,6 @@ function CheckAntiPack(%game)
$AntiPackStatus = "OFF"; $AntiPackStatus = "OFF";
} }
} }
//All other cases outside of CTF
else else
{ {
if($AntiPackStatus !$= "ACTIVEOFF") if($AntiPackStatus !$= "ACTIVEOFF")
@ -146,20 +144,17 @@ function DefaultGame::gameOver(%game)
{ {
Parent::gameOver(%game); Parent::gameOver(%game);
if($Host::AntiPackEnable) if($InvBanList[CTF, "CloakingPack"])
{ $InvBanList[CTF, "CloakingPack"] = 0;
if($InvBanList[CTF, "CloakingPack"]) if(isActivePackage(AntiPackCloak))
$InvBanList[CTF, "CloakingPack"] = 0; deactivatePackage(AntiPackCloak);
if(isActivePackage(AntiPackCloak))
deactivatePackage(AntiPackCloak);
if($InvBanList[CTF, "ShieldPack"]) if($InvBanList[CTF, "ShieldPack"])
$InvBanList[CTF, "ShieldPack"] = 0; $InvBanList[CTF, "ShieldPack"] = 0;
if(isActivePackage(AntiPackShield)) if(isActivePackage(AntiPackShield))
deactivatePackage(AntiPackShield); deactivatePackage(AntiPackShield);
$AntiPackStatus = "OFF"; $AntiPackStatus = "OFF";
}
} }
}; };