class ShraliCanMuzA expands xTreadVehEffects;

#exec MESH IMPORT MESH=ShraliCanMuzA ANIVFILE=MODELS\ShraliCanMuzA_a.3d DATAFILE=MODELS\ShraliCanMuzA_d.3d X=0 Y=0 Z=0 UNMIRROR=1
#exec MESH LODPARAMS MESH=ShraliCanMuzA STRENGTH=0.5
#exec MESH ORIGIN MESH=ShraliCanMuzA X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=ShraliCanMuzA SEQ=All STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=ShraliCanMuzA SEQ=Still STARTFRAME=0 NUMFRAMES=1

#exec MESHMAP NEW MESHMAP=ShraliCanMuzA MESH=ShraliCanMuzA
#exec MESHMAP SCALE MESHMAP=ShraliCanMuzA X=0.25 Y=0.2 Z=0.4

#exec TEXTURE IMPORT NAME=ShraliMuz01 FILE=EFFECTS\ShraliMuz01.bmp GROUP=Effects FLAGS=2
#exec TEXTURE IMPORT NAME=ShraliMuz02 FILE=EFFECTS\ShraliMuz02.bmp GROUP=Effects FLAGS=2
#exec TEXTURE IMPORT NAME=ShraliMuz03 FILE=EFFECTS\ShraliMuz03.bmp GROUP=Effects FLAGS=2
#exec TEXTURE IMPORT NAME=ShraliMuz04 FILE=EFFECTS\ShraliMuz04.bmp GROUP=Effects FLAGS=2
#exec TEXTURE IMPORT NAME=ShraliMuz05 FILE=EFFECTS\ShraliMuz05.bmp GROUP=Effects FLAGS=2
#exec TEXTURE IMPORT NAME=ShraliMuz06 FILE=EFFECTS\ShraliMuz06.bmp GROUP=Effects FLAGS=2
#exec TEXTURE IMPORT NAME=ShraliMuz07 FILE=EFFECTS\ShraliMuz07.bmp GROUP=Effects FLAGS=2
#exec TEXTURE IMPORT NAME=ShraliMuz08 FILE=EFFECTS\ShraliMuz08.bmp GROUP=Effects FLAGS=2
#exec TEXTURE IMPORT NAME=ShraliMuz09 FILE=EFFECTS\ShraliMuz09.bmp GROUP=Effects FLAGS=2


var() texture MuzTex[9];

simulated function PostBeginPlay()
{
local byte i;
	
	For(i=0; i<8; i++)
		MultiSkins[i] = MuzTex[Rand(9)];

	SetTimer(0.05,True);
}

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

simulated function Timer()
{
local byte i;
	
	For(i=0; i<8; i++)
		MultiSkins[i] = MuzTex[Rand(9)];
}

defaultproperties
{
	DrawType=DT_Mesh
	Mesh=ShraliCanMuzA
	Skin=None
	LightType=LT_None
	LightBrightness=100
	LightHue=0
	LightSaturation=0
	LightEffect=LE_NonIncidence
	LightRadius=16
	Texture=ShraliMuz01
	DrawScale=2.800000
	LifeSpan=0.200000
	RemoteRole=ROLE_SimulatedProxy
	bUnlit=True
	bParticles=True
	bRandomFrame=True
	Style=STY_Translucent
	bNetTemporary=True
	ScaleGlow=5.000000
	MultiSkins(0)=ShraliMuz01
	MultiSkins(1)=ShraliMuz01
	MultiSkins(2)=ShraliMuz01
	MultiSkins(3)=ShraliMuz01
	MultiSkins(4)=ShraliMuz01
	MultiSkins(5)=ShraliMuz01
	MultiSkins(6)=ShraliMuz01
	MultiSkins(7)=ShraliMuz01
	MuzTex(0)=ShraliMuz01
	MuzTex(1)=ShraliMuz02
	MuzTex(2)=ShraliMuz03
	MuzTex(3)=ShraliMuz04
	MuzTex(4)=ShraliMuz05
	MuzTex(5)=ShraliMuz06
	MuzTex(6)=ShraliMuz07
	MuzTex(7)=ShraliMuz08
	MuzTex(8)=ShraliMuz09
}
