//=============================================================================
// NeutronRings
//=============================================================================
class NeutronRings extends Effects;

var() float ds;
var bool done1, done2;

replication
{
	// Things the server should send to the client.
	reliable if ( Role == ROLE_Authority )
		done1, done2, ds;
}

simulated function Tick(float deltaTime)
{
	local NeutronRings r;

	if ( !done1 && LifeSpan < 6.5)
	{
		r = Spawn(class'NeutronRings',,, Location+vector(rotation)*256);
		r.ds = 320;
		r.done1 = true;
		r.done2 = true;
		r = Spawn(class'NeutronRings',,, Location-vector(rotation)*512);
		r.ds = 320;
		r.done1 = true;
		r.done2 = true;
		done1 = true;
	}
	else if( !done2 && LifeSpan < 5)
	{
		r = Spawn(Class'NeutronRings',,,Location+vector(rotation)*640);
		r.ds = 280;
		r.done1 = true;
		r.done2 = true;
		r = Spawn(Class'NeutronRings',,,Location-vector(rotation)*768);
		r.ds = 280;
		r.done1 = true;
		r.done2 = true;
		done2 = true;
	}

	DrawScale = 10 + (ds * (1 - LifeSpan / default.LifeSpan));
	ScaleGlow = LifeSpan/default.LifeSpan;
	AmbientGlow = 128 * ScaleGlow;
}

defaultproperties
{
    ds=350.00
    RemoteRole=ROLE_SimulatedProxy
    LifeSpan=8.00
    Rotation=(Pitch=-8192,Yaw=0,Roll=0),
    DrawType=DT_Mesh
    Style=STY_Translucent
    Mesh=LodMesh'Botpack.UTsRingex'
    DrawScale=400.00
    AmbientGlow=128
    bUnlit=True
    MultiSkins=Texture'Botpack.Effects.BlueRing'
}
