//=============================================================================
// sgSuperHealthPod.
//=============================================================================
class sgHealthPodXXL extends sgEquipmentSupplier;


//simulated event Timer()
//{
//	local sgBaseCore building;
//	Super.Timer();
//	foreach RadiusActors(class'sgBaseCore', building, 224+16*Grade)
//		if ( FRand() <= 0.5 + Grade/5 && building.Team == Team)
//			    building.Energy = FMin(building.Energy + Grade/5,building.MaxEnergy);
//
//}




function Supply(Pawn target)
{
	local Inventory inv;
	
	if (bDisabledByEMP){return;}

    inv = target.FindInventoryType(class'sgArmor');
    if ( inv == None )
    {
        inv = Spawn(class'sgArmor', target);
        if ( inv != None )
            inv.GiveTo(target);
    }
    if ( inv != None && FRand() < 0.5 + (Grade/15) && inv.Charge < 50 +
      Grade*25 )
        inv.Charge = FMin(inv.Charge + 1, 50 + grade * 25 );
	
	if ( FRand() < 2 + (Grade/40) && Target.Health < 75 + (grade*15) )
        Target.Health = Target.Health + 1;
	
	if ( FRand() < 0.5 )
        Target.PlaySound(sound'SiegeUltimateRC7UB01Media.sgStockUp', SLOT_Misc,
          Target.SoundDampening*2.5);
}


defaultproperties
{
    bSuperSupplier=True
    SupplyRadius=72.00
    BuildingName="Super Health Pod"
    BuildCost=1500
    UpgradeCost=40
    BuildTime=60.00
    MaxEnergy=30000.00
    SpriteScale=0.48
    Model=LodMesh'Botpack.BigSprocket'
    SkinRedTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.BoosterSkinTeam0'
    SkinBlueTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.BoosterSkinTeam1'
    SkinGreenTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.BoosterSkinTeam2'
    SkinYellowTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.BoosterSkinTeam3'
    SpriteRedTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.HealthPodSkinT0'
    SpriteBlueTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.HealthPodSkinT1'
    SpriteGreenTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.HealthPodSkinT2'
    SpriteYellowTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.HealthPodSkinT3'
    DSofMFX=1.25
    MFXrotX=(Pitch=30000,Yaw=30000,Roll=30000),
    MultiSkins(0)=Texture'SiegeUltimateRC7UB01Media.GFX.sgSupSpriteT0'
    MultiSkins(1)=Texture'SiegeUltimateRC7UB01Media.GFX.sgSupSpriteT1'
    MultiSkins(2)=Texture'SiegeUltimateRC7UB01Media.GFX.sgSupSpriteT2'
    MultiSkins(3)=Texture'SiegeUltimateRC7UB01Media.GFX.sgSupSpriteT3'
}
