class DoubleElecFX expands Effects;

#exec OBJ LOAD FILE=Textures\DoubleFX.utx PACKAGE=XPickups.DSFX

#exec MESH IMPORT MESH=DoubleElecFX ANIVFILE=MODELS\DoubleElecFX_a.3d DATAFILE=MODELS\DoubleElecFX_d.3d X=0 Y=0 Z=0
#exec MESH LODPARAMS MESH=DoubleElecFX STRENGTH=0
#exec MESH ORIGIN MESH=DoubleElecFX X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=DoubleElecFX SEQ=All STARTFRAME=0 NUMFRAMES=9
#exec MESH SEQUENCE MESH=DoubleElecFX SEQ=Still STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=DoubleElecFX SEQ=Electric STARTFRAME=1 NUMFRAMES=8 RATE=8.0

#exec MESHMAP NEW MESHMAP=DoubleElecFX MESH=DoubleElecFX
#exec MESHMAP SCALE MESHMAP=DoubleElecFX X=0.05092 Y=0.05092 Z=0.10184

#exec MESH IMPORT MESH=DoubleElecFXR ANIVFILE=MODELS\DoubleElecFX_a.3d DATAFILE=MODELS\DoubleElecFX_d.3d X=0 Y=0 Z=0
#exec MESH LODPARAMS MESH=DoubleElecFXR STRENGTH=0
#exec MESH ORIGIN MESH=DoubleElecFXR X=0 Y=0 Z=0 YAW=128

#exec MESH SEQUENCE MESH=DoubleElecFXR SEQ=All STARTFRAME=0 NUMFRAMES=9
#exec MESH SEQUENCE MESH=DoubleElecFXR SEQ=Still STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=DoubleElecFXR SEQ=Electric STARTFRAME=1 NUMFRAMES=8 RATE=8.0

#exec MESHMAP NEW MESHMAP=DoubleElecFXR MESH=DoubleElecFXR
#exec MESHMAP SCALE MESHMAP=DoubleElecFXR X=0.05092 Y=0.05092 Z=0.10184

#exec MESHMAP SETTEXTURE MESHMAP=DoubleElecFX NUM=1 TEXTURE=DoubleEnergy
#exec MESHMAP SETTEXTURE MESHMAP=DoubleElecFXR NUM=1 TEXTURE=DoubleEnergy


simulated function PostBeginPlay()
{
	if (Rand(100) > 50)
		Mesh = Mesh'DoubleElecFX';

	PlayAnim('Electric', 1.0);
}

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

defaultproperties
{
	DrawType=DT_Mesh
	Mesh=DoubleElecFX
	bUnlit=True
	Style=STY_Translucent
	Physics=PHYS_Trailer
	bTrailerSameRotation=True
	RemoteRole=ROLE_None
	LifeSpan=0.850000
	ScaleGlow=2.000000
}
