[Thing Template=AAUnitRUSVehicleMediumTank]
{
	IDS = rus_tank_destroyer
	name = "#rus_tank_destroyer_name"
	editor_name = "#rus_tank_destroyer_editor_name"

	[BodyComponent]
	{
		health = 1000
		defense = 1500
	}
	
	[MoverComponent]
		
	{
		speed_max = 4.0
		
		[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_01
			location = exhaust_point_01	
	  	}
	  	
	  	[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_01
			location = exhaust_point_02	
	  	}
	}

	[ElementComponent]
	{
		required_properties = tech_heavy_tank
		required_structures = rus_motor_pool
		morale_value = 10
	}
	
	[PropertiesComponent]
	{		
		[Property]
		property_IDS = support

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

		[Ability template=AAProjectileLocal]
		{
			
			[AbilityDefinition Template=AAHeavyTankGun]
			{				
				name = "#rus_tank_destroyer_AbilityDefinition_name"
				recharge_time = 9
				range = 32
				
				[Effect Template=APDamageEffect]
				amount = 1600

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


				[Effect Template=EnchantmentEffect]
				{
					[EnchantmentProperty Template=EnchantmentProperty]
					{
					IDS = at_stun_rus2
					name = "#gbr_tank_destroyer_AbilityDefinition_Effect_EnchantmentProperty_name"
					duration = 1
					enchantment_type = ench_type_generic
					icon = /properties/PropertyIcons/IconPropertyMovement.png
			
						[Modifier Template=FlagModifier]
						modifier_flag = PARALYZE			
		
						[WhenAdded template=FXC_CreateVFX]
						VFX_IDS = smoke_tint
					}
				}
				
				[WhenDo template=FXC_PlaySFX]
				audio_ids = rus_cannon_heavy
				
				[WhenDo Template=FXC_PlayObjectAnimation]
				object_animation_IDS = Recoil1
			}
		}
	}
	
	[View]
	{
		resource_prefix = RUSTankDestroyer/RUSTankDestroyer
		
		[AspectNormal]
		{						
			[Animation Template=ObjectAnimationCustomPlay]
			ids = Recoil1
			length = 1
			kf = RUSTankDestroyer/RUSTankDestroyerRecoil1.kf
		}
	}
}