<?xml version="1.0" encoding="us-ascii"?>
<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:NBAirTower.w3x" />
		<Include
			type="all"
			source="ART:NBAirTower_D1.w3x" />
		<Include
			type="all"
			source="ART:NBAirTower_D2.w3x" />
		<Include
			type="all"
			source="ART:NBAirTower_D3.w3x" />
		<Include
			type="all"
			source="ART:NBAirTower_D.xml" />
		<Include
			type="instance"
			source="DATA:BaseObjects/BaseCivilianStructureNoGarrisonDestructible.xml" />
	</Includes>
	<GameObject
		id="NOD_AirfieldControlTower"
		inheritFrom="BaseCivilianStructureNoGarrisonDestructible"		
		EditorName="NOD_AirfieldControlTower"
		Browser="REGION NOD_Structures STRUCTURE">
		<Draws>
			<ScriptedModelDraw
				id="ModuleTag_Draw"
				OkToChangeModelColor="false"
				AffectedByStealth="false"
				ExtraPublicBone="BONEGARRISON01 BONEGARRISON02 BONEGARRISON03 BONEGARRISON04 BONEGARRISON05 BONEGARRISON06 BONEGARRISON07 BONEGARRISON08 BONEGARRISON09 BONEGARRISON10 BONEGARRISON11 BONEGARRISON12">

				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="NBAirTower" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE">
					<Model
						Name="NBAirTower_D3" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="REALLYDAMAGED">
					<Model
						Name="NBAirTower_D2" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="DAMAGED">
					<Model
						Name="NBAirTower" />
					<Texture
						Original="NBAirTower"
						New="NBAirTower_D" />
				</ModelConditionState>

				<AnimationState
					ParseCondStateType="PARSE_DEFAULT">
					<!-- no anim -->
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE"
					StateName="STATE_Rubble"
					Flags="START_FRAME_LAST">
					<Animation
						AnimationName="NBAirTower_D3"
						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="NBAirTower_D2"
						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="NBAirTower_D2"
						AnimationMode="ONCE"
						AnimationBlendTime="0"/>
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_TRANSITION"
					StateName="TRANS_IntoRubble">
					<Animation
						AnimationName="NBAirTower_D3"
						AnimationMode="ONCE"
						AnimationBlendTime="0"/>
					<ParticleSysBone
						BoneName="NONE"
						FXParticleSystemTemplate="CivBuildingDust"
						FollowBone="false" />
					<ParticleSysBone
						BoneName="NONE"
						FXParticleSystemTemplate="CivBuildingDust02"
						FollowBone="false" />
				</AnimationState>

			</ScriptedModelDraw>

			<xi:include
				href="../../Includes/GarrisonableStructureFlagDraw.xml" />
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw01"
				AttachToBoneInAnotherModule="BONEGARRISON01">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw02"
				AttachToBoneInAnotherModule="BONEGARRISON02">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw03"
				AttachToBoneInAnotherModule="BONEGARRISON03">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw04"
				AttachToBoneInAnotherModule="BONEGARRISON04">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw05"
				AttachToBoneInAnotherModule="BONEGARRISON05">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw06"
				AttachToBoneInAnotherModule="BONEGARRISON06">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw07"
				AttachToBoneInAnotherModule="BONEGARRISON07">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw08"
				AttachToBoneInAnotherModule="BONEGARRISON08">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw09"
				AttachToBoneInAnotherModule="BONEGARRISON09">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw10"
				AttachToBoneInAnotherModule="BONEGARRISON10">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw11"
				AttachToBoneInAnotherModule="BONEGARRISON11">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_ArmorDraw12"
				AttachToBoneInAnotherModule="BONEGARRISON12">
				<xi:include
					href="../../Includes/GarrisonableStructureGarrisonedDraw.xml"
					xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:ScriptedModelDraw/child::*)" />
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
			<ProductionUpdate
				id="ModuleTag_Production" />
			<ModelConditionUpgrade
				id="ModuleTag_GDIFaction"
				AddConditionFlags="USER_1">
				<TriggeredBy>Upgrade_GDIFaction</TriggeredBy>
			</ModelConditionUpgrade>
			<ModelConditionUpgrade
				id="ModuleTag_NODFaction"
				AddConditionFlags="USER_2">
				<TriggeredBy>Upgrade_NODFaction</TriggeredBy>
			</ModelConditionUpgrade>
			<ModelConditionUpgrade
				id="ModuleTag_AlienFaction"
				AddConditionFlags="USER_3">
				<TriggeredBy>Upgrade_AlienFaction</TriggeredBy>
			</ModelConditionUpgrade>
			<CommandSetUpgrade
				id="ModuleTag_SwapCommandSet"
				CommandSet="GarrisonableNeutralFortifiedBuildingCommandSet"
				Permanent="true">
				<TriggeredBy>Upgrade_FortifyBuilding</TriggeredBy>
			</CommandSetUpgrade>
			<SubObjectsUpgrade
				id="ModuleTag_ShowForceField"
				ShowSubObjects="ARMOR"
				Permanent="true">
				<TriggeredBy>Upgrade_FortifyBuilding</TriggeredBy>
			</SubObjectsUpgrade>
			<AttributeModifierUpgrade
				id="ModuleTag_AddAttributes"
				AttributeModifier="FortifiedBuilding_Bonus"
				Permanent="true">
				<TriggeredBy>Upgrade_FortifyBuilding</TriggeredBy>
			</AttributeModifierUpgrade>
			<FXListBehavior
				id="ModuleTag_FXList"
				xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">
				<DieMuxData
					DeathTypes="ALL" />
				<Event
					Index="onTransitionToDamaged"
					FX="FX_BuildDamaged_Large" />
				<Event
					Index="onTransitionToReallyDamaged"
					FX="FX_BuildDamaged_Large" />
				<Event
					Index="onTransitionToRubble"
					FX="FX_BuildRubble_Large" />
				<Event
					Index="onDeath"
					ForceUseDoFXObj="true"
					FX="FX_ScorchSmall" />
			</FXListBehavior>			
		</Behaviors>
		<AI>
			<AIUpdate
				id="ModulTag_AIForLua"
				AILuaEventsList="NeutralGarrisonableBuildingFunctions" />
		</AI>
		<Body>
			<ActiveBody
				id="ModuleTag_Body"
				MaxHealth="6000.0" />
		</Body>
		<Geometry
			IsSmall="false">
			<Shape 
    Type= "CYLINDER"
    MajorRadius = "15.7808"
    MinorRadius = "15.7808"
    Height = "129.839"
     ContactPointGeneration="INFANTRY" >
    <Offset
        x = "0.0306816"
        y = "-0.184632"
        z = "0.0" />
</Shape>
		</Geometry>
		<AudioArraySound>
			<AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
			<AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
		</AudioArraySound> 
	</GameObject>
</AssetDeclaration>
