;;--------------------------------------------- Flame Attack ---

[Template AAVehicleFlame Inherit=AAProjectileAttack]
{
	projectile_ids = flame_vehicle_projectile
	ability_type = null

	[WhenDo template=FXC_CreateVFX]
	{
		VFX_IDS = flame_hit_effect_ground
		at = TARGET_GROUND
		attached = false
		delay = 0.7
	}
	
	[WhenDo template=FXC_CreateVFX]
  	{
  		VFX_IDS = flame_hit_effect
  		at = TARGET_HIT_POSITION
  		attached = false
  		delay = 0.7
  	}

	[WhenDo template=FXC_CreateVFX]
  	{
  		VFX_IDS = flame_ring
  		at = TARGET_HIT_POSITION
  		attached = false
  		delay = 0.7
  	}
	
}; end [Template AAInfantryFlame]

;;------------------------------------------------------

[Thing Template=AAUnitGERVehicleMediumTank]
{
	IDS = ger_tank_flame
	name = "#ger_tank_flame_name"
	editor_name = "#ger_tank_flame_editor_name"

	hide_if_missing_properties = false

	[BodyComponent]
	{
		health = 1000
		defense = 700
	}

	[ElementComponent]
	{
		required_structures = ger_motor_pool
	}

	[MoverComponent]
	{
		speed_max = 4.5
		acceleration = 2.0
		
		[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_02
			location = exhaust_point_01	
	  	}
	  	
	  	[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_02
			location = exhaust_point_02	
	  	}
	}
	
	[PerformerComponent]
	{
		[Ability template=AATurretAttackLocal]
		{
			[AbilityDefinition Template=AAVehicleFlame]
			{				
				
				name = "#ger_tank_flame_AbilityDefinition_name"
				icon = /Properties/AbilityIcons/IconAbilityDamageFire.png
				range = 2
				recharge_time = 15
				area = 3
				max_targets = 20
				
				[Effect Template=FireDamageEffect]
				amount = 4000
				
				[WhenDo template=FXC_PlaySFX]
				audio_ids = gbr_flame_tank
				
				[Effect Template=MoraleLossEffect]
				amount = 100.0
				
			}
		}
	}

	[PropertiesComponent]
	{
		[Property]
		property_IDS = front

		[Property]
		property_IDS = captain

		[Property]
		property_IDS = support
		
		[Property]
		property_IDS = combat_unit
	}
	
	[View]
	{
		resource_prefix = GERTankFlame/GERTankFlame
	}
}