;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;			FLAMING BALLISTA EFFECTS
;
;		ALSO PUTTING IN NEW ARROW EFFECTS IN THIS DESCR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

effect ballista_model
{
	type projectile
	{
		model		models_effects/flaming_balista_bolt.CAS
		fade_time	0.01
		sort_for_speed
	}
}

effect bullet_model
{
	type projectile
	{
		model		models_effects/bullet.CAS
		fade_time	0.01
		view_dist  300
		sort_for_speed
	}
}

effect grape_model
{
	type projectile
	{
		model		models_effects/grape.CAS
		fade_time	0.01
		view_dist  300
		sort_for_speed
	}
}

effect ballista_model_glow
{
	type projectile
	{
		model		models_effects/flaming_ballista_glow.CAS
		fade_time	0.01
		sort_for_speed
	}
}

effect boulder_flaming_model
{
	type projectile
	{
		model		models_effects/boulder_flaming.CAS
		fade_time	0.01
		sort_for_speed
	}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

effect flaming_ballista_torch_fire
{
	type particle
	{
		texture				battlefield/fire/#flame_wheel.tga		
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	0.5, 0.2
		age_range        	0.2, 0.3
	    grow_range		 	1.0, 1.0
		vel_range  			0.0, 0.0
		
		keyframe_colour
		{
				0.0, 	255,   255, 255,     255
				0.1, 	100, 255,  255,   255
				0.5, 	100, 255,   255,   255
				1.0, 	0,   255,   255,   255
		}
		
		alpha_max	   		255			 ; maximum alpha value
		initial_size		0.3, 0.5
		blend_type			additive
		offset				0.0, 0.0, 0.2
		max_particles       3000

		emitter distance_time
		{
			density			        10 	     	; how many particels per second
			emitter_falloff_dist	100			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		5
			max_distance			0.5			
		}

		random_emit_radius		0.2, 0.1
		system_radius			2.0			    ; radius used for culling
		batched
	}
}


effect flaming_ballista_smoke
{
	type particle
 	{
		texture			battlefield/fire/smoke2.tga

		size_range      0.1, 0.5
		initial_size	1.5, 1
		age_range       0.3, 0.8
        grow_range	 	1, 1
		velocity   		0.01, 0.04
		colour     		55, 50, 47
		alpha_max	   	100			 ; maximum alpha value
		batched			
		sort_bias		0
		fade_time		0.5
		system_radius   20
		max_particles   1500
		random_emit_radius		0.2, 0.2
		
		keyframe_colour
		{
				0.0, 	0,   55, 50,     47
				0.1, 	100, 55,  50,   47
				1.0, 	0,   55,   50,  47
		}
		
		emitter distance
		{
			emitter_falloff_dist	500			; distance in meters to reduce emission over
			emitter_falloff_bias	0
			
			density			5 	     ; how many particels per meter
		}
		clr_adjust_by_ambient_intensity
	}
}

effect fiery_ballista_light
{
	type light
	{
		fade_out_time	0.1
		keyframe_colour
		{
				0.05, 	170, 113,  63
				0.1, 	175, 110, 65
				0.15, 	170, 113,  63
				0.2, 	175, 110, 65
				0.25, 	170, 113,  63
				0.3, 	175, 110, 65
		}
			
		keyframe_radius
		{
				0.1, 	12
		}
	}
}

; EFFECT SET FOR FLAMING BALLISTA PROJECTILE EFFECTS

effect_set flaming_ballista_projectile_set
{
	lod 1000
	{
		ballista_model
		flaming_ballista_smoke
		fiery_ballista_light
		ballista_model_glow
		flaming_ballista_torch_fire
	}
}

effect arrow_model
{
	type projectile
	{
		model		models_effects/arrow_projectile.CAS
		clr_adjust_by_ambient_intensity
		fade_time	0.01
		view_dist  300
		sort_for_speed
	}
}

effect crossbow_arrow_model
{
	type projectile
	{
		model		models_effects/arrow_projectile.CAS
		clr_adjust_by_ambient_intensity
		fade_time	0.01
		view_dist  300
		sort_for_speed
	}
}

effect crossbow_steel_arrow_model
{
	type projectile
	{
		model		models_effects/arrow_projectile.CAS
		clr_adjust_by_ambient_intensity
		fade_time	0.01
		view_dist  300
		sort_for_speed
	}
}

effect arrow_model_trail
{
	type ribbon
	{
		alpha_max	128	  ; Alpha value at start of trail
		alpha_min	10	  ; Alpha value at end of trail
		fade_start	100	  ; Distance to start fading out.
		fade_end	200	  ; This should be the same as the max lod distance in the effect set.
		head_width	0.1	  ; Width of the ribbon at arrow end
		tail_width  0.01    ; Width of the ribbon at the tail end

		texture	    models_effects/textures/arrow_trail.texture
	}
}

effect crossbow_arrow_model_trail
{
	type ribbon
	{
		alpha_max	128	  ; Alpha value at start of trail
		alpha_min	10	  ; Alpha value at end of trail
		fade_start	100	  ; Distance to start fading out.
		fade_end	200	  ; This should be the same as the max lod distance in the effect set.
		head_width	0.1	  ; Width of the ribbon at arrow end
		tail_width  0.01    ; Width of the ribbon at the tail end

		texture	    models_effects/textures/arrow_trail.texture
	}
}

effect crossbow_steel_arrow_model_trail
{
	type ribbon
	{
		alpha_max	128	  ; Alpha value at start of trail
		alpha_min	10	  ; Alpha value at end of trail
		fade_start	100	  ; Distance to start fading out.
		fade_end	200	  ; This should be the same as the max lod distance in the effect set.
		head_width	0.1	  ; Width of the ribbon at arrow end
		tail_width  0.01    ; Width of the ribbon at the tail end

		texture	    models_effects/textures/arrow_trail.texture
	}
}

effect_set arrows_new_set
{
	lod 1000
	{
		arrow_model
		arrow_model_trail
		arrow_whizz_sound
		arrow_fly_sound
	}
}

effect_set crossbow_arrows_new_set
{
	lod 1000
	{
		crossbow_arrow_model
		crossbow_arrow_model_trail
		crossbow_fly_sound
	}
}

effect_set crossbow_steel_arrows_new_set
{
	lod 1000
	{
		crossbow_steel_arrow_model
		crossbow_steel_arrow_model_trail
		crossbow_fly_sound
	}
}

effect arrow_model_flaming
{
	type projectile
	{
		model		models_effects/arrow_projectile_flaming.CAS
		fade_time	0.01
		sort_for_speed
	}
}

effect crossbow_arrow_model_flaming
{
	type projectile
	{
		model		models_effects/arrow_projectile_flaming.CAS
		fade_time	0.01
		sort_for_speed
	}
}

effect nahptha_bomb_model
{
	type projectile
	{
		model		models_effects/nahptha_bomb.CAS
		clr_adjust_by_ambient_intensity
		fade_time	0.01
		sort_for_speed
	}
}


effect arrow_model_flaming_glow
{
	type projectile
	{
		model		models_effects/arrow_projectile_flaming_glow.CAS
		fade_time	0.01
		sort_for_speed
	}
}


effect arrow_model_trail_flaming
{
	type particle
 	{
		texture			battlefield/fire/smoke0.tga

		size_range      0.03, 0.04
		initial_size	0.3, 0.3
		age_range       0.03, 0.14
        grow_range	 	1, 1
		velocity   		0.0, 0.0
		colour     		55, 50, 47
		alpha_max	   	155			 ; maximum alpha value
		batched			
		sort_bias		15
		die_size		0, 0.14
		fade_time		0.1
		system_radius   20
		max_particles   2500
		
		emitter distance
		{
			emitter_falloff_dist	500			; distance in meters to reduce emission over
			emitter_falloff_bias	0
			
			density			3 	     ; how many particels per meter
		}
		clr_adjust_by_ambient_intensity
	}
}

effect arrow_torch_fire
{
	type particle
	{
		texture				battlefield/fire/#flame_wheel.tga		
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	0.01, 0.01
		age_range        	0.1, 0.74
	    grow_range		 	1.0, 1.0
		vel_range  			0.0, 1.0
		
		keyframe_colour
		{
;				0.0		255, 255, 255, 255
				0.0, 	255,   255, 255,     255
				0.1, 	100, 255,  255,   255
				0.5, 	100, 255,   255,   255
				1.0, 	50,   255,   255,   255
		}
		
		alpha_max	   		255			 ; maximum alpha value
		initial_size		0.1, 0.14
		blend_type			additive
		offset				0.0, 0.0, 0.2
		max_particles       3000

		emitter distance_time
		{
			density			        3 	     	; how many particels per second
			emitter_falloff_dist	100			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		5
			max_distance			0.5			
		}

		random_emit_radius		0, 0.05
		system_radius			2.0			    ; radius used for culling
		batched
	}
}

;flaming boulder sparks trail

effect boulder_flaming_torch_fire
{
	type particle
	{
		texture				battlefield/fire/#flame_wheel.tga		
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	0.01, 0.01
		age_range        	0.3, 0.74
	    grow_range		 	1.0, 1.5
		vel_range  			0.4, 0.5
		
		keyframe_colour
		{
;				0.0		255, 255, 255, 255
				0.0, 	255,   255, 255,     255
				0.1, 	100, 255,  255,   255
				0.5, 	100, 255,   255,   255
				1.0, 	50,   255,   255,   255
		}
		
		alpha_max	   		255			 ; maximum alpha value
		initial_size		0.4, 1.7
		blend_type			additive
		offset				0.0, 0.0, -0.3
		max_particles       3000

		emitter distance_time
		{
			density			        1 	     	; how many particels per second
			emitter_falloff_dist	1000			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		50
			max_distance			0.5			
		}

		random_emit_radius		0.5, 0.3
		system_radius			1000.0			    ; radius used for culling
		batched
	}
}


effect flaming_boulder_smoke_trail
{
	type particle
 	{
		texture			battlefield/fire/smoke0.tga

		size_range      2.0, 2.5
		age_range       1.4, 1.5
	    grow_range		1.5, 2.8
		velocity   		0.0, 0.2
		
		keyframe_colour
		{
				0.0, 	255,   80, 80,     80
				0.7, 	0,   80, 80,     80

		}

		
		alpha_max	   	190			 ; maximum alpha value
		emitter distance
		{
			density			1 	     ; how many particels per meter
		}
		
		fade_time		0.1		

		clr_adjust_by_ambient_intensity		
	}
}

effect greek_fire
{
	type particle
	{
		texture				battlefield/fire/Oil_particle_2.tga		
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	0.5, 2.5
		age_range        	1.8, 3.0
	    grow_range		 	0.2, 0.4
		vel_range  			-0.0, -0.0 
;		die_size			0.3,0.4
		fade_time 			0.2, 0.4
		spin_rate			    -0.5, 0.5
		acceleration			-0.05,-0.02,-0.0
		sort_bias				-1
		sort 					instance
		
			keyframe_colour
		{
;				0.0		255,	255, 255, 255
				0.0, 	0,		255, 255, 255
				0.2, 	40,		255, 255, 255
				3.1, 	50,		255, 255, 255
				3.5, 	0,  	255, 255, 255
		}
		
	
		alpha_max	   		255			 ; maximum alpha value
		initial_size		0.4, 0.5
		blend_type			additive
		offset				0.5, -0.5, 0.3
		max_particles       10000

		emitter distance_time
		{
			density			       5	     	; how many particels per second
			emitter_falloff_dist	100			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			6			
		}

		random_emit_radius		0.0, 0.0
		system_radius			2.0			    ; radius used for culling
		batched
	}
}

effect greek_fire_smoke_trail
{
	type particle
 	{
		texture			battlefield/fire/greek_burning_smoke.tga

		size_range      0.1, 3.5
		age_range       2.5, 4.0
	    grow_range		2.5, 1.0
		velocity   		0.0, 15.2
		spin_rate			    -0.01, 0.01
		acceleration			0,0.15,0
		sort_bias				0
		sort 					instance

		
		keyframe_colour
		{
				0.0, 	00,   80, 80,     80
				1.5, 	100,   100, 100,    100
				2.5, 	80,   100, 100,    100
				4.0, 	0,   100, 100,     100

		}



		alpha_max	   	255		 ; maximum alpha value
		initial_size		4.3, 1.8
		offset				0.4, -0.4, -0.1
		max_particles       10000
		emitter distance
		{
			density			2 	     ; how many particels per meter
		}
		
		fade_time		0.5		

		clr_adjust_by_ambient_intensity		
	}
}
effect greek_fire_drip
{
	type particle
	{
		texture				battlefield/fire/#flame_wheel.tga	
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	0.1, 0.5
		age_range        	0.8, 2.0
	    grow_range		 	0.2, 0.3
		vel_range  			-0.0, -0.0 
		die_size			0.2,0.5
		spin_rate			    -0.1, 0.1
		acceleration			-0.05,-0.20,-0.2
		sort_bias				-1
		sort 					instance
		
		keyframe_colour
		{
;				0.0		255, 255, 255, 255
				0.0, 	0,    222, 191,   185
				0.2, 	80,  222, 191,   185
				1.8, 	35,    222, 191,   185
				2.2, 	0,     222, 191,   185
		}
		
		alpha_max	   		255		 ; maximum alpha value
		initial_size		1.5, 0.8
		blend_type			additive
		offset				0.4, -0.6, -0.1
		max_particles       10000

		emitter distance_time
		{
			density			       4	     	; how many particels per second
			emitter_falloff_dist	100			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			6			
		}

		random_emit_radius		0.2, 0.4
		system_radius			2.0			    ; radius used for culling
		batched
	}
}

effect_set arrows_fire_new_set
{
	lod 1000
	{
		arrow_model_flaming
		arrow_model_trail_flaming
		arrow_model_flaming_glow
		arrow_torch_fire

	}
}

effect_set nahptha_bomb_projectile_set
{
	lod 1000
	{
		nahptha_bomb_model
		arrow_torch_fire
		arrow_model_trail_flaming

	}
}


effect_set bullet_model_set
{
	lod 1000
	{
		bullet_model
		very_small_shockwave
	}
}

effect_set grape_model_set
{
	lod 1000
	{
		grape_model
		very_small_shockwave
	}
}

effect_set greek_fire_set
{
	lod 1000
	{
		greek_fire
		greek_fire_drip
		greek_fire_smoke_trail
		flamethrower_start_sound
		flamethrower_firing_sound

	}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Mangonel effects

effect mangonel_fire
{
	type particle
	{
		texture				battlefield/fire/Oil_particle_2.tga		
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	1.0, 2.5
		age_range        	0.3, 0.1
	    grow_range		 	0.5, 1.2
		vel_range  			-0.0, -0.0 
;		die_size			0.3,0.4
		fade_time 			0.1, 0.2
		spin_rate			    -0.2, 0.2
		acceleration			0.00,0.1,0.0
		sort_bias				-1
		sort 					instance
		
			keyframe_colour
		{
;				0.0		100,	255, 255, 255
				0.0, 	150,	200, 180, 100
				0.1, 	120,	200, 180, 100
				0.3, 	0,	236, 165, 13
		}
		
	
		alpha_max	   		255			 ; maximum alpha value
		initial_size		1.0, 0.2
		blend_type			additive
		offset				0.0, -0.0, 0.0
		max_particles       15000

		emitter distance_time
		{
			density			       2	     	; how many particels per second
			emitter_falloff_dist	1000			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			800			
		}

		random_emit_radius		0.4, 0.2
		system_radius			20.0			    ; radius used for culling
		batched
		clr_adjust_by_ambient_intensity		
	}
}

effect mangonel_fire_smoke_trail
{
	type particle
 	{
		texture			battlefield/fire/smoke6_greek.tga

		size_range      1.5, 4.5
		age_range       0.3, 0.7
	    grow_range		2.5, 1.0
		velocity   		0.0, 0.0
		spin_rate			    -0.01, 0.01
		acceleration			0,-10.10,0
		initial_size		2.3, 2.8
		sort_bias				0
		sort 					instance

		
		keyframe_colour
		{
				0.0, 	5,   80, 80,     80
				0.2, 	13,   150, 150,    150
				0.7, 	0,   100, 100,    100

		}



		alpha_max	   	255		 ; maximum alpha value
		offset				0.0, 0.0, -0.0
		max_particles       10000
		emitter distance_time
		{
			density			       1	     	; how many particels per second
			emitter_falloff_dist	1000			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			800			
		}
		
		fade_time		0.5	
		random_emit_radius		0.5, 0.5	
		system_radius			20.0			    ; radius used for culling
		batched
		clr_adjust_by_ambient_intensity		
	}
}
effect mangonel_fire_drip
{
	type particle
	{
		texture				battlefield/fire/#flame_wheel.tga	
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	0.1, 0.5
		age_range        	0.8, 2.0
	    grow_range		 	0.2, 0.3
		vel_range  			-0.0, -0.0 
		die_size			0.2,0.5
		spin_rate			    -0.1, 0.1
		acceleration			-0.05,-0.20,-0.2
		sort_bias				-1
		sort 					instance
		
		keyframe_colour
		{
;				0.0		255, 255, 255, 255
				0.0, 	0,    222, 191,   185
				0.2, 	80,  222, 191,   185
				1.8, 	35,    222, 191,   185
				2.2, 	0,     222, 191,   185
		}
		
		alpha_max	   		255		 ; maximum alpha value
		initial_size		1.5, 0.8
		blend_type			additive
		offset				0.4, -0.6, -0.1
		max_particles       10000

		emitter distance_time
		{
			density			       4	     	; how many particels per second
			emitter_falloff_dist	100			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			6			
		}

		random_emit_radius		0.2, 0.4
		system_radius			2.0			    ; radius used for culling
		batched
	}
}
effect fiery_barrel_debris_light
{
	type light
	{
		fade_out_time	0.1
		keyframe_colour
		{
				0.05, 	170, 113,  63
				0.1, 	175, 110, 65
				0.15, 	170, 113,  63
				0.2, 	175, 110, 65
				0.25, 	170, 113,  63
				0.3, 	175, 110, 65
		}
			
		keyframe_radius
		{
				0.1, 	4
		}
	}
}
effect barrel_debris
{
	type projectile
	{
		model			models_effects/debris_fire.CAS
		fade_time	0.01
		sort_for_speed
	}
}

; mini barrel projectiles flying through air
effect_set mangonel_fire_set
{
	lod 1000
	{
		;barrel_debris
		fiery_barrel_debris_light
		mangonel_fire
		;mangonel_fire_drip
		mangonel_fire_smoke_trail
		barrel_projectile_fly_sound
	}
}

effect ice_spike
{
	type projectile
	{
		model		models_effects/ice_spike.CAS
		clr_adjust_by_ambient_intensity
		fade_time	0.01
		view_dist  300
		sort_for_speed
	}
}

effect spike_trail
{
	type particle
	{
		texture				models_effects/textures/ice_trail.dds
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range      2.8, 1.8
		age_range       0.15, 0.4
	    	grow_range		1.0, 1.0
		system_radius   20
		initial_size	1.6,1.6
		spin_rate       -0.1,0.1
		acceleration    0,-1,0
		max_particles   2000
		sort_bias				0
		sort 					instance
		offset          0,0,-1.0
		
		
		keyframe_colour
		{
				0.0, 	20,   112, 190,     200
				0.2, 	80,   112, 185,     180
				1.0, 	0,   78, 160,     100

		}

		
		alpha_max	   	255			 ; maximum alpha value
		emitter distance
		{
			density			4 	     ; how many particels per meter
		}
		
		random_emit_radius		0.6,0,6

		clr_adjust_by_ambient_intensity		
	}
}

effect_set ice_spike_set
{
	lod 1000
	{
		ice_spike
		spike_trail
	}
}

effect normal_lighting
{
	type particle
	{
		texture				models_effects/textures/bluespark.dds
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	0.5, 2.5
		age_range        	1.8, 3.0
	    grow_range		 	0.2, 0.4
		vel_range  			-0.0, -0.0 
;		die_size			0.3,0.4
		fade_time 			0.0, 0.0
		spin_rate			    -0.5, 0.5
		acceleration			-0.05,-0.02,-0.0
		sort_bias				-1
		sort 					instance
		
			keyframe_colour
		{
;				0.0		255,	255, 255, 255
				0.0, 	0,		255, 255, 255
				0.2, 	40,		255, 255, 255
				3.1, 	50,		255, 255, 255
				3.5, 	0,  	255, 255, 255
		}

		alpha_max	   		255			 ; maximum alpha value
		initial_size		0.4, 0.5
		blend_type			additive
		offset				0.5, -0.5, 0.3
		max_particles       10000

		emitter distance_time
		{
			density			       1	     	; how many particels per second
			emitter_falloff_dist	100			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			6			
		}

		random_emit_radius		0.0, 0.0
		system_radius			2.0			    ; radius used for culling
		batched
	}
}

effect normal_lighting_drip
{
	type particle
	{
		texture				models_effects/textures/bluespark.dds	
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

		size_range       	0.1, 0.5
		age_range        	0.8, 2.0
	    grow_range		 	0.2, 0.3
		vel_range  			-0.0, -0.0 
		die_size			0.2,0.5
		spin_rate			    -0.1, 0.1
		acceleration			-0.05,-0.20,-0.2
		sort_bias				-1
		sort 					instance
		
		keyframe_colour
		{
;				0.0		255, 255, 255, 255
				0.0, 	0,    222, 191,   185
				0.2, 	80,  222, 191,   185
				1.8, 	35,    222, 191,   185
				2.2, 	0,     222, 191,   185
		}
		
		alpha_max	   		255		 ; maximum alpha value
		initial_size		1.5, 0.8
		blend_type			additive
		offset				0.4, -0.6, -0.1
		max_particles       10000

		emitter distance_time
		{
			density			       1	     	; how many particels per second
			emitter_falloff_dist	100			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			6			
		}

		random_emit_radius		0.2, 0.4
		system_radius			2.0			    ; radius used for culling
		batched
	}
}

effect normal_lighting_smoke_trail
{
	type particle
 	{
		texture			models_effects/textures/bluespark.dds

		size_range      0.0, 2.5
		age_range       3.1, 1.6
	    grow_range		0.1, 0.0
		velocity   		1.0, 11.2
		spin_rate			    -0.09, 0.03
		acceleration			0,0.10,0
		sort_bias				0
		sort 					instance

		
		keyframe_colour
		{
;				0.0		255, 255, 255, 255
				0.0, 	255,   255, 255,     255
				0.1, 	250, 255,  255,   255
				0.5, 	250, 255,   255,   255
				1.0, 	250,   255,   255,   255
		}



		alpha_max	   	255		 ; maximum alpha value
		initial_size		1.3, 1.8
		offset				0.6, -0.6, -0.1
		max_particles       10000
		emitter distance
		{
			density			3 	     ; how many particels per meter
		}
		
		fade_time		0.5		

		clr_adjust_by_ambient_intensity		
	}
}

effect_set normal_lighting_set
{
	lod 1000
	{
		normal_lighting
		normal_lighting_drip
		normal_lighting_smoke_trail
	}
}

effect bolt_projectile
{
	type particle
 	{
		texture			models_effects/textures/bolt_bullet.dds
		sprite_origin		0.0, 0.0
		sprite_size			2.0, 2.0

		size_range       	0.001, 0.005
		age_range        	0.05, 0.1
	    grow_range		 	0.2, 0.4
		vel_range  			-0.0, -0.0 
;		die_size			0.1,0.2
		fade_time 			0.1, 0.2
		spin_rate			    -1.2, 1.2
		acceleration			0.00,20,0.0
		sort_bias				-1
		sort 					instance
		
		keyframe_colour
		{
;;				0.0		255, 255, 255, 255
				0.0, 	255,   255, 255,     255
				0.1, 	250, 255,  255,   255
				0.5, 	250, 255,   255,   255
				1.0, 	250,   255,   255,   255
		}
	
		alpha_max	   		255			 ; maximum alpha value
		initial_size		1.0, 0.5
		blend_type			additive
		offset				0.0, -0.0, 0.0
		max_particles       15000

		emitter distance_time
		{
			density			       1	     	; how many particels per second
			emitter_falloff_dist	1000			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			500			
		}

		random_emit_radius		0.1, 0.1
		system_radius			20.0			    ; radius used for culling
		batched
	}
}

effect_set bolt_lighting_set
{
	lod 1000
	{
		bolt_projectile
	}
}

effect avalanche_trail
{
	type particle
	{
		texture				models_effects/textures/icebuster.dds
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			5.4, 5.4

		size_range      2.8, 1.8
		age_range       0.15, 0.4
	    	grow_range		1.0, 1.0
		system_radius   20
		initial_size	1.6,1.6
		spin_rate       -3.1,3.1
		acceleration    0,-1,0
		max_particles   2000
		sort_bias				0
		sort 					instance
		offset          0,0,-1.0
		
		
		keyframe_colour
		{
				0.15, 	10,   255, 255,     255
				0.25, 	90,   255, 255,     255
				0.4, 	90,   255, 255,     255
				1.3, 	5,   255, 255,     255

		}

		
		alpha_max	   	255			 ; maximum alpha value
		blend_type			additive
		emitter distance
		{
			density			5 	     ; how many particels per meter
		}
		
		random_emit_radius		0.6,0,6

		clr_adjust_by_ambient_intensity		
	}
}

effect avalanshe_trail
{
	type particle
	{
		texture				models_effects/textures/icemagic.dds
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			30.4, 30.4

		size_range      2.8, 1.8
		age_range       0.15, 0.4
	    	grow_range		1.0, 1.0
		system_radius   20
		initial_size	1.6,1.6
		spin_rate       -3.1,3.1
		acceleration    0,-1,0
		max_particles   2000
		sort_bias				0
		sort 					instance
		offset          0,0,-1.0
		
		keyframe_colour
		{
				0.0, 	20,   150, 150,     220
				0.2, 	80,   150, 150,     220
				0.5, 	50,   150, 150,     220
				1.1, 	0,   150, 150,     220
		}
	
		alpha_max	   		255			 ; maximum alpha value
		offset				0.0, -0.0, 0.0
		max_particles       15000

		emitter distance_time
		{
			density			       2	     	; how many particels per second
			emitter_falloff_dist	500			; distance in meters to reduce emission over
			emitter_falloff_bias	0.6			
			distance_scale  		8
			max_distance			500			
		}

		random_emit_radius		0.1, 0.1
		system_radius			20.0			    ; radius used for culling
		batched
	}
}

effect_set avalanche_set
{
	lod 1000
	{
		avalanche_trail
		avalanshe_trail
	}
}

effect firebolt_projectile
{
	type particle
	{
		texture				models_effects/textures/firebolt.tga
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			3.0, 3.0

		size_range       	0.01, 0.05
;;;;;;;		age_range        	0.05, 0.1
;;;;;;;		age_range        	0.15, 0.2
		age_range        	0.07, 0.13
	    grow_range		 	0.2, 0.4
		vel_range  			-0.0, -0.0 
;		die_size			0.1,0.2
		fade_time 			0.1, 0.2
		spin_rate			    -1.2, 1.2
		acceleration			0.00,20,0.0
		sort_bias				-1
		sort 					instance
		
		keyframe_colour
		{
;;				0.0		255, 255, 255, 255
				0.0, 	255,   255, 255,     255
				0.1, 	250, 255,  255,   255
				0.5, 	250, 255,   255,   255
				1.0, 	250,   255,   255,   255
		}
	
		alpha_max	   		255			 ; maximum alpha value
		initial_size		1.0, 0.5
		offset				0.0, -0.0, 0.0
		max_particles       15000

		emitter distance_time
		{
			density			       3	     	; how many particels per second
			emitter_falloff_dist	1000			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			500			
		}

		random_emit_radius		0.1, 0.1
		system_radius			20.0			    ; radius used for culling
		batched
	}
}

effect_set firebolt_set
{
	lod 1000
	{
		firebolt_projectile
	}
}

effect fiery_comet_tail
{
	type particle
 	{
		texture				models_effects/textures/firebolt.tga
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			6.5, 6.5

		size_range      2.8, 1.8
		age_range       0.15, 0.4
	    	grow_range		1.0, 1.0
		system_radius   20
		initial_size	1.6,1.6
		spin_rate       -0.1,0.1
		acceleration    0,-1,0
		max_particles   2000
		sort_bias				0
		sort 					instance
		offset          0,0,-1.0
		
		
		keyframe_colour
		{
				0.0, 	0,   255, 255, 255
				0.05, 	50,   255, 255, 255
				0.2, 	130,   255, 255, 255
				1.1, 	0,   255, 255, 255

		}

		
		alpha_max	   	255			 ; maximum alpha value
		blend_type			additive
		emitter distance
		{
			density			8 	     ; how many particels per meter
		}
		
		random_emit_radius		0.6,0,6

		clr_adjust_by_ambient_intensity		
	}
}

effect fiery_comet_smoke
{
	type particle
 	{
		texture				models_effects/textures/firebolt.tga
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			6.5, 6.5

		size_range      2.8, 1.8
		age_range       0.2, 0.55
	    	grow_range		1.0, 1.0
		system_radius   20
		initial_size	1.7,1.7
		spin_rate       -0.1,0.1
		acceleration    0,-1,0
		max_particles   2000
		sort_bias				0
		sort 					instance
		offset          0,0,-1.0
		
		
		keyframe_colour
		{
				0.0, 	0,   50, 50, 50
				0.7, 	30,   50, 50, 50
				0.9, 	50,   50, 50, 50
				1.1, 	0,   50, 50, 50

		}

		
		alpha_max	   	255			 ; maximum alpha value
		emitter distance
		{
			density			5 	     ; how many particels per meter
		}
		
		random_emit_radius		0.6,0,6

		clr_adjust_by_ambient_intensity		
	}
}

effect comet_ball
{
	type particle
	{
		texture				models_effects/textures/firebolt.tga
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			3.0, 3.0

		size_range       	0.001, 0.005
		age_range        	0.0005, 0.0001
	    grow_range		 	0.2, 0.4
		vel_range  			-0.0, -0.0 
;		die_size			0.1,0.2
		fade_time 			0.1, 0.2
		spin_rate			    -0.6, 0.6
		acceleration			0.00,20,0.0
		sort_bias				-1
		sort 					instance
		
		keyframe_colour
		{
;;				0.0		255, 255, 200, 100
				0.0, 	255,   255, 200,     100
				0.1, 	255, 255,  200,   100
				0.5, 	255, 255,   200,   100
				1.0, 	255,   255,   200,   100
		}
	
		alpha_max	   		255			 ; maximum alpha value
		initial_size		1.6, 0.8
		blend_type			additive
		offset				0.0, -0.0, 0.0
		max_particles       15000

		emitter distance_time
		{
			density			       2	     	; how many particels per second
			emitter_falloff_dist	1000			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			500			
		}

		random_emit_radius		0.1, 0.1
		system_radius			20.0			    ; radius used for culling
		batched
	}
}

effect_set comet_set
{
	lod 1000
	{
		fiery_comet_tail
		fiery_comet_smoke
		comet_ball
	}
}

effect drain
{
	type particle
 	{
		texture			models_effects/textures/vampiricdrain.dds

		size_range      0.0, 1.5
		age_range       3.1, 2.6
	    grow_range		0.1, 0.0
		velocity   		1.2, 11.2
		spin_rate			    -0.04, 0.02
		acceleration			0,0.10,0
		sort_bias				0
		sort 					instance

		
		keyframe_colour
		{
;				0.0		255, 255, 255, 255
				0.0, 	255,   255, 255,     255
				0.1, 	250, 255,  255,   255
				0.5, 	250, 255,   255,   255
				1.0, 	250,   255,   255,   255
		}



		alpha_max	   	255		 ; maximum alpha value
		initial_size		0.7, 0.7
		offset				0.0, -0.0, -0.0
		max_particles       10000
		emitter distance
		{
			density			3 	     ; how many particels per meter
		}
		
		fade_time		0.001		

		clr_adjust_by_ambient_intensity		
	}
}

effect_set vampiric_drain_set
{
	lod 1000
	{
		drain
	}
}

effect ash
{
	type particle
 	{
		texture				models_effects/textures/ash.tga
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			6.5, 6.5

		size_range      2.9, 1.9
		age_range       0.2, 0.55
	    	grow_range		1.2, 1.2
		system_radius   20
		initial_size	1.7,1.7
		spin_rate       -0.1,0.1
		acceleration    0,-1,0
		max_particles   3000
		sort_bias				0
		sort 					instance
		offset          0,0, 0.0
		
		
		keyframe_colour
		{
				0.0, 	0,   255, 255, 255
				0.2, 	30,   255, 255, 255
				0.7, 	90,   255, 255, 255
				0.9, 	150,   255, 255, 255
				1.1, 	30,   255, 255, 255

		}

		
		alpha_max	   	255			 ; maximum alpha value
		emitter distance
		{
			density			10 	     ; how many particels per meter
		}
		
		random_emit_radius		0.6,0,6

		clr_adjust_by_ambient_intensity		
	}
}

effect_set ash_set
{
	lod 1000
	{
		ash
	}
}

effect ashbolt
{
	type particle
	{
		texture				models_effects/textures/ash.tga
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			3.0, 3.0

		size_range       	0.001, 0.005
		age_range        	0.0005, 0.0001
	    grow_range		 	0.2, 0.4
		vel_range  			-0.0, -0.0 
;		die_size			0.1,0.2
		fade_time 			0.1, 0.2
		spin_rate			    -1.2, 1.2
		acceleration			0.00,20,0.0
		sort_bias				-1
		sort 					instance
		
		keyframe_colour
		{
;;				0.0		255, 255, 255, 255
				0.0, 	255,   255, 255,     255
				0.1, 	255, 255,  255,   255
				0.5, 	255, 255,   255,   255
				1.0, 	255,   255,   255,   255
		}
	
		alpha_max	   		255			 ; maximum alpha value
		initial_size		2.0, 2.0
		offset				0.0, -0.0, 0.0
		max_particles       15000

		emitter distance_time
		{
			density			       1	     	; how many particels per second
			emitter_falloff_dist	1000			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			500			
		}

		random_emit_radius		0.1, 0.1
		system_radius			20.0			    ; radius used for culling
		batched
	}
}

effect_set ashbolt_set
{
	lod 1000
	{
		ashbolt
	}
}

effect bloodbolt
{
	type particle
	{
		texture				models_effects/textures/vampiricdrain.dds
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			3.0, 3.0

		size_range       	0.001, 0.005
		age_range        	0.0005, 0.0001
	    grow_range		 	0.2, 0.4
		vel_range  			-0.0, -0.0 
;		die_size			0.1,0.2
		fade_time 			0.1, 0.2
		spin_rate			    -1.2, 1.2
		acceleration			0.00,20,0.0
		sort_bias				-1
		sort 					instance
		
		keyframe_colour
		{
;;				0.0		255, 255, 255, 255
				0.0, 	255,   255, 255,     255
				0.1, 	255, 255,  255,   255
				0.5, 	255, 255,   255,   255
				1.0, 	255,   255,   255,   255
		}
	
		alpha_max	   		255			 ; maximum alpha value
		initial_size		2.3, 2.3
		offset				0.0, -0.0, 0.0
		max_particles       15000

		emitter distance_time
		{
			density			       1	     	; how many particels per second
			emitter_falloff_dist	1000			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		10
			max_distance			500			
		}

		random_emit_radius		0.2, 0.2
		system_radius			20.0			    ; radius used for culling
		batched
	}
}

effect_set bloodbolt_set
{
	lod 1000
	{
		bloodbolt
	}
}