mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +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 );
|