VeterancyTechStructure.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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:VeterancyGranterTechStructure.w3x" />
  8. <Include
  9. type="instance"
  10. source="DATA:BaseObjects/BaseTechStructure.xml" />
  11. <Include type="instance" source="DATA:Civilian/Yucatan_YU/Props/YU_HotelDebris.xml" />
  12. <Include type="instance" source="DATA:Neutral/Props/VeterancyTechStructure_Collapse.xml" />
  13. <Include type="all" source="ART:ABBarracks_particles.w3x" />
  14. </Includes>
  15. <GameObject
  16. id="VeterancyTechStructure"
  17. inheritFrom="BaseTechStructure"
  18. SelectPortrait="Portrait_Neutral_VeterancyBuilding"
  19. ButtonImage="Button_Neutral_VeterancyBuilding"
  20. EditorName="VeterancyTechStructure"
  21. Description="DESC:VeterancyTechStructure"
  22. TypeDescription="Type:TechStructure"
  23. KindOf="+GRANTS_VETERANCY"
  24. HealthBoxHeightOffset="45">
  25. <DisplayName
  26. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">NAME:VeterancyTechStructure</DisplayName>
  27. <ObjectResourceInfo>
  28. <BuildCost Account="=$ACCOUNT_ORE" Amount="=$TECH_STRUCTURE_EFFECTIVE_COST"/>
  29. </ObjectResourceInfo>
  30. <ArmorSet
  31. Armor="StructureArmor"
  32. DamageFX="FactionStructureDamageFX" />
  33. <Draws>
  34. <ScriptedModelDraw
  35. id="ModuleTag_Draw"
  36. OkToChangeModelColor="true"
  37. 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">
  38. <ModelConditionState
  39. ParseCondStateType="PARSE_DEFAULT">
  40. <Model
  41. Name="VeterancyGranterTechStructure" />
  42. </ModelConditionState>
  43. </ScriptedModelDraw>
  44. <xi:include
  45. href="DATA:Includes/TechBuildingFlagDraw.xml"
  46. xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:CommonFlagDraws/child::*)" />
  47. </Draws>
  48. <Behaviors>
  49. <CaptureAndGiveUpgradeBehavior
  50. id="ModuleTag_CaptureAndGiveUpgrade"
  51. UnificationType="ALLIED_PLAYERS">
  52. <UpgradeMap OwnershipAmount="1" ProvidedUpgrade="Upgrade_ProductionVeterancy_VETERAN" />
  53. <UpgradeMap OwnershipAmount="2" ProvidedUpgrade="Upgrade_ProductionVeterancy_ELITE" />
  54. <UpgradeMap OwnershipAmount="3" ProvidedUpgrade="Upgrade_ProductionVeterancy_HEROIC" />
  55. </CaptureAndGiveUpgradeBehavior>
  56. <Physics
  57. id="ModuleTag_Physics"/>
  58. <BuildingDestructionBehavior
  59. id="ModuleTag_BuildingDestruction"
  60. FillerMesh="NEWSKIN_FILL">
  61. <DieMuxData
  62. DeathTypes="ALL" />
  63. <Item
  64. BonePrefix="BONE_CONTACT_POINT_"
  65. FX="SovietRefineryHit"
  66. CreationObject="AlliedBarracks_Debris"
  67. FlingVelocity="100.0"/>
  68. </BuildingDestructionBehavior>
  69. <FXListBehavior
  70. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance" id="ModuleTag_FXList">
  71. <DieMuxData
  72. DeathTypes="ALL" />
  73. <Event
  74. Index="onDeath"
  75. FX="FX_MediumBuildingDieExplosion" />
  76. </FXListBehavior>
  77. <CreateObjectDie
  78. id="ModuleTag_CreateObjectDie"
  79. CreationList="NUVeterancyTechStructure_Die_OCL">
  80. <DieMuxData
  81. DeathTypes="ALL" />
  82. </CreateObjectDie>
  83. <DestroyDie
  84. id="ModuleTag_Die">
  85. <DieMuxData
  86. DeathTypes="ALL" />
  87. </DestroyDie>
  88. <xi:include
  89. href="../../Includes/GenericEngineerContain.xml" />
  90. <xi:include
  91. href="../../Includes/GenericBuildingRepair.xml" />
  92. <LUAEventList
  93. id="ModuleTag_LUAEventList"
  94. EventListName="BuildingPowerFunctions"
  95. />
  96. </Behaviors>
  97. <Body>
  98. <ActiveBody
  99. id="ModuleTag_Body"
  100. MaxHealth="3000.0"
  101. InitialHealth="3000.0" />
  102. </Body>
  103. <Geometry
  104. IsSmall="false">
  105. <Shape
  106. Type= "BOX"
  107. MajorRadius = "105.114"
  108. MinorRadius = "50.000"
  109. Height = "85.2283"
  110. ContactPointGeneration = "STRUCTURE" >
  111. <Offset
  112. x = "0.215218"
  113. y = "52.3765"
  114. z = "0.0" />
  115. </Shape>
  116. <Shape
  117. Type= "BOX"
  118. MajorRadius = "75.4885"
  119. MinorRadius = "65.8824"
  120. Height = "8.63995"
  121. ContactPointGeneration = "STRUCTURE" >
  122. <Offset
  123. x = "0.215218"
  124. y = "-34.9084"
  125. z = "0.0" />
  126. </Shape>
  127. <Shape
  128. Type= "BOX"
  129. MajorRadius = "14.6528"
  130. MinorRadius = "15.4483"
  131. Height = "82.6126"
  132. ContactPointGeneration = "STRUCTURE" >
  133. <Offset
  134. x = "0.215218"
  135. y = "-60.9318"
  136. z = "7.089" />
  137. </Shape>
  138. <ContactPoint>
  139. <Pos
  140. x="-40.0"
  141. y="40.0"
  142. z="26" />
  143. </ContactPoint>
  144. <ContactPoint>
  145. <Pos
  146. x="40.0"
  147. y="40.0"
  148. z="0" />
  149. </ContactPoint>
  150. <ContactPoint>
  151. <Pos
  152. x="40.0"
  153. y="-40.0"
  154. z="26" />
  155. </ContactPoint>
  156. <ContactPoint>
  157. <Pos
  158. x="40.0"
  159. y="40.0"
  160. z="0" />
  161. </ContactPoint>
  162. <ContactPoint>
  163. <Pos
  164. x="-40.0"
  165. y="-40.0"
  166. z="26" />
  167. </ContactPoint>
  168. <ContactPoint>
  169. <Pos
  170. x="40.0"
  171. y="40.0"
  172. z="0" />
  173. </ContactPoint>
  174. <ContactPoint>
  175. <Pos
  176. x="-40.0"
  177. y="-40.0"
  178. z="26" />
  179. </ContactPoint>
  180. <ContactPoint>
  181. <Pos
  182. x="-40.0"
  183. y="40.0"
  184. z="0" />
  185. </ContactPoint>
  186. </Geometry>
  187. <AudioArrayVoice>
  188. <AudioEntry EvaEvent="VeteranAcademyCaptured" AudioType="voiceDefectingTowards" />
  189. <AudioEntry Sound="TEC_VeteranAcademy_Select" AudioType="voiceSelect" />
  190. </AudioArrayVoice>
  191. <AudioArraySound>
  192. <AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
  193. <AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
  194. </AudioArraySound>
  195. <VisionInfo
  196. VisionRange="100"
  197. ShroudClearingRange="200" />
  198. <ProjectedBuildabilityInfo
  199. Radius="0.0"
  200. BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
  201. </GameObject>
  202. <ObjectCreationList
  203. id="NUVeterancyTechStructure_Die_OCL">
  204. <CreateObject
  205. Options="IGNORE_ALL_OBJECTS"
  206. Disposition="LIKE_EXISTING RANDOM_FORCE"
  207. Count="1"
  208. MinForceMagnitude="1.0"
  209. MaxForceMagnitude="2.0"
  210. MinForcePitch="90d"
  211. MaxForcePitch="75d">
  212. <CreateObject>NUVeterancyTechStructure_Collapse</CreateObject>
  213. </CreateObject>
  214. </ObjectCreationList>
  215. </AssetDeclaration>