mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Formatting
This commit is contained in:
parent
f0893c48db
commit
37b085f8c8
|
|
@ -17,22 +17,14 @@ package AntiTurret
|
||||||
|
|
||||||
function TurretData::selectTarget(%this, %turret)
|
function TurretData::selectTarget(%this, %turret)
|
||||||
{
|
{
|
||||||
if( !$Host::TournamentMode && $TotalTeamPlayerCount < $Host::EnableTurretPlayerCount )
|
if(!$Host::TournamentMode && $TotalTeamPlayerCount < $Host::EnableTurretPlayerCount)
|
||||||
{
|
|
||||||
%turret.clearTarget();
|
%turret.clearTarget();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//All turret types can fire
|
if($Host::EnableMortarTurret) //All turret types can fire
|
||||||
if( $Host::EnableMortarTurret )
|
|
||||||
{
|
|
||||||
parent::selectTarget(%this, %turret);
|
parent::selectTarget(%this, %turret);
|
||||||
}
|
else if(%turret.initialBarrel !$= "MortarBarrelLarge") //Only non-MortarTurret types can fire
|
||||||
//Only non-MortarTurret types can fire
|
|
||||||
else if( %turret.initialBarrel !$= "MortarBarrelLarge" )
|
|
||||||
{
|
|
||||||
parent::selectTarget(%this, %turret);
|
parent::selectTarget(%this, %turret);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue