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

EffectDefinition
{
	EffectComponent ParticleEffect "color_cloud_base_dark"
	{
		RepeatTime		0.05
		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=[0,360]
				speed=[0,0]
				rotationalSpeed=[40,80]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-200)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(0, 0, 0)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=200 				
				age=0.7, alpha=120
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5,0.5)
				//age=0.1, scale=(1.3,1.3)
				age=1, scale=(1.1,1.1)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.4, moveWithEmitter=1
				age=.8, moveWithEmitter=0
			}
		}
	}


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

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[40,80]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-100)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=%tint
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=255 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.3,0.3)
				age=1, scale=(1.0,1.0)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.4, moveWithEmitter=1
				age=.8, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "color_cloud_base_add"
	{
		RepeatTime		0.05
		ParticleLifespan	[0.2,0.4]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_02.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				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)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=150 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.2,0.2)
				age=1, scale=(0.8,0.8)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.4, moveWithEmitter=1
				age=.8, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "color_cloud_sparkley"
	{
		RepeatTime		0.05
		ParticleLifespan	[0.2,0.4]
		BlendMode		add
		AnimSequence		"sparkle_dust"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				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)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=150 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(3.2,3.2)
				age=1, scale=(4.8,4.8)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.4, moveWithEmitter=1
				age=.8, moveWithEmitter=0
			}
		}
	}
}