mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
20 lines
589 B
C#
20 lines
589 B
C#
|
|
// ban mortar turret from inventory in main gametypes
|
||
|
|
$InvBanList[CTF, "MortarBarrelPack"] = 1;
|
||
|
|
$InvBanList[CnH, "MortarBarrelPack"] = 1;
|
||
|
|
$InvBanList[Siege, "MortarBarrelPack"] = 1;
|
||
|
|
|
||
|
|
package noMortarTurret {
|
||
|
|
|
||
|
|
// if a mortar turret somehow makes it into the game, keep it from working
|
||
|
|
function TurretData::selectTarget(%this, %turret) {
|
||
|
|
if( %turret.initialBarrel !$= "MortarBarrelLarge" ) {
|
||
|
|
Parent::selectTarget(%this, %turret);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
// Prevent package from being activated if it is already
|
||
|
|
if (!isActivePackage( noMortarTurret ))
|
||
|
|
activatePackage( noMortarTurret );
|