;;---------------------------------------------- RUSTankCO Portrait --------
[Thing Template=Portrait]
{
	ids = rus_tank_co_portrait
	name = "#rus_tank_co_portrait_name"

	[View]
	{
		resource_prefix = RUSTankCo/RUSTankCOPortrait

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


[Template RUSTankCO Template=AAUnitRUSVehicleMediumTank]
{
	name = "#rus_tank_co_Thing_name"
	
	[BodyComponent]
	{
		health = 2000
		defense = 1300
	}
	
	[MoverComponent]
	{
		speed_max = 3.5
		turn_radians_per_sec = 2
		
		[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_01
			location = exhaust_point_01	
	  	}
	}
	
	[ElementComponent]
	{
		required_structures = rus_motor_pool
		required_properties = tech_heavy_tank
	}
	
	[PropertiesComponent]
	{
		[Property]
		property_IDS = captain

		[Property]
		property_IDS = front

		[Property]
		property_IDS = support
		
		[Property]
		property_IDS = combat_unit
	}
	
	[PerformerComponent]
	{
		check_damage_resistance = true

		[Ability template=AATurretAttackLocal]
		{
			
			[AbilityDefinition Template=AAMediumTankGun]
			{				
				name = "#rus_tank_co_AbilityDefinition_name"
				recharge_time = 8
				range = 24
				area = 1

				[Effect Template=APDamageEffect]
				amount = 1200

				[Effect Template=AddDamageEffect]
				damage_type_IDS = gunfire
				targets = infantry
				amount = 5

				
				[WhenDo Template=FXC_PlayObjectAnimation]
				object_animation_IDS = Recoil1
			
				[WhenDo template=FXC_PlaySFX]
				audio_ids = rus_cannon_medium
			
			}
		}
	}
	
	[View]
	{
		resource_prefix = RUSTankCO/RUSTankCO

		portrait_ids = rus_tank_co_portrait	
	
		[AspectNormal]
		{						
			[Animation Template=ObjectAnimationCustomPlay]
			ids = Recoil1
			length = 1
			kf = RUSTankCO/RUSTankCORecoil1.kf
		}
	}
}

[Thing Template=RUSTankCO]
{
	IDS = rus_tank_co
	editor_name = "#rus_tank_co_Thing_editor_name"
}

;; For the Special Op Maskirovka
[Thing Template=RUSTankCO]
{
	IDS = rus_tank_co_maskirovka
	editor_name = "#rus_tank_co_maskirovka_editor_name"

	[Placement]
	placement_group_ids = null
	
	[View]
	{
		[WhenCreated Template=FXC_CreateVFX]
		VFX_IDS = maskirovka_shell
	}
}