[Template AARUSHalftrackArtillery Inherit=AAUnitRUSVehicleHalftrack]
{
	[BodyComponent]
	{
		health = 500
		defense = 200
	}
	
	[PropertiesComponent]
	{
		[Property]
		property_IDS = front
		
		[Property]
		property_IDS = support		
		
		[Property]
		property_IDS = combat_unit
		
		[Property]
		property_IDS = halftrack_unit
	}

	[MoverComponent]
	{
		speed_max = 5.0
	}
	
	[PerformerComponent]
	{		
		[Ability Template=AAProjectileLocal]
		{
			[AbilityDefinition Template=AASPAShot]
			{
				name = "#rus_halftrack_artillery_AbilityDefinition_name"
				range = 16
				area = 1
				recharge_time = 10
					
				[Effect Template=APDamageEffect]
				amount = 900
				
				[Effect Template=MoraleLossEffect]
				amount = 1.0

				[WhenDo template=FXC_PlaySFX]
				audio_ids = rus_artillery_heavy
				
				[WhenDo Template=FXC_PlayObjectAnimation]
				object_animation_IDS = Recoil1

			}
		}
	}	
	

	
	[View]
	{
		resource_prefix = RUSHalftrackArtillery/RUSHalftrackArtillery

		[AspectNormal]
		{						
			[Animation Template=ObjectAnimationCustomPlay]
			ids = Recoil1
			length = 1
			kf = RUSHalftrackArtillery/RUSHalftrackArtilleryRecoil1.kf
		}
	}
}

;;----------------------------- UNITS ------------------------ ;;

[Thing Template=AARUSHalftrackArtillery]
{
	IDS = rus_halftrack_artillery
	name = "#rus_halftrack_artillery_Thing_name"
	editor_name = "#rus_halftrack_artillery_Thing_editor_name"

	[ElementComponent]
	{
		required_structures = rus_motor_pool
	}
