mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
19 lines
452 B
C#
19 lines
452 B
C#
|
|
$TurretPlayerCount = 10; // amount of players needed on server for turrets
|
||
|
|
|
||
|
|
package antiTurret {
|
||
|
|
|
||
|
|
function TurretData::selectTarget(%this, %turret)
|
||
|
|
{
|
||
|
|
if( !$Host::TournamentMode && $TotalTeamPlayerCount < $TurretPlayerCount) {
|
||
|
|
%turret.clearTarget();
|
||
|
|
}
|
||
|
|
else {
|
||
|
|
Parent::selectTarget(%this, %turret);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
// Prevent package from being activated if it is already
|
||
|
|
if (!isActivePackage(antiTurret))
|
||
|
|
activatePackage(antiTurret);
|