
[Template GERTankCO Template=AAUnitGERVehicleMediumTank]
{
	name = "#ger_tank_co_Thing_name"
	
	[BodyComponent]
	{
		health = 1000
		defense = 800
	}
	
	[MoverComponent]
	{
		speed_max = 2.4
		acceleration = 3
		
		[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_01
			location = exhaust_point_01	
	  	}
	}
	
	[ElementComponent]
	{
		required_structures = ger_motor_pool
	}
	
	[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 = "#ger_tank_co_AbilityDefinition_name"
				recharge_time = 7
				range = 32
				area = 1

				[WhenDo Template=FXC_PlayObjectAnimation]
				object_animation_IDS = Recoil1
				
				[Effect Template=APDamageEffect]
				amount = 1400

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


				[WhenDo template=FXC_PlaySFX]
  				audio_ids = ger_cannon_medium
			}
		}
	}
	
	[View]
	{
		resource_prefix = GERTankCO/GERTankCO
		portrait_ids = ger_tank_co_portrait
		
		[AspectNormal]
		{						
			[Animation Template=ObjectAnimationCustomPlay]
			ids = Recoil1
			length = 1
			kf = GERTankCO/GERTankCORecoil1.kf
		}
	}
}

[Thing Template=GERTankCO]
{
	IDS = ger_tank_co
	editor_name = "#ger_tank_co_Thing_editor_name"
}


;; For the Special Op - Panzer Hohle
[Thing Template=GERTankCO]
{
	IDS = ger_tank_co_hohle
	editor_name = "#ger_tank_co_holhe_editor_name"

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