<?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" xmlns:xai="uri:ea.com:eala:asset:instance">
	<Tags></Tags>
	<Includes>
		<Include
			type="all"
			source="ART:NUFlameTank_UG.xml" />
		<Include
			type="all"
			source="ART:NUFlameTank_UGD.xml" />
		<!-- Base Object -->
		<Include
			type="instance"
			source="DATA:NOD/Units/NODFlameTank.xml" />
	</Includes>
	<GameObject
		id="BlackHandFlameTank"
		inheritFrom="NODFlameTank"
		Side="BlackHand"
		EditorSorting="UNIT"
		EditorName="BlackHandFlameTank"
		Description="Desc:BlackHandFlameTank"
		WorldMapArmoryUpgradesAllowed="Upgrade_BlackHandSecretShrinePurifyingFlame"
		TypeDescription="Type:BlackHandFlameTank">
		<DisplayUpgrade>Upgrade_BlackHandSecretShrinePurifyingFlame</DisplayUpgrade>
		<GameDependency
			xai:joinAction="Replace">
			<RequiredObject>BlackHandOperationsCenter</RequiredObject>
		</GameDependency>
		<!--<ArmorSet
			Armor="NODFlameTankArmor"
			DamageFX="VehicleDamageFX" />-->
		<LocomotorSet
			Locomotor="NODFlameTankLocomotor"
			Condition="NORMAL"
			Speed="75.0" />
		<SkirmishAIInformation
			UnitBuilderStandardCombatUnit="true" />
		<Draws>
			<TankDraw
				xai:joinAction="Replace"
				id="ModuleTag_Draw"
				OkToChangeModelColor="true"
				ExtraPublicBone="FXTreadL FXTreadR FXTracksL FXTracksR"
				TrackMarks="EXTnkTrack"
				TrackMarksLeftBone="FXTracksL"
				TrackMarksRightBone="FXTracksR"
				TreadAnimationRate="0.15"
				TreadDriveSpeedFraction="0.25"
				TreadPivotSpeedFraction="0.9">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT"
					RetainSubObjects="true">
					<Model
						Name="NUFlameTank" />
					<WeaponFireFXBone
						WeaponSlotType="PRIMARY_WEAPON"
						BoneName="FXFireL" />
					<WeaponLaunchBone
						WeaponSlotType="PRIMARY_WEAPON"
						BoneName="FXFireL" />
					<!--					<Turret TurretNameKey="Turret" TurretID="1" />  -->
					<Turret
						TurretNameKey="Turret"
						TurretID="1" />
					<ParticleSysBone
						BoneName="FXFireL"
						FXParticleSystemTemplate="NODFlameTankPilotDistortion"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXFireL"
						FXParticleSystemTemplate="NODFlameTankPilotFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXFireL"
						FXParticleSystemTemplate="NODFlameTankPilotGlow"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXFireR"
						FXParticleSystemTemplate="NODFlameTankPilotDistortion"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXFireR"
						FXParticleSystemTemplate="NODFlameTankPilotFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXFireR"
						FXParticleSystemTemplate="NODFlameTankPilotGlow"
						FollowBone="true" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="FORMATION_PREVIEW">
					<Model
						Name="NUFlameTank_FP" />
				</ModelConditionState>	
				
			<!-- Purifying Flame Damage State -->
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					RetainSubObjects="true"
					ConditionsYes="REALLYDAMAGED USER_6">
					<Model
						Name="NUFlameTank"/>
					<Texture
						Original="NUFlameTank"
						New="NUFlameTank_UGD"/>						
					<ParticleSysBone
						BoneName="FXTracksR"
						FXParticleSystemTemplate="NODDamagedSmoke"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedFireDistortion"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedSmoke"
						FollowBone="true" /> 
				</ModelConditionState>

				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					RetainSubObjects="true"
					ConditionsYes="REALLYDAMAGED USER_5">
					<Model
						Name="NUFlameTank" />
					<Texture
						Original="NUFlameTank"
						New="NUFlameTankD_K" />						
					<ParticleSysBone
						BoneName="FXTracksR"
						FXParticleSystemTemplate="NODDamagedSmoke"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedFireDistortion"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedSmoke"
						FollowBone="true" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="DYING USER_5">
					<Model
						Name="NUFlameTankR" />
					<Texture
						Original="NUFlameTankD"
						New="NUFlameTankD_K" />							
					<ParticleSysBone
						BoneName="FXHULKFIRE"
						FXParticleSystemTemplate="GDIMammothHulkFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXHULKFIRE"
						FXParticleSystemTemplate="GDIMammothHulkFireGlow"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXHULKFIRE"
						FXParticleSystemTemplate="GDIMammothHulkFireDistortion"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXHULKFIRE"
						FXParticleSystemTemplate="GDIMammothHulkSmoke"
						FollowBone="true" />
				</ModelConditionState>
											
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					RetainSubObjects="true"
					ConditionsYes="REALLYDAMAGED">
					<Model
						Name="NUFlameTank" />
					<Texture
						Original="NUFlameTank"
						New="NUFlameTankD" />						
					<ParticleSysBone
						BoneName="FXTracksR"
						FXParticleSystemTemplate="NODDamagedSmoke"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedFireDistortion"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksB"
						FXParticleSystemTemplate="NODDamagedSmoke"
						FollowBone="true" /> 
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="DYING">
					<Model
						Name="NUFlameTankR" />
					<ParticleSysBone
						BoneName="FXHULKFIRE"
						FXParticleSystemTemplate="GDIMammothHulkFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXHULKFIRE"
						FXParticleSystemTemplate="GDIMammothHulkFireGlow"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXHULKFIRE"
						FXParticleSystemTemplate="GDIMammothHulkFireDistortion"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXHULKFIRE"
						FXParticleSystemTemplate="GDIMammothHulkSmoke"
						FollowBone="true" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="USER_5">
					<Model
						Name="NUFlameTank" />
					<Texture
						Original="NUFlameTank"
						New="NUFlameTank_K" />						
				</ModelConditionState>		
				
			<!-- Purifying Flame -->
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="USER_6">
					<Model
						Name="NUFlameTank" />
					<Texture
						Original="NUFlameTank"
						New="NUFlameTank_UG" />						
				</ModelConditionState>		

				<AnimationState
					ParseCondStateType="PARSE_DEFAULT">
					<Script>
						CurDrawableShowSubObject("TreadsStop")
						CurDrawableHideSubObject("TreadsMove")
						CurDrawableHideSubObject("TreadsTurnLeft")
						CurDrawableHideSubObject("TreadsTurnRight")
					</Script>
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="MOVING TURN_LEFT">
					<Script>
						CurDrawableHideSubObject("TreadsStop")
						CurDrawableHideSubObject("TreadsMove")
						CurDrawableShowSubObject("TreadsTurnLeft")
						CurDrawableHideSubObject("TreadsTurnRight")
					</Script>
					<ParticleSysBone
						BoneName="FXTracksL"
						FXParticleSystemTemplate="TreadDust"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksR"
						FXParticleSystemTemplate="TreadDust"
						FollowBone="true" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="MOVING TURN_RIGHT">
					<Script>
						CurDrawableHideSubObject("TreadsStop")
						CurDrawableHideSubObject("TreadsMove")
						CurDrawableHideSubObject("TreadsTurnLeft")
						CurDrawableShowSubObject("TreadsTurnRight")
					</Script>
					<ParticleSysBone
						BoneName="FXTracksL"
						FXParticleSystemTemplate="gditanktreaddust"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXTracksR"
						FXParticleSystemTemplate="gditanktreaddust"
						FollowBone="true" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="MOVING">
					<Script>
						CurDrawableHideSubObject("TreadsStop")
						CurDrawableShowSubObject("TreadsMove")
						CurDrawableHideSubObject("TreadsTurnLeft")
						CurDrawableHideSubObject("TreadsTurnRight")
					</Script>
					<ParticleSysBone
						BoneName="NONE"
						FXParticleSystemTemplate="GDIWheelDustLight"
						FollowBone="true" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="ATTACKING">
					<Script>
						CurDrawableShowSubObject("TreadsStop")
						CurDrawableHideSubObject("TreadsMove")
						CurDrawableHideSubObject("TreadsTurnLeft")
						CurDrawableHideSubObject("TreadsTurnRight")
					</Script>
				</AnimationState>
				<LeftTread>"TreadsL"</LeftTread>
				<RightTread>"TreadsR"</RightTread>
			</TankDraw>
			<ScriptedModelDraw
				xai:joinAction="Replace"
				id="ModuleTag_DrawLeftFX"
				AttachToBoneInAnotherModule="FXFIREL">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="FXInvisBone" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT"/>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="AFFECTED_BY_EMP"/>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="USING_WEAPON_A USER_7">
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankAdd"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankAdd02"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankStart"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankDistort"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankGround"
						FollowBone="true" />
				</AnimationState>
			</ScriptedModelDraw>
			<ScriptedModelDraw
				xai:joinAction="Replace"
				id="ModuleTag_DrawRightFX"
				AttachToBoneInAnotherModule="FXFIRER">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="FXInvisBone" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT"/>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="AFFECTED_BY_EMP"/>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="USING_WEAPON_A USER_7">
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankAdd"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankDistort"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankAdd02"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankStart"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankGround"
						FollowBone="true" />
				</AnimationState>
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_DrawUpgradedLeftFX"
				AttachToBoneInAnotherModule="FXFIREL">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="FXInvisBone" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT"/>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="AFFECTED_BY_EMP"/>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="USING_WEAPON_A USER_6">
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingAdd"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingAdd02"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingStart"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingDistort"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingGround"
						FollowBone="true" />
				</AnimationState>
			</ScriptedModelDraw>
			<ScriptedModelDraw
				id="ModuleTag_DrawUpgradedRightFX"
				AttachToBoneInAnotherModule="FXFIRER">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="FXInvisBone" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT"/>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="AFFECTED_BY_EMP"/>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="USING_WEAPON_A USER_6">
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingAdd"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingDistort"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingAdd02"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingFire"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingStart"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="INVISBONE01"
						FXParticleSystemTemplate="FlameTankPurifyingGround"
						FollowBone="true" />
				</AnimationState>
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
			<WeaponSetUpdate
				xai:joinAction="Replace">
				<WeaponSlotTurret
					ID="1"
					AllowInterleavedFiring="false"
					InterleavedStyle="INTERLEAVE_FIRST_AVAILABLE"
					WeaponChoiceCriteria="PREFER_MOST_DAMAGE">
					<Weapon
						Ordering="PRIMARY_WEAPON"
						Template="NODFlameTankFlamer" />
					<Weapon
						Ordering="PRIMARY_WEAPON"
						Template="NODBlackHandFlameTankUpgradedFlamer"
						ObjectStatus="WEAPON_UPGRADED_01" />
					<TurretSettings
						TurretTurnRate="90"
						TurretPitchRate="40"
						AllowsPitch="true"
						MinIdleScanTime="1.0s"
						MaxIdleScanTime="5.0s"
						MinIdleScanAngle="0.0"
						MaxIdleScanAngle="90.0">
						<TurretAITargetChooserData
							CanAcquireDynamicIfAssignedOutOfRange="true" />
					</TurretSettings>
				</WeaponSlotTurret>
			</WeaponSetUpdate>
			<StatusBitsUpgrade
				id="ModuleTag_UpgradeWeapon"
				StatusToSet="WEAPON_UPGRADED_01">
				<TriggeredBy>Upgrade_BlackHandSecretShrinePurifyingFlame</TriggeredBy>
			</StatusBitsUpgrade>
			<ModelConditionUpgrade
				id="ModuleTag_BlackHandNormalFlameUpgrade"
				AddConditionFlags="USER_7">	
				<TriggeredBy>Upgrade_BlackHandFaction</TriggeredBy>
			</ModelConditionUpgrade>
			<ModelConditionUpgrade
				id="ModuleTag_PurifyingFlameUpgrade"
				AddConditionFlags="USER_6"
				RemoveConditionFlags="USER_7">
				<TriggeredBy>Upgrade_BlackHandSecretShrinePurifyingFlame</TriggeredBy>
			</ModelConditionUpgrade>
			<LevelUpUpgrade
				id="ModuleTag_LevelUpUpgrade"
				LevelCap="4"
				DoFlash="false"
				LevelsToGain="1">
			<TriggeredBy>Upgrade_BlackHandFaction</TriggeredBy>
		</LevelUpUpgrade> 
		</Behaviors>
	</GameObject>
</AssetDeclaration>