;;---------------------------------------------- USAInfantryCO Portrait --------
[Thing Template=Portrait]
{
	ids = usa_infantry_co_portrait
	name = "#usa_infantry_co_portrait_name"

	[View]
	{
		resource_prefix = USAInfantryCo/USAInfantryCOPortrait

		[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
			}

		}
	}
}


;;---------------------------------------------- USAInfantryCO Unit --------

[Thing Template=AAUnitUSAProne]
{
	IDS = usa_infantry_co
	name = "#usa_infantry_co_Thing_name"
	editor_name = "#usa_infantry_co_Thing_editor_name"
	

		
	[BodyComponent]
	health = 80
	defense = 1
	
	[CharacterComponent Template=AAInfantrySMGCharacterComponent]
	
	[ElementComponent]
	morale_value = 100
	
	[MoverComponent]
	speed_max = 1.0
	
	[PropertiesComponent]
	{
		[Property]
		property_IDS = captain

		[Property]
		property_IDS = property_infantry_unit
		
		[Property]
		property_IDS = combat_unit
	}
	
	[PerformerComponent]
	{
		[Ability Template=AAGunLocal]
		{
			[AbilityDefinition Template=AAInfantrySMG]
			{				
				name = "#usa_infantry_co_AbilityDefinition_name"
				recharge_time = 2
				range = 3
				
				[Effect Template=PierceDamageEffect]
				amount = 60

				[WhenDo template=FXC_PlaySFX]
				audio_ids = usa_mg_light
			}
		}
		
		[Ability Template=AAGrenadeLocal]
		{
			[AbilityDefinition Template=AAThrownGrenade]
			{
				name = "#usa_infantry_AbilityDefinition_name_2"
				projectile_ids = grenade01
				
				[Effect Template=BlastDamageEffect]
				amount = 80
			}
		}
	}

	[View]
	{
		resource_prefix = USAInfantryCO/USAInfantryCO

		portrait_ids = usa_infantry_co_portrait

		[WhenCreated Template=FXC_Equipment]
		action = UNHIDE
		location = rhand
		equipment_type_ids = rifle
	}
		
}