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

EffectDefinition
{
	EffectComponent ParticleEffect "slight clouds"
	{
		RepeatTime		0.1
		ParticleLifespan	[0.6,0.7]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_02"
		FollowEmitter		true
		
		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				orientation=[0,360]
				rotationalSpeed=800
				speed=[0,0]
				direction=[0,0]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=0
			}

			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
		}
		
		ParticleEvents
		{
			Alpha
			{
				age=0, alpha=255
				//age=0.05, alpha=200
				age=1, alpha=0
			}
			
			Rgb
			{
				age=0, rgb=(255, 255, 255)
				age=1, rgb=%tint
			}
		
			Scale
			{
				age=0, scale=(0.2,0.2)				
				age=1.0, scale=(2,2)
			}

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

	EffectComponent ParticleEffect "ring trail"
	{
		RepeatTime		0.05
		ParticleLifespan	[0.6,0.6]
		BlendMode		add
		Texture			"data/gfx/particles/blur_ring_32"
		FollowEmitter		true
		
		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				rotationalSpeed=[0,100]
				speed=[0,0]
				direction=[0,0]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=0
			}

			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
		}
		
		ParticleEvents
		{
			Alpha
			{
				age=0, alpha=0
				age=0.05, alpha=100
				age=1, alpha=0
			}
			
			Rgb
			{
				age=0, rgb=(255, 255, 255)
				age=1, rgb=%tint
			}
		
			Scale
			{
				age=0, scale=(0.5,0.5)
				age=0.7, scale=(2,2)
				age=1.0, scale=(5,5)
			}

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

	EffectComponent ParticleEffect "shooting sparks"
	{
		RepeatTime		0.05
		ParticleLifespan	[0.6,0.6]
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_8"
		FollowEmitter		true
		
		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				rotationalSpeed=[-400,-600]
				speed=[200,250]
				direction=[238,242]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=0
			}

			SpawnParticles
			{
				count=1
				duration=0
				rotationalSpeed=[400,600]
				speed=[200,250]
				direction=[298,302]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=0
			}


			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-50)
			}
		}
		
		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=(0.5,0.5)
				age=1.0, scale=(2,2)
			}

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