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

EffectDefinition
{
	
	EffectComponent ParticleEffect "halo_target"
	{
		RepeatTime		0
		ParticleLifespan	0.12
		BlendMode		alpha
		Texture			"data/gfx/particles/blur_ring_32.png"
		FollowEmitter		false

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,0]
				speed=0
				rotationalSpeed=400
				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=0 				
				age=0.1, alpha=150				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(7.3,7.3)				
				age=1, scale=(0.3,0.3)

				
			}			
		}
	}


	EffectComponent ParticleEffect "color_cloud_base"
	{
		RepeatTime		0
		ParticleLifespan	[0.5,0.55]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"
		FollowEmitter		false

		EmitterEvents
		{
			SpawnParticles
			{
				count=6
				duration=0
				delay=0.18
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[40,80]
				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=0 				
				age=0.1, alpha=200 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.3,0.3)
				age=1, scale=(1.5,1.5)

				
			}
			
		}
	}

	EffectComponent ParticleEffect "gyroscope thingy"
	{
		RepeatTime		0
		ParticleLifespan	[0.7, 1.2]
		BlendMode		alpha
		Texture			"data/gfx/particles/offset_circle_8.png"
		FollowEmitter		false
		EmitterEvents
		{
			SpawnParticles
			{
				count=4
				duration=0.1
				delay=0.2
				orientation=[0, 360]
				speed=0
				rotationalSpeed=450
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}
			
			SpawnParticles
			{
				count=4
				duration=0.1
				delay=0.2
				orientation=[0, 360]
				speed=0
				rotationalSpeed=-450
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}			


			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=0.6, rgb=(255, 255, 255)
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.05, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.1,0.1)
				age=1, scale=(1.2,2.2)

				
			}			
		}
	}
	
	EffectComponent ParticleEffect "gyroscope thingy"
	{
		RepeatTime		0
		ParticleLifespan	0.2
		BlendMode		alpha
		Texture			"data/gfx/particles/sparkle/star_01.png"
		FollowEmitter		false
		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.18
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=[0,360]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=0
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=0.4, rgb=(255, 255, 255)
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.05, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.2,0.2)
				age=1, scale=(2.2,4.2)
				age=1, scale=(0.5,0.5)
				
			}			
		}
	}
}