
Variables
{
	%tint = (0,255,0)
}


EffectDefinition
{

	EffectComponent ParticleEffect "trail sparks"
	{
		RepeatTime		0.01
		ParticleLifespan	[0.3,0.5]
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_8.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[5, 10]
				rotationalSpeed=[-150,150]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)
				age=1, rgb=%tint		
			}
			
			Alpha
			{
				age=0, alpha=255				
				age=1, alpha=0				
				
			}
			
			Scale
			{
				age=0, scale=(0.6,0.6)
				age=1.0, scale=(1.7,1.7)				
			}
	
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=0.05, moveWithEmitter=0
			}

		}
	}

	EffectComponent ParticleEffect "trail shower_sparks"
	{
		RepeatTime		0.01
		ParticleLifespan	[0.6,0.8]
		BlendMode		add
		AnimSequence		"sparkle_dust"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[5, 10]
				rotationalSpeed=[-150,150]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)		
				age=1, rgb=%tint
			}
			
			Alpha
			{
				age=0, alpha=255				
				age=1, alpha=0 				
				
			}
			
			Scale
			{
				age=0, scale=(1.6,1.6)
				age=0.8, scale=(4.3,4.3)	
				age=1.0, scale=(8.3,8.3)				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=0.05, moveWithEmitter=0
			}

		}
	}

}
