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

EffectDefinition
{
	EffectComponent ParticleEffect "side_sparkles"
	{
		ParticleLifespan	0.6
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01"
		FollowEmitter		false
		
		EmitterEvents
		{
			SpawnParticles
			{
				count=5
				duration=0.3
				speed=350
				direction=0
				orientation=[0,0]
				rotationalSpeed= -120
				spawnOffsetAbsY= 20
			}
			
			SpawnParticles
			{
				count=5
				duration=0.3
				speed=350
				direction=-180
				orientation=[0,0]
				rotationalSpeed= 120
				spawnOffsetAbsY= 20
			}

			Dynamics
			{
				delay=0.1, absoluteAcceleration=(0,800)			
				delay=0.4, absoluteAcceleration=(0,-1600)	
			}
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)	
				age=1, rgb=%tint			
			}

			Alpha
			{
				age=0, alpha=0
				age=0.3, alpha=200
				age=1, alpha=0
			}
			
			Scale
			{
				age=0, scale=(1,1.5)
				age=0.5, scale=(1,4)
				age=1.0, scale=(1,1)
			}
		}
	}

	EffectComponent ParticleEffect "ring"
	{
		ParticleLifespan	0.4
		BlendMode		add
		Texture			"data/gfx/particles/blur_ring_32"
		FollowEmitter		false
		
		EmitterEvents
		{			
			SpawnParticles
			{
				count=1
				duration=0
				speed=0
				direction=0
				orientation=[0,0]
				rotationalSpeed=[0,0]
				spawnOffsetAbsY=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,0)
				age=0.7, scale=(5,8)
				age=1.0, scale=(1,1)
			}
		}
	}

	EffectComponent ParticleEffect "sparks"
	{
		ParticleLifespan	0.8
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_8.png"
		FollowEmitter		false
		
		EmitterEvents
		{
			SpawnParticles
			{
				count=8
				duration=0
				delay=0.35
				speed=[400,600]
				direction=[200,340]
				orientation=[0,360]
				rotationalSpeed=[200,500]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,600)			
			}
		}
		
		ParticleEvents
		{
			Alpha
			{
				age=0, alpha=200
				age=1, alpha=0
			}

			Rgb
			{
				age=0, rgb=(255,255,255)
				age=1, rgb=%tint
			}
			
			Scale
			{
				age=0, scale=(1,1)
				age=0.5, scale=(2,2)
			}
		}
	}
}
