//=============================================================================
// sgItemJetpack.
//=============================================================================
class sgItemJetpack extends sgItem;

function Inventory GiveItem(Pawn target)
{
    local Jetpack pack;
	local Inventory OtherSuits;

    pack = Jetpack(Super.GiveItem(target));
    if ( pack != None )
    {
		OtherSuits = Pawn(Owner).FindInventoryType(class'WildcardsMetalSuit');
		if ( OtherSuits != none )
			OtherSuits.destroy();

		OtherSuits = Pawn(Owner).FindInventoryType(class'WildcardsRubberSuit');
		if ( OtherSuits != none )
			OtherSuits.destroy();
		
		OtherSuits = Pawn(Owner).FindInventoryType(class'sgShrinkerTimer');
		if ( OtherSuits != none )
		{
			sgShrinkerTimer(OtherSuits).ResizeWeapons(false);
			OtherSuits.destroy();

			target.DrawScale = target.default.DrawScale;

			target.SetCollisionSize(target.default.CollisionRadius, target.default.CollisionHeight);
		}

        pack.MaxFuel = pack.default.MaxFuel * (Grade/4 + 1);
		pack.Fuel = pack.MaxFuel;
    }
    return pack;
}

defaultproperties
{
    InventoryClass=Class'JetPack'
    BuildingName="Jetpack"
    BuildCost=650
    UpgradeCost=20
    MaxEnergy=1500.00
    Model=LodMesh'UnrealI.AsbSuit'
    SkinRedTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.SuperContainerSkinT0'
    SkinBlueTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.SuperContainerSkinT1'
    SkinGreenTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.SuperContainerSkinT2'
    SkinYellowTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.SuperContainerSkinT3'
    SpriteRedTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam0'
    SpriteBlueTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam1'
    SpriteGreenTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam2'
    SpriteYellowTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam3'
}
