mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 08:04:39 +00:00
Took out mortarbarrel code
This commit is contained in:
parent
76ced50e40
commit
e82d3015d5
1 changed files with 4 additions and 16 deletions
|
|
@ -1,32 +1,20 @@
|
||||||
//Amount of players on a team to enable turrets
|
// Amount of players on a team to enable turrets
|
||||||
//$Host::EnableTurretPlayerCount = 10;
|
// $Host::EnableTurretPlayerCount = 10;
|
||||||
//
|
//
|
||||||
//Disable MortarTurret
|
|
||||||
//$Host::EnableMortarTurret = 0;
|
|
||||||
//
|
|
||||||
//Disable = 0
|
|
||||||
//Enable = 1
|
|
||||||
|
|
||||||
package antiTurret
|
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 if( $Host::EnableMortarTurret )
|
else
|
||||||
{
|
{
|
||||||
Parent::selectTarget(%this, %turret);
|
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue