GarageTechStructure.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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:AutoPartsStoreTechStructure.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="all" source="ART:ABBarracks_particles.w3x" />
  13. <Include type="instance" source="DATA:Neutral/Props/GarageTechStructure_Collapse.xml" />
  14. </Includes>
  15. <GameObject
  16. id="GarageTechStructure"
  17. inheritFrom="BaseTechStructure"
  18. KindOf="+DONT_UNATTACH_WHEN_HEALING"
  19. SelectPortrait="Portrait_Neutral_Garage"
  20. ButtonImage="Button_Neutral_Garage"
  21. EditorName="GarageTechStructure"
  22. Description="DESC:GarageTechStructure"
  23. TypeDescription="TYPE:TechStructure"
  24. HealthBoxHeightOffset="60">
  25. <DisplayName
  26. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">NAME:GarageTechStructure</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 BONEGARRISON01 BONEGARRISON02 BONEGARRISON03 BONEGARRISON04 BONEGARRISON05 BONEGARRISON06 BONEGARRISON07 BONEGARRISON08 BONEGARRISON09 BONEGARRISON10 BONEGARRISON11 BONEGARRISON12">
  38. <ModelConditionState
  39. ParseCondStateType="PARSE_DEFAULT">
  40. <Model
  41. Name="AutoPartsStoreTechStructure" />
  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. <!-- This Passive Area Effect Behaviour is what gives the Tech Structure its Unit healing ability -->
  50. <PassiveAreaEffectBehavior
  51. id="ModuleTag_PassiveAreaEffect"
  52. EffectRadius="-1"
  53. NonStackable="true"
  54. AffectUnderAttack="true"
  55. HealingPercentPerSecond="2%" >
  56. <AllowFilter
  57. Rule="ANY"
  58. Include="VEHICLE HUGE_VEHICLE"
  59. Relationship="ALLIES"
  60. StatusBitFlagsExclude="AIRBORNE_TARGET WATER_LOCOMOTOR_ACTIVE"/>
  61. </PassiveAreaEffectBehavior>
  62. <Physics
  63. id="ModuleTag_Physics"/>
  64. <BuildingDestructionBehavior
  65. id="ModuleTag_BuildingDestruction"
  66. FillerMesh="NEWSKIN_FILL">
  67. <DieMuxData
  68. DeathTypes="ALL" />
  69. <Item
  70. BonePrefix="BONE_CONTACT_POINT_"
  71. FX="SovietRefineryHit"
  72. CreationObject="AlliedBarracks_Debris"
  73. FlingVelocity="100.0"/>
  74. </BuildingDestructionBehavior>
  75. <FXListBehavior
  76. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance" id="ModuleTag_FXList">
  77. <DieMuxData
  78. DeathTypes="ALL" />
  79. <Event
  80. Index="onDeath"
  81. FX="FX_MediumBuildingDieExplosion" />
  82. </FXListBehavior>
  83. <CreateObjectDie
  84. id="ModuleTag_CreateObjectDie"
  85. CreationList="GarageTechStructure_Die_OCL">
  86. <DieMuxData
  87. DeathTypes="ALL" />
  88. </CreateObjectDie>
  89. <DestroyDie
  90. id="ModuleTag_Die">
  91. <DieMuxData
  92. DeathTypes="ALL" />
  93. </DestroyDie>
  94. <xi:include
  95. href="../../Includes/GenericEngineerContain.xml" />
  96. <xi:include
  97. href="../../Includes/GenericBuildingRepair.xml" />
  98. <LUAEventList
  99. id="ModuleTag_LUAEventList"
  100. EventListName="BuildingPowerFunctions"
  101. />
  102. </Behaviors>
  103. <Body>
  104. <ActiveBody
  105. id="ModuleTag_Body"
  106. MaxHealth="3000.0"
  107. InitialHealth="3000.0" />
  108. </Body>
  109. <Geometry
  110. IsSmall="false">
  111. <Shape
  112. Type= "BOX"
  113. MajorRadius = "60"
  114. MinorRadius = "65"
  115. Height = "11.3312" >
  116. <Offset
  117. x = "0.0557117"
  118. y = "0.0"
  119. z = "0.0" />
  120. </Shape>
  121. <Shape
  122. Type= "BOX"
  123. MajorRadius = "22.9771"
  124. MinorRadius = "32.328"
  125. Height = "17.2551" >
  126. <Offset
  127. x = "0.0557117"
  128. y = "12.0303"
  129. z = "0.0" />
  130. </Shape>
  131. <Shape
  132. Type= "BOX"
  133. MajorRadius = "6.8014"
  134. MinorRadius = "23.2289"
  135. Height = "34.386" >
  136. <Offset
  137. x = "-2.25994"
  138. y = "12.0303"
  139. z = "0.0" />
  140. </Shape>
  141. <Shape
  142. Type= "BOX"
  143. MajorRadius = "7.20948"
  144. MinorRadius = "9.29157"
  145. Height = "13.9511" >
  146. <Offset
  147. x = "-2.25994"
  148. y = "-24.9826"
  149. z = "17.2743" />
  150. </Shape>
  151. <Shape
  152. Type= "BOX"
  153. MajorRadius = "14.419"
  154. MinorRadius = "14.8665"
  155. Height = "1.2401" >
  156. <Offset
  157. x = "-2.25994"
  158. y = "-24.9826"
  159. z = "17.2743" />
  160. </Shape>
  161. <Shape
  162. Type= "BOX"
  163. MajorRadius = "12.5445"
  164. MinorRadius = "4.04369"
  165. Height = "17.6714" >
  166. <Offset
  167. x = "-2.25994"
  168. y = "-20.6552"
  169. z = "0.0" />
  170. </Shape>
  171. <Shape
  172. Type= "BOX"
  173. MajorRadius = "31.0323"
  174. MinorRadius = "42.5007"
  175. Height = "2.69846" >
  176. <Offset
  177. x = "5.37453"
  178. y = "5.68195"
  179. z = "0.0" />
  180. </Shape>
  181. <Shape
  182. Type= "BOX"
  183. MajorRadius = "4.83035"
  184. MinorRadius = "5.06483"
  185. Height = "22.8798" >
  186. <Offset
  187. x = "21.7146"
  188. y = "54.0889"
  189. z = "-0.00733656" />
  190. </Shape>
  191. <ContactPoint>
  192. <Pos
  193. x= "-13.8169"
  194. y = "-13.7301"
  195. z = "0.0" />
  196. </ContactPoint>
  197. <ContactPoint>
  198. <Pos
  199. x= "13.7173"
  200. y = "-13.7301"
  201. z = "19.0023" />
  202. </ContactPoint>
  203. <ContactPoint>
  204. <Pos
  205. x= "13.7173"
  206. y = "35.3835"
  207. z = "0.0" />
  208. </ContactPoint>
  209. <ContactPoint>
  210. <Pos
  211. x= "-13.8169"
  212. y = "35.3835"
  213. z = "19.0023" />
  214. </ContactPoint>
  215. <ContactPoint>
  216. <Pos
  217. x= "-13.8169"
  218. y = "-13.7301"
  219. z = "19.0023" />
  220. </ContactPoint>
  221. <ContactPoint>
  222. <Pos
  223. x= "13.7173"
  224. y = "-13.7301"
  225. z = "0.0" />
  226. </ContactPoint>
  227. <ContactPoint>
  228. <Pos
  229. x= "13.7173"
  230. y = "35.3835"
  231. z = "19.0023" />
  232. </ContactPoint>
  233. <ContactPoint>
  234. <Pos
  235. x= "-13.8169"
  236. y = "35.3835"
  237. z = "0.0" />
  238. </ContactPoint>
  239. </Geometry>
  240. <AudioArrayVoice>
  241. <AudioEntry EvaEvent="GarageCaptured" AudioType="voiceDefectingTowards" />
  242. <AudioEntry Sound="TEC_Garage_Select" AudioType="voiceSelect" />
  243. </AudioArrayVoice>
  244. <AudioArraySound>
  245. <AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
  246. <AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
  247. </AudioArraySound>
  248. <VisionInfo
  249. VisionRange="100"
  250. ShroudClearingRange="200" />
  251. <ProjectedBuildabilityInfo
  252. Radius="0.0"
  253. BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
  254. </GameObject>
  255. <ObjectCreationList
  256. id="GarageTechStructure_Die_OCL">
  257. <CreateObject
  258. Options="IGNORE_ALL_OBJECTS"
  259. Disposition="LIKE_EXISTING RANDOM_FORCE"
  260. Count="1"
  261. MinForceMagnitude="1.0"
  262. MaxForceMagnitude="2.0"
  263. MinForcePitch="90d"
  264. MaxForcePitch="75d">
  265. <CreateObject>GarageTechStructure_Collapse</CreateObject>
  266. </CreateObject>
  267. </ObjectCreationList>
  268. </AssetDeclaration>