Took out mortarbarrel code

This commit is contained in:
ChocoTaco 2019-01-22 01:47:29 -05:00
parent 76ced50e40
commit e82d3015d5

View file

@ -1,32 +1,20 @@
//Amount of players on a team to enable turrets
//$Host::EnableTurretPlayerCount = 10;
// Amount of players on a team to enable turrets
// $Host::EnableTurretPlayerCount = 10;
//
//Disable MortarTurret
//$Host::EnableMortarTurret = 0;
//
//Disable = 0
//Enable = 1
package antiTurret
{
function TurretData::selectTarget(%this, %turret)
{
if( !$Host::TournamentMode && $TotalTeamPlayerCount < $Host::EnableTurretPlayerCount )
{
%turret.clearTarget();
}
else if( $Host::EnableMortarTurret )
else
{
Parent::selectTarget(%this, %turret);
}
//No possibility of mortar turret working if map already has it and its banned.
else if( %turret.initialBarrel !$= "MortarBarrelLarge" )
{
Parent::selectTarget(%this, %turret);
parent::selectTarget(%this, %turret);
}
}
};