<?xml version="1.0" encoding="utf-8"?>
<AssetDeclaration xmlns="uri:ea.com:eala:asset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude">
	<Tags></Tags>
	<Includes>
		<Include
			type="all"
			source="ART:AUSeeker_SKN.w3x" />
		<Include
			type="all"
			source="ART:AUSeeker_FP.w3x" />			
		<Include
			type="all"
			source="ART:AUSeekerR.w3x" />
		<Include
			type="all"
			source="ART:FXAspotlight.w3x" />
		<!-- Base Object -->
		<Include
			type="instance"
			source="DATA:BaseObjects/BaseSquad.xml" />
	</Includes>
	<GameObject
		id="AlienCustomizableVehicle"
		inheritFrom="BaseSquad"
		SelectPortrait="Portrait_Millipede"
		ButtonImage="Portrait_Millipede"
		Side="ALIEN"
		EditorSorting="UNIT"
		VoicePriority="215"
		TransportSlotCount="1"
		BuildCost="1400"
		BuildTime="14"
		CommandSet="AlienMechapedeCommandSet"
		CommandPoints="100" 
		KindOf="SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT VEHICLE HORDE ARMY_SUMMARY LARGE_RECTANGLE_PATHFIND SKIRMISH_AI_DONT_GARRISON CAN_CAPTURE CAN_BE_FAVORITE_UNIT SCORE META_HORDE USE_STRICT_PATHING"
		IsTrainable="true"
		FormationWidth="2"
		FormationDepth="1"
		ThreatLevel="0"
		ProductionQueueType="VEHICLE"
		UnitCategory="VEHICLE"
		WeaponCategory="GUN"
		EditorName="AlienCustomizableVehicle"
		Description="Desc:AlienCustomizableVehicle"
		TypeDescription="Type:AlienCustomizableVehicle"
		UnitTypeIcon="">
		<DisplayName
			xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">NAME:AlienCustomizableVehicle</DisplayName>
		<GameDependency>
			<RequiredObject>AlienReactor</RequiredObject>
		</GameDependency>
		<ArmorSet
			Armor="NoArmor" />
    <LocomotorSet
			Locomotor="MillipedeLocomotor"
			Condition="NORMAL"
			Speed="100.0" />
    <SkirmishAIInformation
			UnitBuilderStandardCombatUnit="true" />
    <SkirmishAIInformation
			UnitBuilderStandardCombatUnit="true" />
		<Draws>
			<ScriptedModelDraw
				id="ModuleTag_Draw"
				OkToChangeModelColor="true"
				DependencySharedModelFlags="EMOTION_TAUNTING EMOTION_ALERT EMOTION_MORALE_HIGH EMOTION_MORALE_LOW EMOTION_AFRAID EMOTION_COWER SELECTED  EMOTION_TERROR EMOTION_LOOK_TO_SKY">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="FORMATION_PREVIEW">
					<Model
						Name="FXShockTrpr_FP" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="WORLD_BUILDER">
					<Model
						Name="SquadMarkGUMis" />
				</ModelConditionState>
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
			<WeaponSetUpdate
				id="ModuleTag_WeaponSetUpdate">
				<WeaponSlotHardpoint
					ID="1"
					AllowInterleavedFiring="false"
					InterleavedStyle="INTERLEAVE_FIRST_AVAILABLE"
					WeaponChoiceCriteria="PREFER_MOST_DAMAGE">
					<Weapon
						Ordering="PRIMARY_WEAPON"
						Template="MechapedeRangefinder" />
				</WeaponSlotHardpoint>
			</WeaponSetUpdate>
			<StealthDetectorUpdate
				id="ModuleTag_StealthDetect"
				DetectionRange="100" />
			<Physics
				id="ModuleTag_Physics"></Physics>
				
			<HordeContain
				id="ModuleTag_HordeContain"
				FrontAngle="4.7123"
				FlankedDelaySeconds="2.0"
				ShowPips="false"
				Formation="MAIN"
				MeleeAttackLeashDistance="1"
				Slots="8"
				ObjectStatusOfContained=""
				ConditionForEntry="INVALID"
				DestroyHordeOnBannerDeath="true"
				ExitBannerCarrierWithHorde="true"
				FollowTheLeader="true">
				<PassengerFilter
					Rule="NONE"
					Include="VEHICLE" />
				<DieMuxData />
				<InitialPayload
					Name="AlienMillipedeBody"
					Count="0" />
				<MeleeBehavior
					Type="AMOEBA" />
				<RankInfo
					RankID="1"
					UnitType="AlienMillipedeBody">
          <Position
						X="-18"
						Y="0" />
        </RankInfo>
				<RankInfo
					RankID="2"
					UnitType="AlienMillipedeBody">
          <Position
						X="-36"
						Y="0" />
        </RankInfo>
				<RankInfo
					RankID="3"
					UnitType="AlienMillipedeBody">
          <Position
						X="-54"
						Y="0" />
        </RankInfo>
				<RankInfo
					RankID="4"
					UnitType="AlienMillipedeBody">
          <Position
						X="-72"
						Y="0" />
        </RankInfo>
				<RankInfo
					RankID="5"
					UnitType="AlienMillipedeBody">
          <Position
						X="-90"
						Y="0" />
        </RankInfo>
				<RankInfo
					RankID="6"
					UnitType="AlienMillipedeBody">
          <Position
						X="-108"
						Y="0" />
        </RankInfo>
				<RankInfo
					RankID="7"
					UnitType="AlienMillipedeBody">
          <Position
						X="-126"
						Y="0" />
        </RankInfo>
				<RankInfo
					RankID="8"
					UnitType="AlienMillipedeBody">
          <Position
						X="-144"
						Y="0" />
        </RankInfo>
				<!--				<RankToReleaseWhenAttacking>1</RankToReleaseWhenAttacking>
				<RankToReleaseWhenAttacking>2</RankToReleaseWhenAttacking>
				<RankToReleaseWhenAttacking>3</RankToReleaseWhenAttacking>
        <RankToReleaseWhenAttacking>4</RankToReleaseWhenAttacking>
        <RankToReleaseWhenAttacking>5</RankToReleaseWhenAttacking>
        <RankToReleaseWhenAttacking>6</RankToReleaseWhenAttacking>
        <RankToReleaseWhenAttacking>7</RankToReleaseWhenAttacking>
				<RankToReleaseWhenAttacking>8</RankToReleaseWhenAttacking>-->
