[Template AAUnitGBRSPA Inherit=AAUnitUSAVehicleSPA]
{
	[BodyComponent]
	{
		health = 500
		defense = 400
	}

	[MoverComponent]
	{
		speed_max = 4.0
		acceleration = 2
		
		[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]
	
	[PropertiesComponent]
	{
		[Property]
		property_IDS = support

		[Property]
		property_IDS = front		
		
		[Property]
		property_IDS = combat_unit
	}
	
	[View]
	{
		resource_prefix = USATankM7/USATankM7
		
		[AspectNormal]
		{						
			[Animation Template=ObjectAnimationCustomPlay]
			ids = Recoil1
			length = 1
			kf = USATankM7/USATankM7Recoil1.kf
		}
	}
}


;;----------------------------- UNITS ------------------------ ;;

[Thing Template=AAUnitGBRSPA]
{
	IDS = usa_tank_m7
	name = "#usa_tank_m7_Thing_name"
	editor_name = "#usa_tank_m7_Thing_editor_name"

	[ElementComponent]
	{
		required_structures = usa_motor_pool
	}

	[PerformerComponent]
	{
		
		[Ability Template=AAProjectileLocal]
		{						
			[AbilityDefinition Template=AASPAShot]
			{				
				name = "#usa_tank_m7_AbilityDefinition_name"
				recharge_time = 15
				range = 128
				area = 4
				max_targets = 20
					
				[Flags] 
				bombard = true
				
				[Effect Template=BlastDamageEffect]
				amount = 4000

				[Effect Template=MoraleLossEffect]
				amount = 1
				
				[WhenDo template=FXC_PlaySFX]
				audio_ids = usa_artillery_heavy
				
				[WhenDo Template=FXC_PlayObjectAnimation]
				object_animation_IDS = Recoil1
			}

		}
	}
}