<?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:ABTibBHive.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHiveDr_SKN.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHiveBld_SKN.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHiveDr_OPN.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHiveDr_CLS.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHiveBld_AAN.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHive_D2SN.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHive_D2AN.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHive_D3SN.w3x" />
		<Include
			type="all"
			source="ART:ABTibBHive_D3AN.w3x" />
		<Include
			type="all"
			source="ART:ABTibHiveD.xml" />
		<!-- Base Object -->
		<Include
			type="instance"
			source="DATA:BaseObjects/BaseStructure.xml" />
	</Includes>
	<!-- NerveCenter -->
	<GameObject
		id="AlienTibHive"
		inheritFrom="BaseStructure"
		SelectPortrait="Portrait_TiberiumHive"
		ButtonImage="Portrait_TiberiumHive"
		Side="ALIEN"
		EditorSorting="STRUCTURE"
		BuildCost="1100"
		BuildTime="11"
		PlacementViewAngle="270d"
		CommandSet="AlienPhotonCannonCommandSet"
		KindOf="STRUCTURE SELECTABLE IMMOBILE CAN_CAST_REFLECTIONS CAN_ATTACK_STEALTHED CAN_ATTACK CAN_SEE_THROUGH_STRUCTURE TIBERIUM_BASED AUTO_ACQUIRABLE_BY_AI NOT_SELLABLE IGNORE_FOR_VICTORY"
		RadarPriority="STRUCTURE"
		ProductionQueueType="OTHER_STRUCTURE"
		BuildPlacementTypeFlag="TIBERIUM_FIELD"
		BuildInProximityToSamePlayerStucture="false"
		BuildOnRequiredObjectKindOf="TIBERIUM_FIELD HARVESTABLE"
		EditorName="AlienTibHive"
		Description="DESC:TiberiumHive">
		<DisplayName
			xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">NAME:TiberiumHive</DisplayName>
		<ArmorSet
			Armor="AlienTibHiveArmor"
			DamageFX="FactionStructureDamageFX" />
		<SkirmishAIInformation
			BaseBuildingLocation="SIDE" />
		<Draws>
			<ScriptedModelDraw
				id="ModuleTag_Draw"
				OkToChangeModelColor="true">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="ABTibBHive" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="STRUCTURE_UNPACKING">
					<Model
						Name="ABTibBHiveBld_SKN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE">
					<Model
						Name="ABTibBHive_D3SN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="REALLYDAMAGED">
					<Model
						Name="ABTibBHive_D2SN" />
					<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="ABTibBHive" />
					<Texture
						Original="ABTibBHive"
						New="ABTibHiveD" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
				</ModelConditionState>

				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="STRUCTURE_UNPACKING">
					<Animation
						AnimationName="ABTibBHiveBld_AAN"
						AnimationMode="ONCE" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE"
					StateName="STATE_Rubble"
					Flags="START_FRAME_LAST">
					<Animation
						AnimationName="ABTibBHive_D3AN"
						AnimationMode="MANUAL" />
					<Script>
						Prev = CurDrawablePrevAnimationState();
						if Prev ~= "STATE_Rubble" and Prev ~= "TRANS_IntoRubble" then
						CurDrawableSetTransitionAnimState("TRANS_IntoRubble")
						end
					</Script>
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="REALLYDAMAGED"
					StateName="STATE_ReallyDamaged"
					Flags="START_FRAME_LAST">
					<Animation
						AnimationName="ABTibBHive_D2AN"
						AnimationMode="MANUAL" />
					<Script>
						Prev = CurDrawablePrevAnimationState();
						if Prev ~= "STATE_ReallyDamaged" and Prev ~= "TRANS_IntoReallyDamaged" then
						CurDrawableSetTransitionAnimState("TRANS_IntoReallyDamaged")
						end
					</Script>
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_TRANSITION"
					StateName="TRANS_IntoReallyDamaged">
					<Animation
						AnimationName="ABTibBHive_D2AN"
						AnimationMode="ONCE"
						AnimationBlendTime="0" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_TRANSITION"
					StateName="TRANS_IntoRubble">
					<Animation
						AnimationName="ABTibBHive_D3AN"
						AnimationMode="ONCE"
						AnimationBlendTime="0" />
				</AnimationState>
			</ScriptedModelDraw>
			
			<!-- draw door -->
			<ScriptedModelDraw
				id="ModuleTag_DrawDoor"
				OkToChangeModelColor="true">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="ABTibBHiveDr_SKN" />
					<ParticleSysBone
						BoneName="none"
						FXParticleSystemTemplate="TibInfestationBugsSpew"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="none"
						FXParticleSystemTemplate="TibInfestationBugsSpewGlow"
						FollowBone="true" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT"
					Flags="RESTART_ANIM_WHEN_COMPLETE DO_NOT_PLAY_WHEN_UNPOWERED">
					<Animation
						AnimationName="ABTibBHiveDr_OPN"
						AnimationMode="ONCE"
						AnimationPriority="30" 
						AnimationBlendTime="15" />
					<Animation
						AnimationName="ABTibBHiveDr_CLS"
						AnimationMode="ONCE"
						AnimationPriority="10" 
						AnimationBlendTime="15" />
					<FXEvent
						Frame="29"
						FireWhenSkipped="true"
						Effect="FX_AlienTiberiumInfestation"
						Bone="ABBHiveB" />

				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE"
					StateName="STATE_Rubble">
				</AnimationState>			
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
			<FXListBehavior
				id="ModuleTag_FXList">
				<DieMuxData
					DeathTypes="ALL" />
				<Event
					Index="onTransitionToDamaged"
					FX="FX_AlienBuildingDamagedS" />
				<Event
					Index="onTransitionToReallyDamaged"
					FX="FX_AlienBuildingDamagedS" />
				<Event
					Index="onTransitionToRubble"
					FX="FX_AlienBuildingRubbleS" />
			</FXListBehavior>
			<SlowDeath
				id="ModuleTag_Death"
				SinkDelay="3.0s"
				SinkRate="4.0"
				DestructionDelay="8.0s">
				<Sound Type="INITIAL" List="ALI_Building_Die" />
				<DieMuxData
					DeathTypes="ALL" />
			</SlowDeath>
			<TiberiumFieldModBehavior
				id="ModuleTag_FieldMod"
				ObjectStatus="WEAPON_UPGRADED_01"
				ModelCondition="USER_4">
				<DieMuxData
					DeathTypes="ALL" />
			</TiberiumFieldModBehavior>
			<FireWeaponUpdate
				id="ModuleTag_CrystalWeapon">
				<FireWeaponNugget
					WeaponName="TiberiumHiveWeapon"
					FireDelay="1s"
				/>				
			</FireWeaponUpdate>
			<StructureUnpackUpdate
				UnpackTime="1.5s" />
			<xi:include
				href="../../Includes/GenericBuildingRepair.xml" />
			<xi:include
				href="../../Includes/GenericEngineerContain.xml" />
			<xi:include
				href="../../Includes/GenericAlienBuildingDestruction.xml" />
			<xi:include
				href="../../Includes/GenericAlienBuildingSuicide.xml" />
		</Behaviors>
		<Body>
			<ActiveBody
				id="ModuleTag_Body"
				MaxHealth="1000.0" />
		</Body>
		<Geometry
			IsSmall="false">
			<Shape
				Type="CYLINDER"
				MajorRadius="12.1114"
				MinorRadius="12.1114"
				Height="52.6624">
				<Offset
					x="0.0"
					y="0.0"
					z="0.0" />
			</Shape>
			<Shape
				Type="CYLINDER"
				MajorRadius="23.2912"
				MinorRadius="23.2912"
				Height="26.3312">
				<Offset
					x="0.0"
					y="-9.53674e-007"
					z="0.0" />
			</Shape>
			<ContactPoint>
				<Pos
					x="-14.9777"
					y="-15.975"
					z="0.0" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="5.87087"
					y="-6.02351"
					z="48.8448" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="15.8223"
					y="14.825"
					z="0.0" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-5.02617"
					y="4.87353"
					z="48.8448" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-5.02617"
					y="-6.02351"
					z="48.8448" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="15.8223"
					y="-15.975"
					z="0.0" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="5.87087"
					y="4.87353"
					z="48.8448" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-14.9777"
					y="14.825"
					z="0.0" />
			</ContactPoint>
		</Geometry>
		<AudioArrayVoice>
			<AudioEntry
				Sound="ALI_TiberiumHive_Select"
				AudioType="voiceSelect" />
		</AudioArrayVoice>
		<AudioArraySound>
			<AudioEntry Sound="ALI_Building_LightDamage" AudioType="soundOnDamaged" />
			<AudioEntry Sound="ALI_Building_HeavyDamage" AudioType="soundOnReallyDamaged" />
			<AudioEntry Sound="ALI_Building_Placed" AudioType="soundUnderConstruction" />
		</AudioArraySound>
		<ShadowInfo
			Type="VOLUME" />
		<VisionInfo
			VisionRange="200"
			ShroudClearingRange="400" />
		<ProjectedBuildabilityInfo
			Radius="10.0"
			BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
	</GameObject>
</AssetDeclaration>
