HospitalTechStructure.xml 6.1 KB

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