| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?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>
- <!-- Right now this is mostly a copy of the Tiberium Spike.
- Please update this list when various components are updated for RA3.
- - Art/DrawModules; Geometry; Audio-->
- <Includes>
- <Include
- type="all"
- source="ART:NBOilDerrick.w3x" />
- <Include
- type="instance"
- source="DATA:BaseObjects/BaseTechStructure.xml" />
- <Include
- type="all"
- source="DATA:GlobalData/GlobalDefines.xml" />
- <Include
- type="all"
- source="ART:Neutral_Platform.w3x" />
- <Include type="instance" source="DATA:Civilian/Yucatan_YU/Props/YU_HotelDebris.xml" />
- <Include type="instance" source="DATA:Neutral/Props/OilDerrick_Collapse.xml" />
- <Include type="instance" source="DATA:Neutral/Props/NeutralPlatform_Collapse.xml" />
- <Include type="all" source="ART:ABBarracks_particles.w3x" />
- </Includes>
- <GameObject
- id="OilDerrick"
- inheritFrom="BaseTechStructure"
- SelectPortrait="Portrait_Neutral_OilDerrick"
- ButtonImage="Button_Neutral_OilDerrick"
- CommandSet="GenericRepairSelfCommandSet"
- KindOf="+SUPPLY_SOURCE"
- EditorName="OilDerrick"
- HealthBoxHeightOffset="55"
- Description="Desc:TechBuildingOilDerrick"
- TypeDescription="TYPE:TechStructure">
- <DisplayName
- xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">Name:TechBuildingOilDerrick</DisplayName>
- <ObjectResourceInfo>
- <BuildCost Account="=$ACCOUNT_ORE" Amount="=$TECH_STRUCTURE_EFFECTIVE_COST"/>
- </ObjectResourceInfo>
- <ArmorSet
- Armor="TechStructureArmor"
- DamageFX="GenericStructureDamageFX" />
- <Draws>
- <ScriptedModelDraw
- id="ModuleTag_Draw"
- OkToChangeModelColor="true"
- ExtraPublicBone="BoneFlag01 BONE_CONTACT_POINT_01 BONE_CONTACT_POINT_02 BONE_CONTACT_POINT_03 BONE_CONTACT_POINT_04 BONE_CONTACT_POINT_05 BONE_CONTACT_POINT_06 BONE_CONTACT_POINT_07 BONE_CONTACT_POINT_08 BONE_CONTACT_POINT_09 BONE_CONTACT_POINT_10 BONE_CONTACT_POINT_11 BONE_CONTACT_POINT_12 BONE_CONTACT_POINT_13 BONE_CONTACT_POINT_14 BONE_CONTACT_POINT_15 BONE_CONTACT_POINT_16 BONE_CONTACT_POINT_17 BONE_CONTACT_POINT_18 BONE_CONTACT_POINT_19 BONE_CONTACT_POINT_20 BONEGARRISON01 BONEGARRISON02 BONEGARRISON03 BONEGARRISON04 BONEGARRISON05 BONEGARRISON06 BONEGARRISON07 BONEGARRISON08 BONEGARRISON09 BONEGARRISON10 BONEGARRISON11 BONEGARRISON12">
- <ModelConditionState
- ParseCondStateType="PARSE_DEFAULT">
- <Model
- Name="NBOilDerrick" />
- </ModelConditionState>
- <AnimationState
- ParseCondStateType="PARSE_DEFAULT">
- </AnimationState>
-
- <AnimationState
- ParseCondStateType="PARSE_NORMAL"
- ConditionsYes="USER_1">
- <Animation
- AnimationName="NBOilDerrick"
- AnimationMode="LOOP"/>
- </AnimationState>
- </ScriptedModelDraw>
-
- <!-- DRAW PLATFORM -->
- <ScriptedModelDraw
- id="ModuleTag_Draw_Platform"
- OkToChangeModelColor="true">
- <ModelConditionState
- ParseCondStateType="PARSE_DEFAULT">
- <Model
- Name="Neutral_Platform" />
- </ModelConditionState>
- <AnimationState
- ParseCondStateType="PARSE_DEFAULT"
- StateName="STATE_IdleOnLand">
- <Animation
- AnimationName=""
- AnimationMode="ONCE"
- AnimationBlendTime="0" />
- <Script>
- CurDrawableShowSubObjectPermanently("Bib")
- CurDrawableHideSubObjectPermanently("Platform")
- CurDrawableHideSubObjectPermanently("Wall")
- </Script>
- </AnimationState>
- <AnimationState
- ParseCondStateType="PARSE_NORMAL"
- ConditionsYes="OVER_WATER"
- StateName="STATE_IdleOnWater">
- <Animation
- AnimationName=""
- AnimationMode="ONCE"
- AnimationBlendTime="0" />
- <Script>
- CurDrawableShowSubObjectPermanently("Platform")
- CurDrawableShowSubObjectPermanently("Bib")
- CurDrawableShowSubObjectPermanently("Wall")
- </Script>
- </AnimationState>
- </ScriptedModelDraw>
- <xi:include
- href="DATA:Includes/TechBuildingFlagDraw.xml"
- xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:CommonFlagDraws/child::*)" />
-
- </Draws>
- <Behaviors>
- <AutoDepositUpdate
- id="ModuleTag_AutoDeposit"
- DepositInterval="2s"
- GiveNoXP="true"
- Flags="ACTIVE_WHEN_REPAIRING">
- <InitialCaptureBonus Account="=$ACCOUNT_ORE" Amount="500" />
- <Deposit Account="=$ACCOUNT_ORE" Amount="15"/>
- </AutoDepositUpdate>
- <xi:include
- href="../../Includes/GenericEngineerContain.xml" />
- <xi:include
- href="../../Includes/GenericBuildingRepair.xml" />
- <LUAEventList
- id="ModuleTag_LUAEventList"
- EventListName="BuildingPowerFunctions" />
- <BuildingDestructionBehavior
- id="ModuleTag_BuildingDestruction">
- <DieMuxData
- DeathTypes="ALL" />
- <Item
- BonePrefix="BONE_CONTACT_POINT_"
- FX="SovietRefineryHit"
- CreationObject="AlliedBarracks_Debris"
- FlingVelocity="100.0"/>
- </BuildingDestructionBehavior>
- <FXListBehavior
- xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance" id="ModuleTag_FXList">
- <DieMuxData
- DeathTypes="ALL" />
- <Event
- Index="onDeath"
- FX="FX_MediumBuildingDieExplosion" />
- </FXListBehavior>
- <CreateObjectDie
- id="ModuleTag_CreateObjectDie"
- CreationList="NBOilDerrick_Die_OCL">
- <DieMuxData
- DeathTypes="ALL" />
- </CreateObjectDie>
- <CreateObjectDie
- id="ModuleTag_CreateObjectDieOnWater"
- CreationList="NeutralPlatform_Die_OCL">
- <DieMuxData
- DeathTypes="ALL"
- DeathTypesForbidden="SUICIDED"
- RequiredStatus="OVER_WATER" />
- </CreateObjectDie>
- <DestroyDie
- id="ModuleTag_Die">
- <DieMuxData
- DeathTypes="ALL" />
- </DestroyDie>
- </Behaviors>
- <Body>
- <ActiveBody
- id="ModuleTag_Body"
- MaxHealth="1500.0" />
- </Body>
- <ClientBehaviors>
- <ModelConditionAudioLoopClientBehavior id="ModuleTag_AmbientOnCapture">
- <ModelConditionSound Sound="TEC_OilDerrick_AmbientLoop" RequiredFlags="USER_1" ExcludedFlags="DYING" />
- </ModelConditionAudioLoopClientBehavior>
- </ClientBehaviors>
- <Geometry
- IsSmall="false">
- <Shape
- Type= "BOX"
- MajorRadius = "45.8023"
- MinorRadius = "40.8427"
- Height = "38.6332"
- ContactPointGeneration = "STRUCTURE" >
- <Offset
- x = "0.0"
- y = "0.0"
- z = "0.0" />
- </Shape>
- </Geometry>
- <AudioArrayVoice>
- <AudioEntry EvaEvent="OilDerrickCaptured" AudioType="voiceDefectingTowards" />
- <AudioEntry Sound="TEC_OilDerrick_Select" AudioType="voiceSelect" />
- </AudioArrayVoice>
- <AudioArraySound>
- <!-- <AudioEntry Sound="TEC_OilDerrick_AmbientLoop" AudioType="soundAmbient" /> -->
- <AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
- <AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
- </AudioArraySound>
- <VisionInfo
- VisionRange="100"
- ShroudClearingRange="200" />
- <ProjectedBuildabilityInfo
- Radius="0.0"
- BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
- </GameObject>
- <ObjectCreationList
- id="NBOilDerrick_Die_OCL">
- <CreateObject
- Options="IGNORE_ALL_OBJECTS"
- Disposition="LIKE_EXISTING RANDOM_FORCE"
- Count="1"
- MinForceMagnitude="1.0"
- MaxForceMagnitude="2.0"
- MinForcePitch="90d"
- MaxForcePitch="75d">
- <CreateObject>NBOilDerrick_Collapse</CreateObject>
- </CreateObject>
- </ObjectCreationList>
- <ObjectCreationList
- id="NeutralPlatform_Die_OCL">
- <CreateObject
- Options="IGNORE_ALL_OBJECTS"
- Disposition="LIKE_EXISTING RANDOM_FORCE"
- Count="1"
- MinForceMagnitude="1.0"
- MaxForceMagnitude="2.0"
- MinForcePitch="90d"
- MaxForcePitch="75d">
- <CreateObject>NeutralPlatform_Collapse</CreateObject>
- </CreateObject>
- </ObjectCreationList>
- </AssetDeclaration>
|