class NukeDust expands Effects;

#exec MESH IMPORT MESH=NukeDust ANIVFILE=MODELS\NukeDust_a.3d DATAFILE=MODELS\NukeDust_d.3d X=0 Y=0 Z=0
#exec MESH LODPARAMS MESH=NukeDust STRENGTH=0.0
#exec MESH ORIGIN MESH=NukeDust X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=NukeDust SEQ=All STARTFRAME=0 NUMFRAMES=3
#exec MESH SEQUENCE MESH=NukeDust SEQ=Collapse STARTFRAME=0 NUMFRAMES=2 RATE=0.5
#exec MESH SEQUENCE MESH=NukeDust SEQ=Expand STARTFRAME=1 NUMFRAMES=2 RATE=0.5
#exec MESH SEQUENCE MESH=NukeDust SEQ=Big STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=NukeDust SEQ=Little STARTFRAME=1 NUMFRAMES=1

#exec MESHMAP NEW MESHMAP=NukeDust MESH=NukeDust
#exec MESHMAP SCALE MESHMAP=NukeDust X=20.0 Y=20.0 Z=16.0

var() texture RndSmoke[22];

simulated function PostBeginPlay()
{
local int i;

	Super.PostBeginPlay();
	PlayAnim('Expand', 0.25, 0.0);

	For(i=0; i<8; i++)
		MultiSkins[i] = RndSmoke[Min(21, Rand(22))];

}

simulated function Tick( float DeltaTime)
{
	DrawScale = (Default.LifeSpan - LifeSpan) * Default.DrawScale / Default.LifeSpan;
	ScaleGlow = LifeSpan * Default.ScaleGlow / Default.LifeSpan;
}

defaultproperties
{
	DrawType=DT_Mesh
	Mesh=NukeDust
	LifeSpan=6.000000
	DrawScale=140.000000
	bNetTemporary=True
	Texture=Smoke_01
	RemoteRole=ROLE_SimulatedProxy
	RndSmoke(0)=Smoke_01
	RndSmoke(1)=TranslucentInvisible
	RndSmoke(2)=TranslucentInvisible
	RndSmoke(3)=Smoke_02
	RndSmoke(4)=TranslucentInvisible
	RndSmoke(5)=TranslucentInvisible
	RndSmoke(6)=Smoke_03
	RndSmoke(7)=TranslucentInvisible
	RndSmoke(8)=TranslucentInvisible
	RndSmoke(9)=Smoke_04
	RndSmoke(10)=TranslucentInvisible
	RndSmoke(11)=TranslucentInvisible
	RndSmoke(12)=Smoke_05
	RndSmoke(13)=TranslucentInvisible
	RndSmoke(14)=TranslucentInvisible
	RndSmoke(15)=Smoke_06
	RndSmoke(16)=TranslucentInvisible
	RndSmoke(17)=TranslucentInvisible
	RndSmoke(18)=Smoke_07
	RndSmoke(19)=TranslucentInvisible
	RndSmoke(20)=TranslucentInvisible
	RndSmoke(21)=Smoke_08
	MultiSkins(0)=Smoke_01
	MultiSkins(1)=Smoke_01
	MultiSkins(2)=Smoke_01
	MultiSkins(3)=Smoke_01
	MultiSkins(4)=Smoke_01
	MultiSkins(5)=Smoke_01
	MultiSkins(6)=Smoke_01
	MultiSkins(7)=Smoke_01
	Style=STY_Translucent
	bParticles=True
	bRandomFrame=True
	ScaleGlow=1.750000
}
