<?xml version="1.0" encoding="utf-8"?>
<AssetDeclaration xmlns="uri:ea.com:eala:asset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Tags></Tags>
	<Includes>
		<Include
			type="all"
			source="ART:AUDronShip_SKN.w3x" />
		<Include
			type="all"
			source="ART:AUDronShipR_SKN.w3x" />
		<Include
			type="all"
			source="ART:AUDronShip_SKL.w3x" />
		<Include
			type="all"
			source="ART:AUDronShip_DPLY.w3x" />
		<!-- Base Object -->
		<Include
			type="instance"
			source="DATA:BaseObjects/BaseVehicle.xml" />
	</Includes>
	<GameObject
		id="AlienMCVUnpacking"
		inheritFrom="BaseVehicle"
		SelectPortrait="Portrait_ALIENMCV"
		ButtonImage="Portrait_ALIENMCV"
		Side="ALIEN"
		EditorSorting="UNIT"
		TransportSlotCount="1"
		BuildCost="3000"
		BuildTime="30"
		CommandSet="AlienMCVCommandSet"
		KindOf="PRELOAD SELECTABLE ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS SCORE VEHICLE AUTO_ACQUIRABLE_BY_AI NOT_AUTOACQUIRABLE MCV"
		ProductionQueueType="AIRCRAFT"
		RadarPriority="UNIT"
		EditorName="AlienMCVUnpacking">
		<DisplayName
			xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">NAME:ALIENMCV</DisplayName>
		<ArmorSet
			Armor="AlienMCVArmor"
			DamageFX="VehicleDamageFX" />
		<LocomotorSet
			Locomotor="AlienMCVUnpackingLocomotor"
			Condition="NORMAL"
			Speed="0.0" />
		<Draws>
			<TruckDraw
				id="ModuleTag_Draw"
				OkToChangeModelColor="true">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="AUDronShip_SKN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="REALLYDAMAGED">
					<Model
						Name="AUDronShipR_SKN" />
					<Texture
						Original="AUDronShip"
						New="AUDronShip_D" />
					<ShadowInfo
						Type="ADDITIVE_DECAL"
						SizeX="60"
						SizeY="60"
						OverrideLODVisibility="true"
						MaxHeight="200"
						UseHouseColor="true"
						Texture="AUDronShipDecalIdle" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFireGlow01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFireGlow02"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFireGlow01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFireGlow02"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFireGlow01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFireGlow02"
						FollowBone="true" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="DAMAGED">
					<Model
						Name="AUDronShip_SKN" />
					<ShadowInfo
						Type="ADDITIVE_DECAL"
						SizeX="60"
						SizeY="60"
						OverrideLODVisibility="true"
						MaxHeight="200"
						UseHouseColor="true"
						Texture="AUDronShipDecalIdle" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFireGlow01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFireGlow02"
						FollowBone="true" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT">
					<Animation
						AnimationName="AUDronShip_DPLY"
						AnimationMode="ONCE" />
				</AnimationState>
			</TruckDraw>
		</Draws>
		<Behaviors>
<!--
			<AudioLoopUpgrade 
				id="ALI_DroneShip_SoundUnpack" 
				SoundToPlay="ALI_DroneShip_SoundUnpack">
				<TriggeredBy>Upgrade_UnPack</TriggeredBy>
			</AudioLoopUpgrade>
	
	no worky		
			
-->
			<ProductionUpdate
				id="ModuleTag_ProductionUpdate" />
			<ProductionUpdateInfo
				id="ModuleTag_ProductionUpdateInfo"/>
			<Physics
				id="ModuleTag_Physics" />
			<!-- ground based locomotor, will fall as soon as its created -->
			<LifetimeUpdate
				id="ModuleTag_LifetimeUpdate"
				MinLifetime="3.5s"
				MaxLifetime="3.5s"
				IgnoreProjectileState="true"
				DeathType="FADED" />
			<!-- Normal Dying -->
			<SlowDeath
				id="ModuleTag_SlowDeath"
				SinkDelay="0s"
				SinkRate="0.5"
				DestructionDelay="0.01s">
				<OCL
					Type="INITIAL">
					<OCL>OCL_ALIENDroneShipInitialDebris</OCL>
				</OCL>
				<DieMuxData
					DeathTypes="ALL"
					DeathTypesForbidden="FADED" />
			</SlowDeath>
			<!-- Unpacking. Create a Drone Platform where we are -->
			<DestroyDie
				id="ModuleTag_Death">
				<DieMuxData
					DeathTypes="FADED" />
			</DestroyDie>
			<CreateObjectDie
				id="ModuleTag_CreateObjectDie"
				CreationList="OCL_AlienMCVUnpackingToConyard">
				<DieMuxData
					DeathTypes="FADED" />
			</CreateObjectDie>
		</Behaviors>
		<AI>
			<AIUpdate
				id="ModuleTag_AI"
				AILuaEventsList="AlienMCVUnpackingEventsList" />
		</AI>
		<Body>
			<ActiveBody
				id="ModuleTag_Body"
				MaxHealth="5000.0" />
		</Body>
		<ClientBehaviors>
			<ModelConditionAudioLoopClientBehavior id="ModuleTag_ALI_DroneShip_SoundUnpack">
				<ModelConditionSound Sound="ALI_DroneShip_SoundUnpack" RequiredFlags="RAPPELLING"/>
			</ModelConditionAudioLoopClientBehavior>
<!--
			<ModelConditionAudioLoopClientBehavior id="ModuleTag_ALI_DroneShip_SoundPackup">
				<ModelConditionSound Sound="ALI_DroneShip_SoundUnpack" RequiredFlags="LANDING" />
			</ModelConditionAudioLoopClientBehavior>
	this didn't work
-->
		</ClientBehaviors>


		<!-- IMPORTANT: Keep the geometry entries of AlienDronePlatform and AlienMCVUnpacking the same -->
		<Geometry
			IsSmall="false">
			<Shape
				Type="CYLINDER"
				MajorRadius="25.0"
				Height="100.0" />
		</Geometry>
<!--
		<AudioArrayVoice>
			<AudioEntry Sound="ALI_DroneShip_SoundUnpack" AudioType="voiceCreated" />
		</AudioArrayVoice>

	this didn't work		

-->
		<ShadowInfo
			Type="VOLUME" />
		<VisionInfo
			VisionRange="150"
			ShroudClearingRange="320" />
		<CrusherInfo
			CrusherLevel="2"
			CrushableLevel="2" />
	</GameObject>
</AssetDeclaration>