//=============================================================================
// sgItemSpeed
// nOs*Badger
//=============================================================================

class sgItemSpeed extends sgItem;

function Inventory GiveItem(Pawn target)
{
    local sgSpeed speed;
	local Inventory OtherSuits;
	
	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);
		}
	
    speed = sgSpeed(Super.GiveItem(target));
    return speed;
}



simulated function FinishBuilding()
{
	SpriteScale=0.2;
 	Super.FinishBuilding();
}

defaultproperties
{
    InventoryClass=Class'sgSpeed'
    BuildingName="Speed"
    BuildCost=650
    MaxEnergy=1500.00
    SpriteScale=0.30
    Model=LodMesh'Botpack.ArrowStud'
    SkinRedTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.SuperProtectorSkinT0'
    SkinBlueTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.SuperProtectorSkinT1'
    SkinGreenTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.SuperProtectorSkinT2'
    SkinYellowTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.SuperProtectorSkinT3'
    SpriteRedTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam0'
    SpriteBlueTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam1'
    SpriteGreenTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam2'
    SpriteYellowTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam3'
    MFXrotX=(Pitch=0,Yaw=90000,Roll=0),
    
    bNoUpgrade=True
}
