ShipYardTechStructure.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. <Includes>
  5. <Include
  6. type="all"
  7. source="ART:ShipHangarTechStructure.w3x" />
  8. <Include
  9. type="all"
  10. source="ART:ShipHangarTechStructure_Anim.w3x" />
  11. <Include
  12. type="all"
  13. source="ART:ShipHangarTechStructure_Still.w3x" />
  14. <Include
  15. type="instance"
  16. source="DATA:BaseObjects/BaseTechStructure.xml" />
  17. <Include type="instance" source="DATA:Civilian/Yucatan_YU/Props/YU_HotelDebris.xml" />
  18. <Include type="instance" source="DATA:Neutral/Props/ShipYardTechStructure_Collapse.xml" />
  19. <Include type="all" source="ART:ABBarracks_particles.w3x" />
  20. </Includes>
  21. <GameObject
  22. id="ShipYardTechStructure"
  23. inheritFrom="BaseTechStructure"
  24. KindOf="+DONT_UNATTACH_WHEN_HEALING"
  25. SelectPortrait="Portrait_Neutral_DryDock"
  26. ButtonImage="Button_Neutral_DryDock"
  27. EditorName="ShipYardTechStructure"
  28. Description="DESC:ShipYardTechStructure"
  29. TypeDescription="TYPE:TechStructure"
  30. HealthBoxHeightOffset="45">
  31. <DisplayName
  32. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">NAME:ShipYardTechStructure</DisplayName>
  33. <ObjectResourceInfo>
  34. <BuildCost Account="=$ACCOUNT_ORE" Amount="=$TECH_STRUCTURE_EFFECTIVE_COST"/>
  35. </ObjectResourceInfo>
  36. <ArmorSet
  37. Armor="StructureArmor"
  38. DamageFX="FactionStructureDamageFX" />
  39. <Draws>
  40. <ScriptedModelDraw
  41. id="ModuleTag_Draw"
  42. OkToChangeModelColor="true"
  43. 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">
  44. <ModelConditionState
  45. ParseCondStateType="PARSE_DEFAULT">
  46. <Model
  47. Name="ShipHangarTechStructure" />
  48. </ModelConditionState>
  49. <ModelConditionState
  50. ParseCondStateType="PARSE_NORMAL"
  51. ConditionsYes="RUBBLE">
  52. <Model
  53. Name="ShipHangarTechStructure" />
  54. </ModelConditionState>
  55. <AnimationState
  56. ParseCondStateType="PARSE_DEFAULT">
  57. <Animation
  58. AnimationName="ShipHangarTechStructure_Still"
  59. AnimationMode="ONCE"/>
  60. </AnimationState>
  61. <AnimationState
  62. ParseCondStateType="PARSE_NORMAL"
  63. ConditionsYes="USER_1">
  64. <Animation
  65. AnimationName="ShipHangarTechStructure_Anim"
  66. AnimationMode="LOOP"/>
  67. </AnimationState>
  68. </ScriptedModelDraw>
  69. <xi:include
  70. href="DATA:Includes/TechBuildingFlagDraw.xml"
  71. xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:CommonFlagDraws/child::*)" />
  72. </Draws>
  73. <Behaviors>
  74. <!-- This Passive Area Effect Behaviour is what gives the Tech Structure its Unit healing ability -->
  75. <PassiveAreaEffectBehavior
  76. id="ModuleTag_PassiveAreaEffect"
  77. EffectRadius="-1"
  78. NonStackable="true"
  79. AffectUnderAttack="true"
  80. HealingPercentPerSecond="2%" >
  81. <AllowFilter
  82. Rule="ANY"
  83. Include="SHIP VEHICLE HUGE_VEHICLE"
  84. Relationship="ALLIES"
  85. StatusBitFlags="WATER_LOCOMOTOR_ACTIVE" />
  86. </PassiveAreaEffectBehavior>
  87. <StructureUnpackUpdate
  88. id="ModuleTag_StructureUnpackUpdate"
  89. UnpackTime="0.0s" />
  90. <xi:include
  91. href="../../Includes/GenericEngineerContain.xml" />
  92. <xi:include
  93. href="../../Includes/GenericBuildingRepair.xml" />
  94. <LUAEventList
  95. id="ModuleTag_LUAEventList"
  96. EventListName="BuildingPowerFunctions"
  97. />
  98. <BuildingDestructionBehavior
  99. id="ModuleTag_BuildingDestruction">
  100. <DieMuxData
  101. DeathTypes="ALL" />
  102. <Item
  103. BonePrefix="BONE_CONTACT_POINT_"
  104. FX="SovietRefineryHit"
  105. CreationObject="AlliedBarracks_Debris"
  106. FlingVelocity="100.0"/>
  107. </BuildingDestructionBehavior>
  108. <FXListBehavior
  109. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance" id="ModuleTag_FXList">
  110. <DieMuxData
  111. DeathTypes="ALL" />
  112. <Event
  113. Index="onDeath"
  114. FX="FX_MediumBuildingDieExplosion" />
  115. </FXListBehavior>
  116. <CreateObjectDie
  117. id="ModuleTag_CreateObjectDie"
  118. CreationList="ShipHangarTechStructure_Die_OCL">
  119. <DieMuxData
  120. DeathTypes="ALL" />
  121. </CreateObjectDie>
  122. <DestroyDie
  123. id="ModuleTag_Die">
  124. <DieMuxData
  125. DeathTypes="ALL" />
  126. </DestroyDie>
  127. </Behaviors>
  128. <Body>
  129. <ActiveBody
  130. id="ModuleTag_Body"
  131. MaxHealth="3000.0"
  132. InitialHealth="3000.0" />
  133. </Body>
  134. <Geometry
  135. IsSmall="false">
  136. <Shape
  137. Type= "BOX"
  138. MajorRadius = "44.825"
  139. MinorRadius = "95.5221"
  140. Height = "84.6979"
  141. ContactPointGeneration = "STRUCTURE" >
  142. <Offset
  143. x = "35.9656"
  144. y = "11.1335"
  145. z = "1.26443" />
  146. </Shape>
  147. <Shape
  148. Type= "BOX"
  149. MajorRadius = "44.5234"
  150. MinorRadius = "95.4419"
  151. Height = "38.1858"
  152. ContactPointGeneration = "STRUCTURE" >
  153. <Offset
  154. x = "-43.887"
  155. y = "5.33652"
  156. z = "-11.2285" />
  157. </Shape>
  158. </Geometry>
  159. <AudioArrayVoice>
  160. <AudioEntry EvaEvent="DryDockCaptured" AudioType="voiceDefectingTowards" />
  161. <AudioEntry Sound="NEU_DryDockTechBuilding_Select" AudioType="voiceSelect" />
  162. </AudioArrayVoice>
  163. <AudioArraySound>
  164. <AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
  165. <AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
  166. </AudioArraySound>
  167. <VisionInfo
  168. VisionRange="100"
  169. ShroudClearingRange="200" />
  170. <ProjectedBuildabilityInfo
  171. Radius="0.0"
  172. BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
  173. </GameObject>
  174. <ObjectCreationList
  175. id="ShipHangarTechStructure_Die_OCL">
  176. <CreateObject
  177. Options="IGNORE_ALL_OBJECTS"
  178. Disposition="LIKE_EXISTING RANDOM_FORCE"
  179. Count="1"
  180. MinForceMagnitude="1.0"
  181. MaxForceMagnitude="2.0"
  182. MinForcePitch="90d"
  183. MaxForcePitch="75d">
  184. <CreateObject>ShipHangarTechStructure_Collapse</CreateObject>
  185. </CreateObject>
  186. </ObjectCreationList>
  187. </AssetDeclaration>