<!--<RankToReleaseWhenAttacking>1</RankToReleaseWhenAttacking>-->
        <BannerCarrierPosition>
					<UnitType>AlienMillipedeHead</UnitType>
					<Pos
						x="0"
						y="0" />
				</BannerCarrierPosition>
				<BannerCarriersAllowed>AlienMillipedeHead</BannerCarriersAllowed>
				<WiggleBehavior
						WiggleAmplitude="0.30"
						WiggleFrequency="0.3"
						WiggleIdleAmplitude="7"
						WiggleIdleFrequency="0.4" />
			</HordeContain>
			<SpawnHordeMemberSpecialPower
				id="ModuleTag_SpecialAddShardModule"
				SpecialPowerTemplate="SpecialPower_MechapedeAddShardModule"
				AllowBackwardsReformMovement="true" >
				<SpawnMemberEntry
					Object="AlienMillipedeBody"
					Count="1"
					SpawnFX="FX_AlienMechapedeSpawnLink"
					GrantUpgradeOnSpawn="Upgrade_MechapedeShardWeapon"
					SpawnAtNextAvailableSpot="true"/>
			</SpawnHordeMemberSpecialPower>
			<SpawnHordeMemberSpecialPower
				id="ModuleTag_SpecialAddTioxinModule"
				SpecialPowerTemplate="SpecialPower_MechapedeAddTioxinModule"
				AllowBackwardsReformMovement="true" >
				<SpawnMemberEntry
					Object="AlienMillipedeBody"
					Count="1"
					SpawnFX="FX_AlienMechapedeSpawnLink"
					GrantUpgradeOnSpawn="Upgrade_MechapedeTioxinWeapon"
					SpawnAtNextAvailableSpot="true"/>
			</SpawnHordeMemberSpecialPower>
			<SpawnHordeMemberSpecialPower
				id="ModuleTag_SpecialAddDiskModule"
				SpecialPowerTemplate="SpecialPower_MechapedeAddDiskModule"
				AllowBackwardsReformMovement="true" >
				<SpawnMemberEntry
					Object="AlienMillipedeBody"
					Count="1"
					SpawnFX="FX_AlienMechapedeSpawnLink" 
					GrantUpgradeOnSpawn="Upgrade_MechapedeDiskWeapon"
					SpawnAtNextAvailableSpot="true"/>
			</SpawnHordeMemberSpecialPower>
			<SpawnHordeMemberSpecialPower
				id="ModuleTag_SpecialAddRazorModule"
				SpecialPowerTemplate="SpecialPower_MechapedeAddRazorModule"
				AllowBackwardsReformMovement="true"
				>
				<SpawnMemberEntry
					Object="AlienMillipedeBody"
					Count="1"
					SpawnFX="FX_AlienMechapedeSpawnLink" 
					GrantUpgradeOnSpawn="Upgrade_MechapedeRazorWeapon"
					SpawnAtNextAvailableSpot="true"/>
			</SpawnHordeMemberSpecialPower>

      <AISpecialPowerUpdate
				id="ModuleTag_PurchaseMechapedeAddRazorModule"
				CommandButtonName="SpecialPower_MechapedeAddRazorModule"
				SpecialPowerAIType="SPECIAL_POWER_BASIC_SELF_BUFF" />
      <AISpecialPowerUpdate
				id="ModuleTag_PurchaseMechapedeShardWeapon"
				CommandButtonName="Command_AlienMechapedeAddShardModule"
				SpecialPowerAIType="SPECIAL_POWER_BASIC_SELF_BUFF" />
      <AISpecialPowerUpdate
				id="ModuleTag_PurchaseMechapedeAddDiskModule"
				CommandButtonName="Command_AlienMechapedeAddDiskModule"
				SpecialPowerAIType="SPECIAL_POWER_BASIC_SELF_BUFF" />
      <AISpecialPowerUpdate
				id="ModuleTag_PurchaseMechapedeTioxinWeapon"
				CommandButtonName="Command_AlienMechapedeAddTioxinModule"
				SpecialPowerAIType="SPECIAL_POWER_BASIC_SELF_BUFF" />

      <ProductionUpdate
				id="ModuleTag_ProductionUpdate"
				GiveNoXP="true" />
			<xi:include
				href="DATA:Includes/CaptureBehavior.xml"
				xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:Behaviors/child::*)" />
		</Behaviors>
		<AI>
			<HordeAIUpdate
				id="ModuleTag_HordeAIUpdate"
				AutoAcquireEnemiesWhenIdle="YES ATTACK_BUILDINGS"
				MaxCowerTime="5.0s"
				MinCowerTime="3.0s"
				CanAttackWhileContained="true">
				<UnitAITargetChooserData
					SympathyRange="25.0" />
			</HordeAIUpdate>
		</AI>
		<Body>
			<ImmortalBody
				id="ModuleTag_ImmortalBody"
				MaxHealth="1.0" />
		</Body>
		<ClientBehaviors>
			<ModelConditionAudioLoopClientBehavior id="ModuleTag_MoveSounds">
				<ModelConditionSound Sound="ALI_Mechapede_MoveSweetenerMS" RequiredFlags="TURN_LEFT" />
				<ModelConditionSound Sound="ALI_Mechapede_MoveSweetenerMS" RequiredFlags="TURN_RIGHT" />
				<ModelConditionSound Sound="ALI_Mechapede_MoveSweetenerMS" RequiredFlags="TURN_LEFT_HIGH_SPEED" />
				<ModelConditionSound Sound="ALI_Mechapede_MoveSweetenerMS" RequiredFlags="TURN_RIGHT_HIGH_SPEED" />
				<ModelConditionSound Sound="ALI_Mechapede_MoveSweetenerMS" RequiredFlags="ACCELERATE" />
			</ModelConditionAudioLoopClientBehavior>
		</ClientBehaviors>
		<Geometry
			IsSmall="false">
			<Shape
				Type="BOX"
				MajorRadius="90.0"
				MinorRadius="20.0"
				Height="10.0" />
		</Geometry>
		<AudioArrayVoice>
			<AudioEntry Sound="ALI_Mechapede_SoundAttack" AudioType="voiceAttack" />
			<AudioEntry Sound="ALI_Mechapede_SoundCreate" AudioType="voiceCreated" /> <!-- no worky -->
			<AudioEntry Sound="ALI_Mechapede_SoundCreate" AudioType="voiceFullyCreated" /> <!-- no worky -->
			<AudioEntry Sound="ALI_Mechapede_SoundMove" AudioType="voiceMove" />
			<AudioEntry Sound="ALI_Mechapede_SoundSelectMS" AudioType="voiceSelect" />
			<NamedEntry Sound="ALI_Buzzers_SoundSplit" Name="UncombineWithUnit" />
		</AudioArrayVoice>
		<AudioArraySound>
			<AudioEntry Sound="ALI_Mechapede_BodySpawnedMS" AudioType="soundAmbient" /> 
			<AudioEntry Sound="ALI_Mechapede_MoveStart" AudioType="soundMoveStart" />
			<AudioEntry Sound="ALI_Mechapede_MoveLoop" AudioType="soundMoveLoop" />
			<!-- <AudioEntry Sound="ALI_Mechapede_SoundCreate" AudioType="soundCreated" /> no worky -->
<!--
			<AudioEntry Sound="ALI_Mechapede_IdleLoop" AudioType="soundAmbient" />
-->
		</AudioArraySound>
		<VisionInfo
			VisionRange="350"
			ShroudClearingRange="400"
			MaxVisionBonusPercent="300"
			VisionBonusTestRadius="200"
			VisionBonusPercentPerFoot="1" />
		<CrusherInfo
			UseCrushAttack="false"
			CrushableLevel="2"
			CrusherLevel="0"
			CrushEqualLevelProps="false"
			/>
	</GameObject>
</AssetDeclaration>
