OilDerrick.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <AssetDeclaration xmlns="uri:ea.com:eala:asset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude">
  3. <Tags></Tags>
  4. <!-- Right now this is mostly a copy of the Tiberium Spike.
  5. Please update this list when various components are updated for RA3.
  6. - Art/DrawModules; Geometry; Audio-->
  7. <Includes>
  8. <Include
  9. type="all"
  10. source="ART:NBOilDerrick.w3x" />
  11. <Include
  12. type="instance"
  13. source="DATA:BaseObjects/BaseTechStructure.xml" />
  14. <Include
  15. type="all"
  16. source="DATA:GlobalData/GlobalDefines.xml" />
  17. <Include
  18. type="all"
  19. source="ART:Neutral_Platform.w3x" />
  20. <Include type="instance" source="DATA:Civilian/Yucatan_YU/Props/YU_HotelDebris.xml" />
  21. <Include type="instance" source="DATA:Neutral/Props/OilDerrick_Collapse.xml" />
  22. <Include type="instance" source="DATA:Neutral/Props/NeutralPlatform_Collapse.xml" />
  23. <Include type="all" source="ART:ABBarracks_particles.w3x" />
  24. </Includes>
  25. <GameObject
  26. id="OilDerrick"
  27. inheritFrom="BaseTechStructure"
  28. SelectPortrait="Portrait_Neutral_OilDerrick"
  29. ButtonImage="Button_Neutral_OilDerrick"
  30. CommandSet="GenericRepairSelfCommandSet"
  31. KindOf="+SUPPLY_SOURCE"
  32. EditorName="OilDerrick"
  33. HealthBoxHeightOffset="55"
  34. Description="Desc:TechBuildingOilDerrick"
  35. TypeDescription="TYPE:TechStructure">
  36. <DisplayName
  37. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">Name:TechBuildingOilDerrick</DisplayName>
  38. <ObjectResourceInfo>
  39. <BuildCost Account="=$ACCOUNT_ORE" Amount="=$TECH_STRUCTURE_EFFECTIVE_COST"/>
  40. </ObjectResourceInfo>
  41. <ArmorSet
  42. Armor="TechStructureArmor"
  43. DamageFX="GenericStructureDamageFX" />
  44. <Draws>
  45. <ScriptedModelDraw
  46. id="ModuleTag_Draw"
  47. OkToChangeModelColor="true"
  48. 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">
  49. <ModelConditionState
  50. ParseCondStateType="PARSE_DEFAULT">
  51. <Model
  52. Name="NBOilDerrick" />
  53. </ModelConditionState>
  54. <AnimationState
  55. ParseCondStateType="PARSE_DEFAULT">
  56. </AnimationState>
  57. <AnimationState
  58. ParseCondStateType="PARSE_NORMAL"
  59. ConditionsYes="USER_1">
  60. <Animation
  61. AnimationName="NBOilDerrick"
  62. AnimationMode="LOOP"/>
  63. </AnimationState>
  64. </ScriptedModelDraw>
  65. <!-- DRAW PLATFORM -->
  66. <ScriptedModelDraw
  67. id="ModuleTag_Draw_Platform"
  68. OkToChangeModelColor="true">
  69. <ModelConditionState
  70. ParseCondStateType="PARSE_DEFAULT">
  71. <Model
  72. Name="Neutral_Platform" />
  73. </ModelConditionState>
  74. <AnimationState
  75. ParseCondStateType="PARSE_DEFAULT"
  76. StateName="STATE_IdleOnLand">
  77. <Animation
  78. AnimationName=""
  79. AnimationMode="ONCE"
  80. AnimationBlendTime="0" />
  81. <Script>
  82. CurDrawableShowSubObjectPermanently("Bib")
  83. CurDrawableHideSubObjectPermanently("Platform")
  84. CurDrawableHideSubObjectPermanently("Wall")
  85. </Script>
  86. </AnimationState>
  87. <AnimationState
  88. ParseCondStateType="PARSE_NORMAL"
  89. ConditionsYes="OVER_WATER"
  90. StateName="STATE_IdleOnWater">
  91. <Animation
  92. AnimationName=""
  93. AnimationMode="ONCE"
  94. AnimationBlendTime="0" />
  95. <Script>
  96. CurDrawableShowSubObjectPermanently("Platform")
  97. CurDrawableShowSubObjectPermanently("Bib")
  98. CurDrawableShowSubObjectPermanently("Wall")
  99. </Script>
  100. </AnimationState>
  101. </ScriptedModelDraw>
  102. <xi:include
  103. href="DATA:Includes/TechBuildingFlagDraw.xml"
  104. xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:CommonFlagDraws/child::*)" />
  105. </Draws>
  106. <Behaviors>
  107. <AutoDepositUpdate
  108. id="ModuleTag_AutoDeposit"
  109. DepositInterval="2s"
  110. GiveNoXP="true"
  111. Flags="ACTIVE_WHEN_REPAIRING">
  112. <InitialCaptureBonus Account="=$ACCOUNT_ORE" Amount="500" />
  113. <Deposit Account="=$ACCOUNT_ORE" Amount="15"/>
  114. </AutoDepositUpdate>
  115. <xi:include
  116. href="../../Includes/GenericEngineerContain.xml" />
  117. <xi:include
  118. href="../../Includes/GenericBuildingRepair.xml" />
  119. <LUAEventList
  120. id="ModuleTag_LUAEventList"
  121. EventListName="BuildingPowerFunctions" />
  122. <BuildingDestructionBehavior
  123. id="ModuleTag_BuildingDestruction">
  124. <DieMuxData
  125. DeathTypes="ALL" />
  126. <Item
  127. BonePrefix="BONE_CONTACT_POINT_"
  128. FX="SovietRefineryHit"
  129. CreationObject="AlliedBarracks_Debris"
  130. FlingVelocity="100.0"/>
  131. </BuildingDestructionBehavior>
  132. <FXListBehavior
  133. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance" id="ModuleTag_FXList">
  134. <DieMuxData
  135. DeathTypes="ALL" />
  136. <Event
  137. Index="onDeath"
  138. FX="FX_MediumBuildingDieExplosion" />
  139. </FXListBehavior>
  140. <CreateObjectDie
  141. id="ModuleTag_CreateObjectDie"
  142. CreationList="NBOilDerrick_Die_OCL">
  143. <DieMuxData
  144. DeathTypes="ALL" />
  145. </CreateObjectDie>
  146. <CreateObjectDie
  147. id="ModuleTag_CreateObjectDieOnWater"
  148. CreationList="NeutralPlatform_Die_OCL">
  149. <DieMuxData
  150. DeathTypes="ALL"
  151. DeathTypesForbidden="SUICIDED"
  152. RequiredStatus="OVER_WATER" />
  153. </CreateObjectDie>
  154. <DestroyDie
  155. id="ModuleTag_Die">
  156. <DieMuxData
  157. DeathTypes="ALL" />
  158. </DestroyDie>
  159. </Behaviors>
  160. <Body>
  161. <ActiveBody
  162. id="ModuleTag_Body"
  163. MaxHealth="1500.0" />
  164. </Body>
  165. <ClientBehaviors>
  166. <ModelConditionAudioLoopClientBehavior id="ModuleTag_AmbientOnCapture">
  167. <ModelConditionSound Sound="TEC_OilDerrick_AmbientLoop" RequiredFlags="USER_1" ExcludedFlags="DYING" />
  168. </ModelConditionAudioLoopClientBehavior>
  169. </ClientBehaviors>
  170. <Geometry
  171. IsSmall="false">
  172. <Shape
  173. Type= "BOX"
  174. MajorRadius = "45.8023"
  175. MinorRadius = "40.8427"
  176. Height = "38.6332"
  177. ContactPointGeneration = "STRUCTURE" >
  178. <Offset
  179. x = "0.0"
  180. y = "0.0"
  181. z = "0.0" />
  182. </Shape>
  183. </Geometry>
  184. <AudioArrayVoice>
  185. <AudioEntry EvaEvent="OilDerrickCaptured" AudioType="voiceDefectingTowards" />
  186. <AudioEntry Sound="TEC_OilDerrick_Select" AudioType="voiceSelect" />
  187. </AudioArrayVoice>
  188. <AudioArraySound>
  189. <!-- <AudioEntry Sound="TEC_OilDerrick_AmbientLoop" AudioType="soundAmbient" /> -->
  190. <AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
  191. <AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
  192. </AudioArraySound>
  193. <VisionInfo
  194. VisionRange="100"
  195. ShroudClearingRange="200" />
  196. <ProjectedBuildabilityInfo
  197. Radius="0.0"
  198. BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
  199. </GameObject>
  200. <ObjectCreationList
  201. id="NBOilDerrick_Die_OCL">
  202. <CreateObject
  203. Options="IGNORE_ALL_OBJECTS"
  204. Disposition="LIKE_EXISTING RANDOM_FORCE"
  205. Count="1"
  206. MinForceMagnitude="1.0"
  207. MaxForceMagnitude="2.0"
  208. MinForcePitch="90d"
  209. MaxForcePitch="75d">
  210. <CreateObject>NBOilDerrick_Collapse</CreateObject>
  211. </CreateObject>
  212. </ObjectCreationList>
  213. <ObjectCreationList
  214. id="NeutralPlatform_Die_OCL">
  215. <CreateObject
  216. Options="IGNORE_ALL_OBJECTS"
  217. Disposition="LIKE_EXISTING RANDOM_FORCE"
  218. Count="1"
  219. MinForceMagnitude="1.0"
  220. MaxForceMagnitude="2.0"
  221. MinForcePitch="90d"
  222. MaxForcePitch="75d">
  223. <CreateObject>NeutralPlatform_Collapse</CreateObject>
  224. </CreateObject>
  225. </ObjectCreationList>
  226. </AssetDeclaration>