EffectDefinition
{
	EffectComponent ParticleEffect "fireball_black_smoke"
	{
		RepeatTime		0.03
		ParticleLifespan	[0.4,0.5]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"
		FollowEmitter	true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[-360,360]
				speed=[0,0]
				rotationalSpeed=[-40,40]
				direction=[0,180]
				spawnOffsetAbsX=[-2,2]
				spawnOffsetAbsY=[0,2]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-300)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(220,80,80)
				age=0.4, rgb=(40,20,20)
				age=1, rgb=(150,140,140)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.2, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.25,0.25)
				age=1, scale=(0.75,0.75)

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


	EffectComponent ParticleEffect "fireball_base_01"
	{
		RepeatTime		0.3
		ParticleLifespan	[0.4,0.5]
		BlendMode		alpha
		Texture			"data/gfx/particles/fireball/fireball_base_01.png"
		FollowEmitter	true

		EmitterEvents
		{
			SpawnParticles
			{
				count=2
				duration=0
				delay=0
				orientation=[-360,360]
				speed=[0,0]
				rotationalSpeed=[200,240]
				direction=[0,0]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-5)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)
				
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.1, alpha=155
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.2, 0.2)
				age=1, scale=(0.45, 0.45)
				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
			}
		}
	}

	EffectComponent ParticleEffect "fireball_flames"
	{
		RepeatTime		0.02
		ParticleLifespan	[0.3,0.4]
		BlendMode		add
		Texture			"data/gfx/particles/fireball/fireball_ember_01.png"
		FollowEmitter	true

		EmitterEvents
		{
			SpawnParticles
			{
				count=2
				duration=0
				delay=0
				orientation=[-360,360]
				speed=[5,10]
				rotationalSpeed=[200,240]
				direction=[200,340]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-400)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)
				
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.1, alpha=100				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5, 0.5)
				age=0.5, scale=(0.95, 0.95)
				age=1, scale=(0.5, 0.5)
				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.2, moveWithEmitter=1.0
				age=.4, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "fireball_embers"
	{
		RepeatTime		0.4
		ParticleLifespan	[1.0,2.0]
		BlendMode		add
		Texture			"data/gfx/particles/fireball/fireball_ember_01.png"
		FollowEmitter	true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[-360,360]
				speed=[50,110]
				rotationalSpeed=[-90,90]
				direction=[180,360]
				spawnOffsetAbsX=[-5,5]
				spawnOffsetAbsY=[-5,5]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,120)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)
				
			}
			
			Alpha
			{
				age=0, alpha=200				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.4,0.4)
				age=.2, scale=(0.5,0.3)
				age=.4, scale=(0.3,0.5)
				age=.6, scale=(0.4,0.2)
				age=.8, scale=(0.1,0.05)
				age=1, scale=(0.0,0.0)

				
			}
		}
	}
	
	
}