<?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:NSDockLoader.W3X" />
		<Include
			type="all"
			source="ART:NSDockLoader_D2.W3X" />
		<Include
			type="all"
			source="ART:NSDockLoader_D3.W3X" />
		<Include
			type="instance"
			source="DATA:BaseObjects/BaseCivilianStructureNoGarrisonDestructible.xml" />
	</Includes>
	<GameObject
		id="NOD_DockCargoLoadingCrane"
		inheritFrom="BaseCivilianStructureNoGarrisonDestructible"
		SelectPortrait="Portrait_NodDockLoadingCrane"
		ButtonImage="Portrait_NodDockLoadingCrane"
		EditorName="NOD_DockCargoLoadingCrane"
		Browser="REGION NOD_Structures STRUCTURE">
		<DisplayName
			xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">Name:NODDockLoadingCrane</DisplayName>
		<Draws>
			<ScriptedModelDraw
				id="ModuleTag_Draw">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="NSDockLoader" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE">
					<Model
						Name="NSDockLoader_D3" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="REALLYDAMAGED">
					<Model
						Name="NSDockLoader_D2" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="DAMAGED">
					<Model
						Name="NSDockLoader" />
					<Texture
						Original="NSDLoad"
						New="NSDLoadD" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT">
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE"
					StateName="STATE_Rubble"
					Flags="START_FRAME_LAST">
					<Animation
						AnimationName="NSDockLoader_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="NSDockLoader_D2"
						AnimationMode="MANUAL" />
					<Script>
						Prev = CurDrawablePrevAnimationState();
						if Prev ~= "STATE_ReallyDamaged" and Prev ~= "TRANS_IntoReallyDamaged" then
						CurDrawableSetTransitionAnimState("TRANS_IntoReallyDamaged")
						end
					</Script>
					<ParticleSysBone
						BoneName="NONE"
						FXParticleSystemTemplate="GDIDebrisSmallSmoke"
						FollowBone="true" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_TRANSITION"
					StateName="TRANS_IntoReallyDamaged">
					<Animation
						AnimationName="NSDockLoader_D2"
						AnimationMode="ONCE"
						AnimationBlendTime="0" />
					<FXEvent
						Frame="28"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_D007" />
					<FXEvent
						Frame="30"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_D002" />
					<FXEvent
						Frame="31"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_D008" />
					<FXEvent
						Frame="35"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_D004" />
					<FXEvent
						Frame="35"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_D005" />
					<FXEvent
						Frame="42"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_D006" />	
					<FXEvent
						Frame="50"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_D003" />
					<FXEvent
						Frame="53"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_D001" />

					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_D001" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_D002" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_D003" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_D004" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_D005" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_D006" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_D007" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_D008" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_TRANSITION"
					StateName="TRANS_IntoRubble">
					<Animation
						AnimationName="NSDockLoader_D3"
						AnimationMode="ONCE"
						AnimationBlendTime="0" />
					<FXEvent
						Frame="12"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DB004" />
					<FXEvent
						Frame="16"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DA003" />
					<FXEvent
						Frame="17"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DA006" />
					<FXEvent
						Frame="28"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DA013" />
					<FXEvent
						Frame="28"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DA006" />
					<FXEvent
						Frame="29"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DA005" />	
					<FXEvent
						Frame="33"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DA002" />
					<FXEvent
						Frame="43"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DA014" />
					<FXEvent
						Frame="60"
						FireWhenSkipped="true"
						Effect="FX_NodCraneWater"
						Bone="Bone_DA012" />

					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_DA006" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_DA004" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_DA002" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_DA012" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_DA008" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_DA011" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_DA001" />
					<FXEvent
						Frame="1"
						FireWhenSkipped="true"
						Effect="FX_NodCraneDust"
						Bone="Bone_DA009" />						
				</AnimationState>
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
<!--		
			<SlowDeath
				id="ModuleTag_Death"
				SinkDelay="4s"
				SinkRate="3.0"
				DestructionDelay="8.0s">
				<DieMuxData
					DeathTypes="ALL" />
			</SlowDeath>
-->			
		</Behaviors>
		<Body>
			<ActiveBody
				id="ModuleTag_Body"
				MaxHealth="6000.0"
				InitialHealth="6000.0" />
		</Body>
		<Geometry
			IsSmall="false">
			<Shape
				Type="BOX"
				MajorRadius="62.9093"
				MinorRadius="10.5525"
				Height="101.467">
				<Offset
					x="9.15266"
					y="-66.0738"
					z="0.0" />
			</Shape>
			<Shape
				Type="BOX"
				MajorRadius="62.9093"
				MinorRadius="10.5525"
				Height="101.467">
				<Offset
					x="9.15266"
					y="64.7584"
					z="0.0" />
			</Shape>
			<Shape
				Type="BOX"
				MajorRadius="14.2053"
				MinorRadius="15.4229"
				Height="9.7408">
				<Offset
					x="130.101"
					y="-66.8855"
					z="0.0" />
			</Shape>
			<Shape
				Type="BOX"
				MajorRadius="14.2053"
				MinorRadius="15.4229"
				Height="9.7408">
				<Offset
					x="130.101"
					y="63.9484"
					z="0.0" />
			</Shape>
			<Shape
				Type="BOX"
				MajorRadius="48.2981"
				MinorRadius="59.2565"
				Height="127.128">
				<Offset
					x="-20.0697"
					y="0.488354"
					z="-0.993668" />
			</Shape>
			<ContactPoint>
				<Pos
					x="-63.0183"
					y="-52.5724"
					z="81.1506" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="20.4818"
					y="-52.5724"
					z="123.988" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="20.4818"
					y="55.1327"
					z="81.1506" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-63.0183"
					y="55.1327"
					z="123.988" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-63.0183"
					y="-52.5724"
					z="123.988" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="20.4818"
					y="-52.5724"
					z="81.1506" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="20.4818"
					y="55.1327"
					z="123.988" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-63.0183"
					y="55.1327"
					z="81.1506" />
			</ContactPoint>
		</Geometry>
		<AudioArraySound>
			<AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
			<AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
		</AudioArraySound> 
	</GameObject>
</AssetDeclaration>