mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-25 08:53:34 +00:00
20 lines
No EOL
477 B
C#
20 lines
No EOL
477 B
C#
//Amount of players on a team to enable turrets
|
|
//$Host::EnableTurretPlayerCount = 10;
|
|
|
|
package antiTurret {
|
|
|
|
function TurretData::selectTarget(%this, %turret)
|
|
{
|
|
if( !$Host::TournamentMode && $TotalTeamPlayerCount < $Host::EnableTurretPlayerCount ) {
|
|
%turret.clearTarget();
|
|
}
|
|
else {
|
|
Parent::selectTarget(%this, %turret);
|
|
}
|
|
}
|
|
|
|
};
|
|
|
|
// Prevent package from being activated if it is already
|
|
if (!isActivePackage(antiTurret))
|
|
activatePackage(antiTurret); |