;;---------------------------------------------- USACarArmoredCO Portrait --------
[Thing Template=Portrait]
{
	ids = usa_car_armored_co_portrait
	name = "#usa_car_armored_co_portrait_name"

	[View]
	{
		resource_prefix = USACarArmoredCo/USACarArmoredCOPortrait

		[TextureSearchPath]
		path = /Shared/SharedTextures

		[AspectNormal]
		{
			[Animation Template=ObjectAnimationIdle]
			{
				ids = idle
			}

			[Animation Template=ObjectAnimationFidget]
			{
				ids = fidget1
			}
			
			[Animation Template=ObjectAnimationFidget]
			{
				ids = fidget2
			}
			[Animation Template=ObjectAnimationFidget]
			{
				ids = talk1
			}

		}
	}
}


;;---------------------------------------------- USACarArmoredCO Unit --------

[Thing Template=AAUnitUSAVehicleJeep]
{
	IDS = usa_car_armored_co
	name = "#usa_car_armored_co_Thing_name"
	editor_name = "#usa_car_armored_co_Thing_editor_name"

	[BodyComponent]
	{
		health = 500
		defense = 200
	}
	
	[MoverComponent]
	{
		speed_max = 6.0
		acceleration = 8
	}

	[ElementComponent]
	{
		required_structures = usa_motor_pool
	}
	
	[PropertiesComponent]
	{
		[Property]
		property_IDS = front

		[Property]
		property_IDS = support

		[Property]
		property_IDS = captain
		
		[Property]
		property_IDS = combat_unit
	}
	
	[PerformerComponent]
	{
		[Turret]
		{
			turret_ids = Turret
			yaw_rotation_per_sec_degrees = 45
			yaw_rotation_range_degrees = 360
			yaw_start_degrees = 0
			offset = -0.097,0.595
		}
		
		[Ability Template=AAAttackLocal]
		{
			turret_ids = Turret
						
			[AbilityDefinition Template=AAVehicleMG]
			{
				name = "#usa_car_armored_co_AbilityDefinition_name"
				area = 1.5
				attenuation_range_min = 0.5
				attenuation_factor_max = 0.5
				max_targets = 4
				
				recharge_time = 3
				range = 20
				
				[Effect Template=APDamageEffect]
				amount = 300
				
				[WhenDo Template=FXC_PlaySFX]
				audio_ids = usa_mg_heavy
			}
		}
	}
	
	[View]
	{
		resource_prefix = USACarArmoredCO/USACarArmoredCO

		portrait_ids = usa_car_armored_co_portrait

	}
}