NeutralPowerPlant.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 type="all" source="DATA:GlobalData/GlobalDefines.xml" />
  6. <Include
  7. type="all"
  8. source="ART:NUObservationPostTechStructure.w3x" />
  9. <Include
  10. type="instance"
  11. source="DATA:BaseObjects/BaseTechStructure.xml" />
  12. </Includes>
  13. <GameObject
  14. id="NeutralPowerPlant"
  15. inheritFrom="BaseTechStructure"
  16. SelectPortrait="Portrait_AlliedPowerPlant"
  17. ButtonImage="Button_AlliedPowerPlant_on"
  18. Side="Neutral"
  19. BuildTime="15"
  20. EnergyProduction="500"
  21. EditorSorting="STRUCTURE"
  22. CommandSet="EmptyCommandSet"
  23. KindOf="STRUCTURE SELECTABLE IMMOBILE CAN_CAST_REFLECTIONS FS_TECHNOLOGY IGNORE_FOR_VICTORY NOT_SELLABLE NEUTRAL_TECH"
  24. RadarPriority="STRUCTURE"
  25. EditorName="NeutralPowerPlant"
  26. Description="Desc:TechBuildingPowerPlant"
  27. TypeDescription="TYPE:TechStructure">
  28. <DisplayName
  29. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">Name:TechBuildingPowerPlant</DisplayName>
  30. <ObjectResourceInfo>
  31. <BuildCost Account="=$ACCOUNT_ORE" Amount="=$TECH_STRUCTURE_EFFECTIVE_COST"/>
  32. </ObjectResourceInfo>
  33. <ArmorSet
  34. Armor="StructureArmor"
  35. DamageFX="VehicleDamageFX" />
  36. <Draws>
  37. <ScriptedModelDraw
  38. id="ModuleTag_Draw"
  39. OkToChangeModelColor="true">
  40. <ModelConditionState
  41. ParseCondStateType="PARSE_DEFAULT">
  42. <Model
  43. Name="NUObservationPostTechStructure" />
  44. </ModelConditionState>
  45. <!-- ANIMATIONS -->
  46. <AnimationState
  47. ParseCondStateType="PARSE_DEFAULT">
  48. </AnimationState>
  49. </ScriptedModelDraw>
  50. </Draws>
  51. <Behaviors>
  52. <Physics
  53. id="ModuleTag_Physics"/>
  54. <DistributeEnergyToAlliesBehavior
  55. id="ModuleTag_DistributeEnergyToAllies"/>
  56. <BuildingDestructionBehavior
  57. id="ModuleTag_BuildingDestruction">
  58. <DieMuxData
  59. DeathTypes="ALL" />
  60. <Item
  61. BonePrefix="BONE_CONTACT_POINT_"
  62. FX="SovietRefineryHit"
  63. CreationObject="AlliedBarracks_Debris"
  64. FlingVelocity="100.0"/>
  65. </BuildingDestructionBehavior>
  66. <SlowDeath
  67. id="ModuleTag_Death"
  68. SinkDelay="4s"
  69. SinkRate="3.0"
  70. DestructionDelay="8.0s">
  71. <Sound Type="INITIAL" List="HumanFaction_MediumBuilding_DieMS" />
  72. <DieMuxData
  73. DeathTypes="ALL" />
  74. </SlowDeath>
  75. <xi:include
  76. href="../../Includes/GenericEngineerContain.xml" />
  77. <xi:include
  78. href="../../Includes/GenericBuildingRepair.xml" />
  79. <LUAEventList
  80. id="ModuleTag_LUAEventList"
  81. EventListName="BuildingPowerFunctions"
  82. />
  83. </Behaviors>
  84. <AI>
  85. <AIUpdate
  86. id="ModuleTag_AIForLua"
  87. StateMachine="StructureAIStateMachine" />
  88. </AI>
  89. <Body>
  90. <ActiveBody
  91. id="ModuleTag_Body"
  92. MaxHealth="5000.0" />
  93. </Body>
  94. <Geometry
  95. IsSmall="false">
  96. <Shape
  97. Type="CYLINDER"
  98. MajorRadius="18.0"
  99. Height="48.0"></Shape>
  100. <Shape
  101. Type="CYLINDER"
  102. MajorRadius="14.0"
  103. Height="20.0">
  104. <Offset
  105. x="13"
  106. y="35"
  107. z="0" />
  108. </Shape>
  109. <Shape
  110. Type="CYLINDER"
  111. MajorRadius="14.0"
  112. Height="20.0">
  113. <Offset
  114. x="-13"
  115. y="35"
  116. z="0" />
  117. </Shape>
  118. <Shape
  119. Type="BOX"
  120. MajorRadius="30.0"
  121. MinorRadius="32.5"
  122. Height="18.0">
  123. <Offset
  124. x="0"
  125. y="-9"
  126. z="0" />
  127. </Shape>
  128. <ContactPoint>
  129. <Pos
  130. x="-20.0"
  131. y="24.0"
  132. z="30" />
  133. </ContactPoint>
  134. <ContactPoint>
  135. <Pos
  136. x="26.0"
  137. y="24.0"
  138. z="0" />
  139. </ContactPoint>
  140. <ContactPoint>
  141. <Pos
  142. x="26.0"
  143. y="-32.0"
  144. z="30" />
  145. </ContactPoint>
  146. <ContactPoint>
  147. <Pos
  148. x="26.0"
  149. y="24.0"
  150. z="0" />
  151. </ContactPoint>
  152. <ContactPoint>
  153. <Pos
  154. x="-26.0"
  155. y="-32.0"
  156. z="30" />
  157. </ContactPoint>
  158. <ContactPoint>
  159. <Pos
  160. x="26.0"
  161. y="24.0"
  162. z="0" />
  163. </ContactPoint>
  164. <ContactPoint>
  165. <Pos
  166. x="-26.0"
  167. y="-32.0"
  168. z="30" />
  169. </ContactPoint>
  170. <ContactPoint>
  171. <Pos
  172. x="-20.0"
  173. y="24.0"
  174. z="0" />
  175. </ContactPoint>
  176. </Geometry>
  177. <AudioArrayVoice>
  178. <AudioEntry EvaEvent="BuildingCaptured" AudioType="voiceDefectingTowards" />
  179. </AudioArrayVoice>
  180. <AudioArraySound>
  181. <AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
  182. <AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
  183. </AudioArraySound>
  184. <VisionInfo
  185. VisionRange="400"
  186. ShroudClearingRange="400" />
  187. <ProjectedBuildabilityInfo
  188. Radius="90.0"
  189. BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
  190. </GameObject>
  191. </AssetDeclaration>