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

EffectDefinition
{
	EffectComponent ParticleEffect "color_cloud_base_dark"
	{
		RepeatTime		0.1
		ParticleLifespan	[0.6,0.8]
		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,80]
				direction=[80,100]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(0, 0, 0)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.3, alpha=120 
				age=0.8, alpha=80
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5,0.5)
				age=0.1, scale=(1.4,1.4)
				age=1, scale=(1.0,1.0)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=0
				age=0.05, moveWithEmitter=1
				age=.2, moveWithEmitter=1
				age=.6, moveWithEmitter=0
			}
		}
	}


	EffectComponent ParticleEffect "color_cloud_base_tail"
	{
		RepeatTime		0.05
		ParticleLifespan	[0.7,0.8]
		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,80]
				direction=[85,95]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=%tint
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=255 				
				age=0.7, alpha=255 
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(1.0,1.0)
				age=1, scale=(0.5,0.5)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.2, moveWithEmitter=0.8
				age=.4, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "color_cloud_base_tail_add"
	{
		RepeatTime		0.05
		ParticleLifespan	[1.0,1.1]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_01.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=0
				duration=0
				delay=0
				orientation=[-360,360]
				speed=[0,0]
				rotationalSpeed=[40,80]
				direction=[85,95]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=%tint
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.3, alpha=150 
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.8,0.8)
				age=1, scale=(1.6,1.6)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=0
				//age=0.1, moveWithEmitter=1
				//age=.2, moveWithEmitter=1
				age=.3, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "color_cloud_base"
	{
		RepeatTime		0.2
		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,80]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=%tint
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=255 
				age=0.7, alpha=255 
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.8,0.8)
				age=1, scale=(1.2,1.2)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.2, moveWithEmitter=1
				age=.6, moveWithEmitter=0
			}
		}
	}


	

	EffectComponent ParticleEffect "color_cloud_base_add"
	{
		RepeatTime		0.2
		ParticleLifespan	[0.5,0.6]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_01.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=2
				duration=0
				delay=0
				orientation=[-360,360]
				speed=[0,0]
				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=(255, 255, 255)
				
			}
			
			Alpha
			{
				age=0, alpha=150 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5,0.5)
				age=1, scale=(1.5,1.5)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.2, moveWithEmitter=1
				age=.6, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "color_cloud_base_glitter"
	{
		RepeatTime		0.1
		ParticleLifespan	[1.0,1.2]
		BlendMode		alpha
		AnimSequence		"sparkle_dust"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[0,0]
				rotationalSpeed=[40,80]
				direction=[85,95]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=1, rgb=(255, 255, 255)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(3.5,3.5)
				age=1, scale=(5.5,5.5)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.2, moveWithEmitter=1
				age=.6, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "lightning_scatter"
	{
		RepeatTime		0.4
		ParticleLifespan	[0.4,0.5]
		BlendMode		add
		AnimSequence		"lightning_small"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[-360,360]
				speed=[10,20]
				rotationalSpeed=[-180,180]
				direction=[0,360]
				spawnOffsetAbsX=[-4,4]
				spawnOffsetAbsY=[-4,14]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255,255,255)
				age=1, rgb=(255,255,255)
				
			}
			
			Alpha
			{
				age=0, alpha=110 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(1.0,1.0)
				age=1, scale=(2.0,2.0)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.1, moveWithEmitter=1
				//age=.3, moveWithEmitter=0
			}
		}
	}
	

	
}