SovietRadarDish.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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:SBRadarDish.w3x" />
  9. <Include
  10. type="all"
  11. source="ART:Soviet_Place_Holder.xml" />
  12. <!-- Base Object -->
  13. <Include
  14. type="instance"
  15. source="DATA:BaseObjects/BaseStructure.xml" />
  16. </Includes>
  17. <GameObject
  18. id="SovietRadarDish"
  19. inheritFrom="BaseStructure"
  20. SelectPortrait="Portrait_GDICrane"
  21. ButtonImage="Portrait_GDICrane"
  22. Side="Soviet"
  23. EditorSorting="STRUCTURE"
  24. TransportSlotCount="1"
  25. BuildTime="0.0"
  26. CommandSet="SovietRadarDishCommandSet"
  27. KindOf="STRUCTURE SELECTABLE IMMOBILE CAN_CAST_REFLECTIONS FS_FACTORY NOT_AUTOACQUIRABLE AUTO_ACQUIRABLE_BY_AI COVER CAN_BUILD_ON_WATER CAN_BUILD_ON_DEEP_WATER SCORE"
  28. RadarPriority="STRUCTURE"
  29. ProductionQueueType="MAIN_STRUCTURE"
  30. BuildPlacementTypeFlag="MAIN_STRUCTURE"
  31. EditorName="SovietRadarDish"
  32. EnergyProduction="-10"
  33. Description="Desc:SovietRadarDish"
  34. TypeDescription="Type:SovietRadarDish">
  35. <DisplayName
  36. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">Name:SovietRadarDish</DisplayName>
  37. <GameDependency>
  38. <RequiredObject>SovietConstructionYard</RequiredObject>
  39. </GameDependency>
  40. <ObjectResourceInfo>
  41. <BuildCost Account="=$ACCOUNT_ORE" Amount="1500"/>
  42. </ObjectResourceInfo>
  43. <ArmorSet
  44. Armor="BaseFactionStructureArmor"
  45. DamageFX="FactionStructureDamageFX" />
  46. <SkirmishAIInformation
  47. BaseBuildingLocation="CENTER" />
  48. <Draws>
  49. <ScriptedModelDraw
  50. id="ModuleTag_Draw"
  51. OkToChangeModelColor="true">
  52. <ModelConditionState
  53. ParseCondStateType="PARSE_DEFAULT">
  54. <Model
  55. Name="SBRadarDish" />
  56. </ModelConditionState>
  57. <ModelConditionState
  58. ParseCondStateType="PARSE_NORMAL"
  59. ConditionsYes="FROZEN">
  60. <Model
  61. Name="SBRadarDish" />
  62. <ParticleSysBone
  63. BoneName="None"
  64. FXParticleSystemTemplate="AlliedCryoFrozenMistBuildingSmall"
  65. FollowBone="true"/>
  66. <Material
  67. ShaderName="ObjectsFrozen.fx"
  68. TechniqueName="Default">
  69. <Constants>
  70. <Texture Name="DiffuseTexture">
  71. <Value>SBRadarDish</Value>
  72. </Texture>
  73. <Texture Name="NormalMap">
  74. <Value>SBRadarDish_NRM</Value>
  75. </Texture>
  76. <Texture Name="SpecMap">
  77. <Value>SBRadarDish_SPM</Value>
  78. </Texture>
  79. <Float Name="EnvMult">
  80. <Value>1.000000</Value>
  81. </Float>
  82. <Bool Name="AlphaTestEnable">
  83. <Value>false</Value>
  84. </Bool>
  85. </Constants>
  86. </Material>
  87. </ModelConditionState>
  88. <ModelConditionState
  89. ParseCondStateType="PARSE_NORMAL"
  90. ConditionsYes="DAMAGED">
  91. <Model
  92. Name="SBRadarDish" />
  93. <ParticleSysBone
  94. BoneName="NONE"
  95. FXParticleSystemTemplate="SovietRefinerySmoke"
  96. FollowBone="true"/>
  97. </ModelConditionState>
  98. <ModelConditionState
  99. ParseCondStateType="PARSE_NORMAL"
  100. ConditionsYes="REALLYDAMAGED">
  101. <Model
  102. Name="SBRadarDish" />
  103. <ParticleSysBone
  104. BoneName="NONE"
  105. FXParticleSystemTemplate="SovietBuildingFire01"
  106. FollowBone="true"/>
  107. <ParticleSysBone
  108. BoneName="NONE"
  109. FXParticleSystemTemplate="SovietRefinerySmoke"
  110. FollowBone="true"/>
  111. </ModelConditionState>
  112. <ModelConditionState
  113. ParseCondStateType="PARSE_NORMAL"
  114. ConditionsYes="STRUCTURE_UNPACKING">
  115. <Model
  116. Name="SBRadarDish" />
  117. </ModelConditionState>
  118. <AnimationState
  119. ParseCondStateType="PARSE_DEFAULT"
  120. Flags="RESTART_ANIM_WHEN_COMPLETE DO_NOT_PLAY_WHEN_UNPOWERED"
  121. StateName="STATE_bored">
  122. <Animation
  123. AnimationName="SBRadarDish"
  124. AnimationMode="LOOP" />
  125. </AnimationState>
  126. </ScriptedModelDraw>
  127. </Draws>
  128. <Behaviors>
  129. <RadarBehavior
  130. id="ModuleTag_RadarBehavior" />
  131. <SlowDeath
  132. id="ModuleTag_Death"
  133. SinkDelay="3.0s"
  134. SinkRate="4.0"
  135. DestructionDelay="8.0s">
  136. <!-- <Sound Type="INITIAL" List="HumanFaction_SmallBuilding_DieMS" /> -->
  137. <DieMuxData
  138. DeathTypes="ALL" />
  139. </SlowDeath>
  140. <FXListBehavior
  141. id="ModuleTag_FXList">
  142. <DieMuxData
  143. DeathTypes="ALL" />
  144. <Event
  145. Index="onTransitionToRubble"
  146. FX="FX_BuildRubble_Medium" />
  147. </FXListBehavior>
  148. <StructureUnpackUpdate
  149. id="ModuleTag_StructureUnpack"
  150. UnpackTime="1.5s" />
  151. <xi:include
  152. href="../../Includes/GenericBuildingRepair.xml" />
  153. <xi:include
  154. href="../../Includes/GenericEngineerContain.xml" />
  155. <SubStructureBehavior
  156. id="ModuleTag_SubStructureBehavior" />
  157. </Behaviors>
  158. <Body>
  159. <ActiveBody
  160. id="ModuleTag_Body"
  161. MaxHealth="500.0" />
  162. </Body>
  163. <Geometry
  164. IsSmall="false">
  165. <Shape
  166. Type="BOX"
  167. MajorRadius="20.0"
  168. MinorRadius="15.0"
  169. Height="25.0">
  170. <Offset
  171. x="0"
  172. y="0"
  173. z="0" />
  174. </Shape>
  175. <ContactPoint>
  176. <Pos
  177. x="-13.0"
  178. y="13.0"
  179. z="20" />
  180. </ContactPoint>
  181. <ContactPoint>
  182. <Pos
  183. x="13.0"
  184. y="13.0"
  185. z="0" />
  186. </ContactPoint>
  187. <ContactPoint>
  188. <Pos
  189. x="13.0"
  190. y="-13.0"
  191. z="20" />
  192. </ContactPoint>
  193. <ContactPoint>
  194. <Pos
  195. x="13.0"
  196. y="13.0"
  197. z="0" />
  198. </ContactPoint>
  199. <ContactPoint>
  200. <Pos
  201. x="-13.0"
  202. y="-13.0"
  203. z="20" />
  204. </ContactPoint>
  205. <ContactPoint>
  206. <Pos
  207. x="13.0"
  208. y="13.0"
  209. z="0" />
  210. </ContactPoint>
  211. <ContactPoint>
  212. <Pos
  213. x="-13.0"
  214. y="-13.0"
  215. z="20" />
  216. </ContactPoint>
  217. <ContactPoint>
  218. <Pos
  219. x="-13.0"
  220. y="13.0"
  221. z="0" />
  222. </ContactPoint>
  223. </Geometry>
  224. <AudioArrayVoice>
  225. <AudioEntry
  226. Sound="GDI_CraneSelect"
  227. AudioType="voiceSelect" />
  228. </AudioArrayVoice>
  229. <!--
  230. <AudioArraySound>
  231. <AudioEntry Sound="HumanFaction_SmallBuilding_LightDamageMS" AudioType="soundOnDamaged" />
  232. <AudioEntry Sound="HumanFaction_SmallBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
  233. </AudioArraySound>
  234. -->
  235. <VisionInfo
  236. VisionRange="100"
  237. ShroudClearingRange="400" />
  238. <ProjectedBuildabilityInfo
  239. Radius="0"
  240. BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
  241. </GameObject>
  242. </AssetDeclaration>