;;---------------------------------------------- JPNCarArmoredCO Portrait --------
[Thing Template=Portrait]
{
	ids = jpn_car_armored_co_portrait
	name = "#jpn_car_armored_co_portrait_name"

	[View]
	{
		resource_prefix = JPNCarArmoredCo/JPNCarArmoredCOPortrait

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

		}
	}
}


;;---------------------------------------------- RUSTankCO Unit --------



[Thing Template=AAUnitJPNVehicleJeep]
{
	IDS = jpn_car_armored_co
	name = "#jpn_car_armored_co_Thing_name"
	editor_name = "#jpn_car_armored_co_Thing_editor_name"

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

		[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_01
			location = exhaust_point_01	
		}
	}

	[ElementComponent]
	{
		required_structures = jpn_motor_pool
	}
	
	[PropertiesComponent]
	{
		[Property]
		property_IDS = captain

		[Property]
		property_IDS = front

		[Property]
		property_IDS = support
		
		[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 = "#jpn_car_armored_co_AbilityDefinition_name"
				area = 1.5
				attenuation_range_min = 0.5
				attenuation_factor_max = 0.5
				max_targets = 4

				recharge_time = 2
				range = 20

				[Effect Template=PierceDamageEffect]
				amount = 200
			
				[WhenDo Template=FXC_PlaySFX]
				audio_ids = jpn_mg_heavy
			}
		}
	}
	
	[View]
	{
		resource_prefix = JPNCarArmoredCo/JPNCarArmoredCo
		portrait_ids = jpn_car_armored_co_portrait

	}
}