//=============================================================================
// sgHomingBeacon
//=============================================================================
class sgHomingBeacon extends sgBuilding;

simulated event Timer()
{

	Super.Timer();

	if ( SCount > 0 || Role != ROLE_Authority )
        	return;

}



simulated function FinishBuilding()
{
    local int i;
    local sgMeshFX newFX;
    local vector spawnLocation;

    if ( Role == ROLE_Authority )
        Spawn(class'sgFlash');

    if ( Level.NetMode == NM_DedicatedServer )
        return;

    spawnLocation = Location;
    spawnLocation.Z -= 20;
    if ( myFX == None && Model != None )
        for ( i = 0; i < numOfMFX; i++ )
        {
            newFX = Spawn(class'sgMeshFX', Self,,spawnLocation,rotator(vect(0,0,0)));
            newFX.NextFX = myFX;
            myFX = newFX;
            myFX.Mesh = Model;
            myFX.DrawScale = DSofMFX;
            myFX.RotationRate.Pitch = MFXrotX.Pitch*FRand();
            myFX.RotationRate.Roll = MFXrotX.Roll*FRand();
            myFX.RotationRate.Yaw = MFXrotX.Yaw*FRand();
        }
	TweenAnim('Open', 0.1);
	Self.AmbientSound=Sound'Botpack.Translocator.targethum';
}

defaultproperties
{
    BuildingName="Homing Beacon"
    BuildCost=100
    UpgradeCost=25
    BuildTime=5.00
    MaxEnergy=5000.00
    SpriteScale=0.30
    Model=LodMesh'Botpack.Module'
    SkinRedTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSkinTeam0'
    SkinBlueTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSkinTeam1'
    SpriteRedTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam0'
    SpriteBlueTeam=Texture'SiegeUltimateRC7UB01Media.U.BuildingMaps.ProtectorSpriteTeam1'
    MFXrotX=(Pitch=0,Yaw=20000,Roll=0),
    AmbientGlow=30
    MultiSkins(0)=Texture'SiegeUltimateRC7UB01Media.GFX.sgContSpriteT0'
    MultiSkins(1)=Texture'SiegeUltimateRC7UB01Media.GFX.sgContSpriteT1'
    MultiSkins(2)=Texture'SiegeUltimateRC7UB01Media.GFX.sgContSpriteT2'
    MultiSkins(3)=Texture'SiegeUltimateRC7UB01Media.GFX.sgContSpriteT3'
    CollisionHeight=32.00
}
