//=============================================================================
// TeleportEffect.
//=============================================================================
class TeleportEffect expands Effects;

#exec MESH IMPORT MESH=TeleportEffect ANIVFILE=MODELS\telee_a.3D DATAFILE=MODELS\telee_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=TeleportEffect X=0 Y=0 Z=400 YAW=64
#exec MESH SEQUENCE MESH=TeleportEffect SEQ=All  STARTFRAME=0  NUMFRAMES=6
#exec MESH SEQUENCE MESH=TeleportEffect  SEQ=Burst  STARTFRAME=0  NUMFRAMES=6
#exec MESHMAP SCALE MESHMAP=TeleportEffect X=0.02 Y=0.02 Z=0.04
#exec MESHMAP SETTEXTURE MESHMAP=TeleportEffect NUM=1 TEXTURE=Default

var vector X,Y,Z;

auto state Explode
{
	simulated function Tick( float DeltaTime )
	{
		GetAxes(Pawn(Owner).ViewRotation,X,Y,Z);	
		SetLocation(Pawn(Owner).Location+X*20+Z*30);
		SetRotation(Pawn(Owner).ViewRotation);
	}
Begin:
	PlayAnim( 'Burst', 1.0);
	PlaySound (EffectSound1);
	MakeNoise(1.0);
	FinishAnim();
	Destroy();
}
