class SacredRing expands Actor;

#exec MESH IMPORT MESH=SacredRing ANIVFILE=MODELS\SacredRing_a.3d DATAFILE=MODELS\SacredRing_d.3d X=0 Y=0 Z=0
#exec MESH LODPARAMS MESH=SacredRing STRENGTH=0
#exec MESH ORIGIN MESH=SacredRing X=0 Y=0 Z=0

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

#exec MESHMAP NEW MESHMAP=SacredRing MESH=SacredRing
#exec MESHMAP SCALE MESHMAP=SacredRing X=0.015 Y=0.015 Z=0.03

#exec TEXTURE IMPORT NAME=SacredRingWhite FILE=SKINS\SacredRingWhite.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec TEXTURE IMPORT NAME=SacredRingYellow FILE=SKINS\SacredRingYellow.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec TEXTURE IMPORT NAME=SacredRingRed FILE=SKINS\SacredRingRed.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec TEXTURE IMPORT NAME=SacredRingBlue FILE=SKINS\SacredRingBlue.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec TEXTURE IMPORT NAME=SacredRingGreen FILE=SKINS\SacredRingGreen.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec TEXTURE IMPORT NAME=SacredRingPurple FILE=SKINS\SacredRingPurple.bmp GROUP=Skins FLAGS=2 LODSET=2

#exec MESHMAP SETTEXTURE MESHMAP=SacredRing NUM=1 TEXTURE=SacredRingWhite


simulated function PostBeginPlay()
{
	if (Owner != None)
	{
	if (Owner.IsA('DamageN'))
		MultiSkins[1] = Texture'SacredRingPurple';
	else if (Owner.IsA('HealthN'))
		MultiSkins[1] = Texture'SacredRingBlue';
	else if (Owner.IsA('Kick'))
		MultiSkins[1] = Texture'SacredRingGreen';
	else if (Owner.IsA('Splasher'))
		MultiSkins[1] = Texture'SacredRingYellow';
	else if (Owner.IsA('Fast'))
		MultiSkins[1] = Texture'SacredRingRed';
	}
}

simulated function Tick( float DeltaTime)
{
	if (Owner != None)
	{
		If (Owner.Location != Location)
			SetLocation(Owner.Location);

		bHidden = Owner.bHidden;
	}
	else
		Destroy();
}

defaultproperties
{
	DrawType=DT_Mesh
	Mesh=SacredRing
	RemoteRole=ROLE_SimulatedProxy
	bFixedRotationDir=True
	RotationRate=(Pitch=30000,Yaw=30000)
	Style=STY_Translucent
	Physics=PHYS_Rotating
	bUnlit=True
	ScaleGlow=2.000000
}
