//=============================================================================
// Shield.
//=============================================================================
class Shield expands Effects;

#exec MESH IMPORT MESH=ShieldEffect ANIVFILE=MODELS\shield_a.3D DATAFILE=MODELS\shield_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=ShieldEffect X=0 Y=780 Z=0 YAW=-64 ROLL=128
#exec MESH SEQUENCE MESH=ShieldEffect SEQ=All  STARTFRAME=0  NUMFRAMES=25
#exec MESH SEQUENCE MESH=ShieldEffect  SEQ=Burst  STARTFRAME=0  NUMFRAMES=25
//#exec TEXTURE IMPORT NAME=Ashield1 FILE=MODELS\shield.PCX GROUP="Skins"
#exec MESHMAP SCALE MESHMAP=ShieldEffect X=0.05 Y=0.05 Z=0.1
#exec MESHMAP SETTEXTURE MESHMAP=ShieldEffect NUM=1 TEXTURE=Default

auto state Explode
{
	function Tick( float DeltaTime )
	{
		LightBrightness = Max( LightBrightness - 250*DeltaTime, 0 );
		SetLocation(Owner.Location);
	}
Begin:
	PlayAnim( 'Burst', 1.5 );
	PlaySound (EffectSound1);
	MakeNoise(1.0);
	FinishAnim();
	Destroy();
}
