JapanRefinery.xml 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601
  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:JBRefinery_SKN.w3x" />
  9. <Include
  10. type="all"
  11. source="ART:JBRefinery_BLD.w3x" />
  12. <Include
  13. type="all"
  14. source="ART:JBRefinery_BLD2.w3x" />
  15. <Include
  16. type="all"
  17. source="ART:JBRefinery_FX.w3x" />
  18. <Include
  19. type="all"
  20. source="ART:JBRefinery_ARM_SKN.w3x" />
  21. <Include
  22. type="all"
  23. source="ART:JBRefinery_ARM_IDLA.w3x" />
  24. <Include
  25. type="all"
  26. source="ART:JBRefinery_ARM_UNLOAD.w3x" />
  27. <Include
  28. type="all"
  29. source="ART:JBRefinery_ARM_EMPTY.w3x" />
  30. <Include
  31. type="all"
  32. source="ART:JBRefinery_ARM_BLD.w3x" />
  33. <Include
  34. type="all"
  35. source="ART:JBRefinery_ARM_BLD2.w3x" />
  36. <Include
  37. type="all"
  38. source="ART:JBRefinery_Platform_SKN.w3x" />
  39. <Include
  40. type="all"
  41. source="ART:JBRefinery_Platform_BLD.w3x" />
  42. <Include
  43. type="all"
  44. source="ART:Ore_Gold_SKN.w3x" />
  45. <Include
  46. type="all"
  47. source="ART:Ore_Gold_JBRU.w3x" />
  48. <Include
  49. type="all"
  50. source="ART:Ore_Gold_JBRE.w3x" />
  51. <!-- Base Object -->
  52. <Include
  53. type="instance"
  54. source="DATA:BaseObjects/BaseStructure.xml" />
  55. </Includes>
  56. <GameObject
  57. id="JapanRefinery"
  58. inheritFrom="BaseStructure"
  59. SelectPortrait="Portrait_JapanRefinery"
  60. ButtonImage="Button_JapanRefinery"
  61. Side="Japan"
  62. EditorSorting="STRUCTURE"
  63. BuildTime="15"
  64. CommandSet="JapanRefineryCommandSet"
  65. KindOf="+SUPPLY_GATHERING_CENTER +FS_MONEY_STORAGE +REFINERY +SKIRMISH_AI_CAN_BUILD_DURING_EMERGENCY_NO_INCOME +ACTIVATE_AFTER_UNPACK"
  66. RadarPriority="STRUCTURE"
  67. PlacementViewAngle="315d"
  68. EnergyProduction="-50"
  69. RefundValue="550"
  70. ProductionQueueType="MAIN_STRUCTURE"
  71. BuildPlacementTypeFlag="MAIN_STRUCTURE"
  72. IsTrainable="false"
  73. EditorName="JapanRefinery"
  74. Description="Desc:JapanRefinery"
  75. TypeDescription="Type:JapanRefinery">
  76. <DisplayName
  77. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">Name:JapanRefinery</DisplayName>
  78. <GameDependency>
  79. <ObjectFilter
  80. Rule="ANY">
  81. <IncludeThing>JapanConstructionYard</IncludeThing>
  82. <IncludeThing>JapanCrane</IncludeThing>
  83. </ObjectFilter>
  84. </GameDependency>
  85. <ObjectResourceInfo>
  86. <BuildCost Account="=$ACCOUNT_ORE" Amount="2500"/>
  87. </ObjectResourceInfo>
  88. <ArmorSet
  89. Armor="JapanRefineryArmor"
  90. DamageFX="FactionStructureDamageFX" />
  91. <SkirmishAIInformation
  92. BaseBuildingLocation="NEAR_RESOURCE_NODE"
  93. NearResourceNodeType="ORE" >
  94. <ResourceNodeBaseClosenessTestSelectionCriteria
  95. PreferredNotBaseTypes="CAPTURED"
  96. SortOrder="PREFER_CLOSEST" />
  97. </SkirmishAIInformation>
  98. <Draws>
  99. <ScriptedModelDraw
  100. id="ModuleTag_Draw"
  101. OkToChangeModelColor="true"
  102. ExtraPublicBone="DockStart DockAction DockEnd QUE01 QUE02 QUE03 QUE04 QUE05 QUE06 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">
  103. <ModelConditionState
  104. ParseCondStateType="PARSE_DEFAULT">
  105. <Model
  106. Name="JBRefinery_SKN" />
  107. <ParticleSysBone
  108. BoneName="FXBone01"
  109. FXParticleSystemTemplate="JapanPowerGlow"
  110. FollowBone="true" />
  111. </ModelConditionState>
  112. <ModelConditionState
  113. ParseCondStateType="PARSE_NORMAL"
  114. ConditionsYes="BUILD_PLACEMENT_CURSOR">
  115. <Model
  116. Name="JBRefinery_SKN" />
  117. <Material ShaderName="ObjectsGeneric.fx" TechniqueName="Default">
  118. <Constants>
  119. <Texture Name="DiffuseTexture">
  120. <Value>JBRefinery</Value>
  121. </Texture>
  122. <Texture Name="NormalMap">
  123. <Value>JBRefinery_NRM</Value>
  124. </Texture>
  125. <Texture Name="SpecMap">
  126. <Value>JBRefinery_SPM</Value>
  127. </Texture>
  128. <Float Name="BumpScale">
  129. <Value>1.000000</Value>
  130. </Float>
  131. <Float Name="AmbientColor">
  132. <Value>0.400000</Value>
  133. <Value>0.400000</Value>
  134. <Value>0.400000</Value>
  135. </Float>
  136. <Float Name="DiffuseColor">
  137. <Value>1.000000</Value>
  138. <Value>1.000000</Value>
  139. <Value>1.000000</Value>
  140. <Value>1.000000</Value>
  141. </Float>
  142. <Float Name="SpecularColor">
  143. <Value>0.800000</Value>
  144. <Value>0.800000</Value>
  145. <Value>0.800000</Value>
  146. </Float>
  147. <Float Name="SpecularExponent">
  148. <Value>50.000000</Value>
  149. </Float>
  150. <Float Name="EnvMult">
  151. <Value>1.000000</Value>
  152. </Float>
  153. <Bool Name="AlphaTestEnable">
  154. <Value>false</Value>
  155. </Bool>
  156. </Constants>
  157. </Material>
  158. </ModelConditionState>
  159. <ModelConditionState
  160. ParseCondStateType="PARSE_NORMAL"
  161. ConditionsYes="STRUCTURE_UNPACKING">
  162. <Model
  163. Name="JBRefinery_SKN" />
  164. <Material ShaderName="BasicW3DHolographic.fx" TechniqueName="Default">
  165. <Constants>
  166. <Float Name="ColorAmbient">
  167. <Value>0.000000</Value>
  168. <Value>0.000000</Value>
  169. <Value>0.000000</Value>
  170. </Float>
  171. <Float Name="ColorDiffuse">
  172. <Value>0.000000</Value>
  173. <Value>0.000000</Value>
  174. <Value>0.000000</Value>
  175. </Float>
  176. <Float Name="ColorSpecular">
  177. <Value>0.000000</Value>
  178. <Value>0.000000</Value>
  179. <Value>0.000000</Value>
  180. </Float>
  181. <Float Name="Shininess">
  182. <Value>0.000000</Value>
  183. </Float>
  184. <Float Name="ColorEmissive">
  185. <Value>1.000000</Value>
  186. <Value>1.000000</Value>
  187. <Value>1.000000</Value>
  188. </Float>
  189. <Texture Name="Texture_0">
  190. <Value>FXJapanBuildMask</Value>
  191. </Texture>
  192. <Bool Name="DepthWriteEnable">
  193. <Value>false</Value>
  194. </Bool>
  195. <Bool Name="AlphaTestEnable">
  196. <Value>false</Value>
  197. </Bool>
  198. <Bool Name="CullingEnable">
  199. <Value>true</Value>
  200. </Bool>
  201. <Int Name="BlendMode">
  202. <Value>1</Value>
  203. </Int>
  204. </Constants>
  205. </Material>
  206. </ModelConditionState>
  207. <ModelConditionState
  208. ParseCondStateType="PARSE_NORMAL"
  209. ConditionsYes="SOLD">
  210. <Model
  211. Name="JBRefinery_SKN" />
  212. <Material ShaderName="BasicW3DHolographic.fx" TechniqueName="Default">
  213. <Constants>
  214. <Float Name="ColorAmbient">
  215. <Value>0.000000</Value>
  216. <Value>0.000000</Value>
  217. <Value>0.000000</Value>
  218. </Float>
  219. <Float Name="ColorDiffuse">
  220. <Value>0.000000</Value>
  221. <Value>0.000000</Value>
  222. <Value>0.000000</Value>
  223. </Float>
  224. <Float Name="ColorSpecular">
  225. <Value>0.000000</Value>
  226. <Value>0.000000</Value>
  227. <Value>0.000000</Value>
  228. </Float>
  229. <Float Name="Shininess">
  230. <Value>0.000000</Value>
  231. </Float>
  232. <Float Name="ColorEmissive">
  233. <Value>1.000000</Value>
  234. <Value>1.000000</Value>
  235. <Value>1.000000</Value>
  236. </Float>
  237. <Texture Name="Texture_0">
  238. <Value>FXJapanBuildMask</Value>
  239. </Texture>
  240. <Bool Name="DepthWriteEnable">
  241. <Value>false</Value>
  242. </Bool>
  243. <Bool Name="AlphaTestEnable">
  244. <Value>false</Value>
  245. </Bool>
  246. <Bool Name="CullingEnable">
  247. <Value>true</Value>
  248. </Bool>
  249. <Int Name="BlendMode">
  250. <Value>1</Value>
  251. </Int>
  252. </Constants>
  253. </Material>
  254. </ModelConditionState>
  255. <AnimationState
  256. ParseCondStateType="PARSE_DEFAULT"
  257. StateName="STATE_Idle">
  258. </AnimationState>
  259. <AnimationState
  260. ParseCondStateType="PARSE_NORMAL"
  261. ConditionsYes="BUILD_PLACEMENT_CURSOR"
  262. Flags="START_FRAME_LAST">
  263. <Animation
  264. AnimationName="JBRefinery_BLD"
  265. AnimationMode="ONCE"
  266. AnimationBlendTime="0" />
  267. <Script>
  268. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  269. </Script>
  270. </AnimationState>
  271. <AnimationState
  272. ParseCondStateType="PARSE_NORMAL"
  273. ConditionsYes="STRUCTURE_UNPACKING">
  274. <Animation
  275. AnimationName="JBRefinery_BLD2"
  276. AnimationMode="MATCH_UNPACKING"
  277. AnimationBlendTime="0" />
  278. <Script>
  279. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  280. </Script>
  281. </AnimationState>
  282. <AnimationState
  283. ParseCondStateType="PARSE_NORMAL"
  284. ConditionsYes="SOLD"
  285. Flags="START_FRAME_LAST">
  286. <Animation
  287. AnimationName="JBRefinery_BLD2"
  288. AnimationMode="ONCE_BACKWARDS"
  289. AnimationAbsoluteTime="2s"/>
  290. <Script>
  291. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  292. </Script>
  293. </AnimationState>
  294. </ScriptedModelDraw>
  295. <!-- DRAW BUILD UP -->
  296. <ScriptedModelDraw
  297. id="ModuleTag_Draw_Buildup"
  298. ExtraPublicBone="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"
  299. OkToChangeModelColor="true">
  300. <ModelConditionState
  301. ParseCondStateType="PARSE_DEFAULT">
  302. <!-- for some reason this structure needs to have a default model. I think it has something to do with the turn table or the que bones. -->
  303. <Model
  304. Name="JBRefinery_SKN" />
  305. </ModelConditionState>
  306. <ModelConditionState
  307. ParseCondStateType="PARSE_NORMAL"
  308. ConditionsYes="BUILD_PLACEMENT_HINT">
  309. <Model
  310. Name="" />
  311. </ModelConditionState>
  312. <ModelConditionState
  313. ParseCondStateType="PARSE_NORMAL"
  314. ConditionsYes="STRUCTURE_UNPACKING">
  315. <Model
  316. Name="JBRefinery_SKN" />
  317. <Material ShaderName="BuildingsJapanBuildup.fx" TechniqueName="Default">
  318. <Constants>
  319. <Texture Name="DiffuseTexture">
  320. <Value>JBRefinery</Value>
  321. </Texture>
  322. <Texture Name="NormalMap">
  323. <Value>JBRefinery_NRM</Value>
  324. </Texture>
  325. <Texture Name="SpecMap">
  326. <Value>JBRefinery_SPM</Value>
  327. </Texture>
  328. <Float Name="EnvMult">
  329. <Value>1.000000</Value>
  330. </Float>
  331. <Bool Name="AlphaTestEnable">
  332. <Value>true</Value>
  333. </Bool>
  334. </Constants>
  335. </Material>
  336. </ModelConditionState>
  337. <ModelConditionState
  338. ParseCondStateType="PARSE_NORMAL"
  339. ConditionsYes="SOLD">
  340. <Model
  341. Name="JBRefinery_SKN" />
  342. <Material ShaderName="BuildingsJapanBuildup.fx" TechniqueName="Default">
  343. <Constants>
  344. <Texture Name="DiffuseTexture">
  345. <Value>JBRefinery</Value>
  346. </Texture>
  347. <Texture Name="NormalMap">
  348. <Value>JBRefinery_NRM</Value>
  349. </Texture>
  350. <Texture Name="SpecMap">
  351. <Value>JBRefinery_SPM</Value>
  352. </Texture>
  353. <Float Name="EnvMult">
  354. <Value>1.000000</Value>
  355. </Float>
  356. <Bool Name="AlphaTestEnable">
  357. <Value>true</Value>
  358. </Bool>
  359. </Constants>
  360. </Material>
  361. </ModelConditionState>
  362. <AnimationState
  363. ParseCondStateType="PARSE_DEFAULT">
  364. <Script>
  365. CurDrawableHideSubObjectPermanently("NewSkin")
  366. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  367. </Script>
  368. </AnimationState>
  369. <AnimationState
  370. ParseCondStateType="PARSE_NORMAL"
  371. ConditionsYes="STRUCTURE_UNPACKING">
  372. <Animation
  373. AnimationName="JBRefinery_BLD"
  374. AnimationMode="MATCH_UNPACKING"
  375. AnimationBlendTime="0" />
  376. <Script>
  377. CurDrawableShowSubObjectPermanently("NewSkin")
  378. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  379. </Script>
  380. </AnimationState>
  381. <AnimationState
  382. ParseCondStateType="PARSE_NORMAL"
  383. ConditionsYes="SOLD"
  384. Flags="START_FRAME_LAST">
  385. <Animation
  386. AnimationName="JBRefinery_BLD"
  387. AnimationMode="ONCE_BACKWARDS"
  388. AnimationAbsoluteTime="2s"/>
  389. <Script>
  390. CurDrawableShowSubObjectPermanently("NewSkin")
  391. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  392. </Script>
  393. </AnimationState>
  394. </ScriptedModelDraw>
  395. <!-- Draw Arm -->
  396. <ScriptedModelDraw
  397. id="ModuleTag_Draw_ARM"
  398. OkToChangeModelColor="true"
  399. ExtraPublicBone="BONE_TABLE">
  400. <ModelConditionState
  401. ParseCondStateType="PARSE_DEFAULT">
  402. <Model
  403. Name="JBRefinery_ARM_SKN" />
  404. </ModelConditionState>
  405. <ModelConditionState
  406. ParseCondStateType="PARSE_NORMAL"
  407. ConditionsYes="BUILD_PLACEMENT_HINT">
  408. <Model
  409. Name="" />
  410. </ModelConditionState>
  411. <ModelConditionState
  412. ParseCondStateType="PARSE_NORMAL"
  413. ConditionsYes="BUILD_PLACEMENT_CURSOR">
  414. <Model
  415. Name="JBRefinery_ARM_SKN" />
  416. <Material ShaderName="ObjectsGeneric.fx" TechniqueName="Default">
  417. <Constants>
  418. <Texture Name="DiffuseTexture">
  419. <Value>JBRefinery</Value>
  420. </Texture>
  421. <Texture Name="NormalMap">
  422. <Value>JBRefinery_NRM</Value>
  423. </Texture>
  424. <Texture Name="SpecMap">
  425. <Value>JBRefinery_SPM</Value>
  426. </Texture>
  427. <Float Name="BumpScale">
  428. <Value>1.000000</Value>
  429. </Float>
  430. <Float Name="AmbientColor">
  431. <Value>0.400000</Value>
  432. <Value>0.400000</Value>
  433. <Value>0.400000</Value>
  434. </Float>
  435. <Float Name="DiffuseColor">
  436. <Value>1.000000</Value>
  437. <Value>1.000000</Value>
  438. <Value>1.000000</Value>
  439. <Value>1.000000</Value>
  440. </Float>
  441. <Float Name="SpecularColor">
  442. <Value>0.800000</Value>
  443. <Value>0.800000</Value>
  444. <Value>0.800000</Value>
  445. </Float>
  446. <Float Name="SpecularExponent">
  447. <Value>50.000000</Value>
  448. </Float>
  449. <Float Name="EnvMult">
  450. <Value>1.000000</Value>
  451. </Float>
  452. <Bool Name="AlphaTestEnable">
  453. <Value>false</Value>
  454. </Bool>
  455. </Constants>
  456. </Material>
  457. </ModelConditionState>
  458. <ModelConditionState
  459. ParseCondStateType="PARSE_NORMAL"
  460. ConditionsYes="STRUCTURE_UNPACKING">
  461. <Model
  462. Name="JBRefinery_ARM_SKN" />
  463. <Material ShaderName="BasicW3DHolographic.fx" TechniqueName="Default">
  464. <Constants>
  465. <Float Name="ColorAmbient">
  466. <Value>0.000000</Value>
  467. <Value>0.000000</Value>
  468. <Value>0.000000</Value>
  469. </Float>
  470. <Float Name="ColorDiffuse">
  471. <Value>0.000000</Value>
  472. <Value>0.000000</Value>
  473. <Value>0.000000</Value>
  474. </Float>
  475. <Float Name="ColorSpecular">
  476. <Value>0.000000</Value>
  477. <Value>0.000000</Value>
  478. <Value>0.000000</Value>
  479. </Float>
  480. <Float Name="Shininess">
  481. <Value>0.000000</Value>
  482. </Float>
  483. <Float Name="ColorEmissive">
  484. <Value>1.000000</Value>
  485. <Value>1.000000</Value>
  486. <Value>1.000000</Value>
  487. </Float>
  488. <Texture Name="Texture_0">
  489. <Value>FXJapanBuildMask</Value>
  490. </Texture>
  491. <Bool Name="DepthWriteEnable">
  492. <Value>false</Value>
  493. </Bool>
  494. <Bool Name="AlphaTestEnable">
  495. <Value>false</Value>
  496. </Bool>
  497. <Bool Name="CullingEnable">
  498. <Value>true</Value>
  499. </Bool>
  500. <Int Name="BlendMode">
  501. <Value>1</Value>
  502. </Int>
  503. </Constants>
  504. </Material>
  505. </ModelConditionState>
  506. <ModelConditionState
  507. ParseCondStateType="PARSE_NORMAL"
  508. ConditionsYes="SOLD">
  509. <Model
  510. Name="JBRefinery_ARM_SKN" />
  511. <Material ShaderName="BasicW3DHolographic.fx" TechniqueName="Default">
  512. <Constants>
  513. <Float Name="ColorAmbient">
  514. <Value>0.000000</Value>
  515. <Value>0.000000</Value>
  516. <Value>0.000000</Value>
  517. </Float>
  518. <Float Name="ColorDiffuse">
  519. <Value>0.000000</Value>
  520. <Value>0.000000</Value>
  521. <Value>0.000000</Value>
  522. </Float>
  523. <Float Name="ColorSpecular">
  524. <Value>0.000000</Value>
  525. <Value>0.000000</Value>
  526. <Value>0.000000</Value>
  527. </Float>
  528. <Float Name="Shininess">
  529. <Value>0.000000</Value>
  530. </Float>
  531. <Float Name="ColorEmissive">
  532. <Value>1.000000</Value>
  533. <Value>1.000000</Value>
  534. <Value>1.000000</Value>
  535. </Float>
  536. <Texture Name="Texture_0">
  537. <Value>FXJapanBuildMask</Value>
  538. </Texture>
  539. <Bool Name="DepthWriteEnable">
  540. <Value>false</Value>
  541. </Bool>
  542. <Bool Name="AlphaTestEnable">
  543. <Value>false</Value>
  544. </Bool>
  545. <Bool Name="CullingEnable">
  546. <Value>true</Value>
  547. </Bool>
  548. <Int Name="BlendMode">
  549. <Value>1</Value>
  550. </Int>
  551. </Constants>
  552. </Material>
  553. </ModelConditionState>
  554. <AnimationState
  555. ParseCondStateType="PARSE_DEFAULT"
  556. StateName="STATE_Idle">
  557. <Animation
  558. AnimationName="JBRefinery_ARM_IDLA"
  559. AnimationMode="LOOP"
  560. AnimationBlendTime="0" />
  561. <Script>
  562. Prev = CurDrawablePrevAnimationState();
  563. if Prev == "STATE_Unload" then
  564. CurDrawableSetTransitionAnimState("TRANS_Unload")
  565. end
  566. </Script>
  567. </AnimationState>
  568. <AnimationState
  569. ParseCondStateType="PARSE_NORMAL"
  570. ConditionsYes="BUILD_PLACEMENT_CURSOR"
  571. Flags="START_FRAME_LAST">
  572. <Animation
  573. AnimationName="JBRefinery_ARM_BLD"
  574. AnimationMode="ONCE"
  575. AnimationBlendTime="0" />
  576. <Script>
  577. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  578. </Script>
  579. </AnimationState>
  580. <AnimationState
  581. ParseCondStateType="PARSE_NORMAL"
  582. ConditionsYes="STRUCTURE_UNPACKING">
  583. <Animation
  584. AnimationName="JBRefinery_ARM_BLD2"
  585. AnimationMode="MATCH_UNPACKING"
  586. AnimationBlendTime="0" />
  587. <Script>
  588. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  589. </Script>
  590. </AnimationState>
  591. <AnimationState
  592. ParseCondStateType="PARSE_NORMAL"
  593. ConditionsYes="SOLD"
  594. Flags="START_FRAME_LAST">
  595. <Animation
  596. AnimationName="JBRefinery_ARM_BLD2"
  597. AnimationMode="ONCE_BACKWARDS"
  598. AnimationAbsoluteTime="2s"/>
  599. <Script>
  600. CurDrawableHideSubObjectPermanently("NewSkin_Fill")
  601. </Script>
  602. </AnimationState>
  603. <AnimationState
  604. ParseCondStateType="PARSE_NORMAL"
  605. StateName="STATE_Unload"
  606. ConditionsYes="OVER_WATER DOCKING_ACTIVE">
  607. <Animation
  608. AnimationName="JBRefinery_ARM_UNLOAD"
  609. AnimationMode="ONCE"
  610. AnimationBlendTime="0" />
  611. <Script>
  612. CurDrawableShowSubObjectPermanently("Table_Water")
  613. CurDrawableHideSubObjectPermanently("Table")
  614. </Script>
  615. </AnimationState>
  616. <AnimationState
  617. ParseCondStateType="PARSE_NORMAL"
  618. StateName="STATE_Unload"
  619. ConditionsYes="DOCKING_ACTIVE">
  620. <Animation
  621. AnimationName="JBRefinery_ARM_UNLOAD"
  622. AnimationMode="ONCE"
  623. AnimationBlendTime="0" />
  624. <Script>
  625. CurDrawableHideSubObjectPermanently("Table_Water")
  626. CurDrawableShowSubObjectPermanently("Table")
  627. </Script>
  628. </AnimationState>
  629. <AnimationState
  630. ParseCondStateType="PARSE_NORMAL"
  631. ConditionsYes="OVER_WATER"
  632. StateName="STATE_Idle">
  633. <Animation
  634. AnimationName="JBRefinery_ARM_IDLA"
  635. AnimationMode="LOOP"
  636. AnimationBlendTime="0" />
  637. <Script>
  638. CurDrawableShowSubObjectPermanently("Table_Water")
  639. CurDrawableHideSubObjectPermanently("Table")
  640. Prev = CurDrawablePrevAnimationState();
  641. if Prev == "STATE_Unload" then
  642. CurDrawableSetTransitionAnimState("TRANS_Unload")
  643. end
  644. </Script>
  645. </AnimationState>
  646. <AnimationState
  647. ParseCondStateType="PARSE_TRANSITION"
  648. StateName="TRANS_Unload">
  649. <Animation
  650. AnimationName="JBRefinery_ARM_EMPTY"
  651. AnimationMode="ONCE"
  652. AnimationBlendTime="0" />
  653. </AnimationState>
  654. </ScriptedModelDraw>
  655. <!-- DRAW ARM BUILD UP -->
  656. <ScriptedModelDraw
  657. id="ModuleTag_Draw_Arm_Buildup"
  658. ExtraPublicBone="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"
  659. OkToChangeModelColor="true">
  660. <ModelConditionState
  661. ParseCondStateType="PARSE_DEFAULT">
  662. <!-- for some reason this structure needs to have a default model. I think it has something to do with the turn table or the que bones. -->
  663. <Model
  664. Name="" />
  665. </ModelConditionState>
  666. <ModelConditionState
  667. ParseCondStateType="PARSE_NORMAL"
  668. ConditionsYes="BUILD_PLACEMENT_HINT">
  669. <Model
  670. Name="" />
  671. </ModelConditionState>
  672. <ModelConditionState
  673. ParseCondStateType="PARSE_NORMAL"
  674. ConditionsYes="STRUCTURE_UNPACKING">
  675. <Model
  676. Name="JBRefinery_ARM_SKN" />
  677. <Material ShaderName="BuildingsJapanBuildup.fx" TechniqueName="Default">
  678. <Constants>
  679. <Texture Name="DiffuseTexture">
  680. <Value>JBRefinery</Value>
  681. </Texture>
  682. <Texture Name="NormalMap">
  683. <Value>JBRefinery_NRM</Value>
  684. </Texture>
  685. <Texture Name="SpecMap">
  686. <Value>JBRefinery_SPM</Value>
  687. </Texture>
  688. <Float Name="EnvMult">
  689. <Value>1.000000</Value>
  690. </Float>
  691. <Bool Name="AlphaTestEnable">
  692. <Value>true</Value>
  693. </Bool>
  694. </Constants>
  695. </Material>
  696. </ModelConditionState>
  697. <ModelConditionState
  698. ParseCondStateType="PARSE_NORMAL"
  699. ConditionsYes="SOLD">
  700. <Model
  701. Name="JBRefinery_ARM_SKN" />
  702. <Material ShaderName="BuildingsJapanBuildup.fx" TechniqueName="Default">
  703. <Constants>
  704. <Texture Name="DiffuseTexture">
  705. <Value>JBRefinery</Value>
  706. </Texture>
  707. <Texture Name="NormalMap">
  708. <Value>JBRefinery_NRM</Value>
  709. </Texture>
  710. <Texture Name="SpecMap">
  711. <Value>JBRefinery_SPM</Value>
  712. </Texture>
  713. <Float Name="EnvMult">
  714. <Value>1.000000</Value>
  715. </Float>
  716. <Bool Name="AlphaTestEnable">
  717. <Value>true</Value>
  718. </Bool>
  719. </Constants>
  720. </Material>
  721. </ModelConditionState>
  722. <AnimationState
  723. ParseCondStateType="PARSE_DEFAULT">
  724. <Script>
  725. CurDrawableHideSubObjectPermanently("NewSkin")
  726. CurDrawableHideSubObjectPermanently("Table")
  727. CurDrawableHideSubObjectPermanently("Table_Water")
  728. </Script>
  729. </AnimationState>
  730. <AnimationState
  731. ParseCondStateType="PARSE_NORMAL"
  732. ConditionsYes="STRUCTURE_UNPACKING OVER_WATER">
  733. <Animation
  734. AnimationName="JBRefinery_ARM_BLD"
  735. AnimationMode="MATCH_UNPACKING"
  736. AnimationBlendTime="0" />
  737. <Script>
  738. CurDrawableShowSubObjectPermanently("NewSkin")
  739. CurDrawableHideSubObjectPermanently("Table")
  740. CurDrawableShowSubObjectPermanently("Table_Water")
  741. </Script>
  742. </AnimationState>
  743. <AnimationState
  744. ParseCondStateType="PARSE_NORMAL"
  745. ConditionsYes="STRUCTURE_UNPACKING">
  746. <Animation
  747. AnimationName="JBRefinery_ARM_BLD"
  748. AnimationMode="MATCH_UNPACKING"
  749. AnimationBlendTime="0" />
  750. <Script>
  751. CurDrawableShowSubObjectPermanently("NewSkin")
  752. CurDrawableShowSubObjectPermanently("Table")
  753. CurDrawableHideSubObjectPermanently("Table_Water")
  754. </Script>
  755. </AnimationState>
  756. <AnimationState
  757. ParseCondStateType="PARSE_NORMAL"
  758. ConditionsYes="SOLD OVER_WATER"
  759. Flags="START_FRAME_LAST">
  760. <Animation
  761. AnimationName="JBRefinery_ARM_BLD"
  762. AnimationMode="ONCE_BACKWARDS"
  763. AnimationAbsoluteTime="2s"/>
  764. <Script>
  765. CurDrawableShowSubObjectPermanently("NewSkin")
  766. CurDrawableHideSubObjectPermanently("Table")
  767. CurDrawableShowSubObjectPermanently("Table_Water")
  768. </Script>
  769. </AnimationState>
  770. <AnimationState
  771. ParseCondStateType="PARSE_NORMAL"
  772. ConditionsYes="SOLD"
  773. Flags="START_FRAME_LAST">
  774. <Animation
  775. AnimationName="JBRefinery_ARM_BLD"
  776. AnimationMode="ONCE_BACKWARDS"
  777. AnimationAbsoluteTime="2s"/>
  778. <Script>
  779. CurDrawableShowSubObjectPermanently("NewSkin")
  780. CurDrawableShowSubObjectPermanently("Table")
  781. CurDrawableHideSubObjectPermanently("Table_Water")
  782. </Script>
  783. </AnimationState>
  784. </ScriptedModelDraw>
  785. <!-- Draw Ore -->
  786. <ScriptedModelDraw
  787. id="ModuleTag_Draw_Ore"
  788. OkToChangeModelColor="true">
  789. <ModelConditionState
  790. ParseCondStateType="PARSE_DEFAULT">
  791. <Model
  792. Name="Ore_Gold_SKN" />
  793. </ModelConditionState>
  794. <ModelConditionState
  795. ParseCondStateType="PARSE_NORMAL"
  796. ConditionsYes="BUILD_PLACEMENT_HINT">
  797. <Model
  798. Name="" />
  799. </ModelConditionState>
  800. <ModelConditionState
  801. ParseCondStateType="PARSE_NORMAL"
  802. ConditionsYes="STRUCTURE_UNPACKING">
  803. <Model
  804. Name="" />
  805. </ModelConditionState>
  806. <ModelConditionState
  807. ParseCondStateType="PARSE_NORMAL"
  808. ConditionsYes="SOLD">
  809. <Model
  810. Name="" />
  811. </ModelConditionState>
  812. <AnimationState
  813. ParseCondStateType="PARSE_DEFAULT"
  814. Flags="START_FRAME_LAST">
  815. <Animation
  816. AnimationName="Ore_Gold_JBRE"
  817. AnimationMode="ONCE"
  818. AnimationBlendTime="0" />
  819. <Script>
  820. Prev = CurDrawablePrevAnimationState();
  821. if Prev == "STATE_Unload" then
  822. CurDrawableSetTransitionAnimState("TRANS_Unload")
  823. end
  824. </Script>
  825. </AnimationState>
  826. <AnimationState
  827. ParseCondStateType="PARSE_NORMAL"
  828. StateName="STATE_Unload"
  829. ConditionsYes="DOCKING_ACTIVE">
  830. <Animation
  831. AnimationName="Ore_Gold_JBRU"
  832. AnimationMode="ONCE"
  833. AnimationBlendTime="0" />
  834. </AnimationState>
  835. <AnimationState
  836. ParseCondStateType="PARSE_TRANSITION"
  837. StateName="TRANS_Unload">
  838. <Animation
  839. AnimationName="Ore_Gold_JBRE"
  840. AnimationMode="ONCE"
  841. AnimationBlendTime="0" />
  842. </AnimationState>
  843. </ScriptedModelDraw>
  844. <!-- DRAW PLATFORM -->
  845. <ScriptedModelDraw
  846. id="ModuleTag_Draw_Platform"
  847. OkToChangeModelColor="true">
  848. <ModelConditionState
  849. ParseCondStateType="PARSE_DEFAULT">
  850. <Model
  851. Name="JBRefinery_Platform_SKN" />
  852. </ModelConditionState>
  853. <ModelConditionState
  854. ParseCondStateType="PARSE_NORMAL"
  855. ConditionsYes="BUILD_PLACEMENT_HINT">
  856. <Model
  857. Name="" />
  858. </ModelConditionState>
  859. <ModelConditionState
  860. ParseCondStateType="PARSE_NORMAL"
  861. ConditionsYes="STRUCTURE_UNPACKING">
  862. <!-- model not found
  863. <Model
  864. Name="JBRefinery_Platform_BLD"/>
  865. -->
  866. <!-- particle system template not found
  867. <ParticleSysBone
  868. BoneName="None"
  869. FXParticleSystemTemplate="ABPowerPlantWakeSplash"
  870. FollowBone="true" />
  871. -->
  872. <Material ShaderName="BasicW3DHolographic.fx" TechniqueName="Default">
  873. <Constants>
  874. <Float Name="ColorAmbient">
  875. <Value>0.000000</Value>
  876. <Value>0.000000</Value>
  877. <Value>0.000000</Value>
  878. </Float>
  879. <Float Name="ColorDiffuse">
  880. <Value>0.000000</Value>
  881. <Value>0.000000</Value>
  882. <Value>0.000000</Value>
  883. </Float>
  884. <Float Name="ColorSpecular">
  885. <Value>0.000000</Value>
  886. <Value>0.000000</Value>
  887. <Value>0.000000</Value>
  888. </Float>
  889. <Float Name="Shininess">
  890. <Value>1.000000</Value>
  891. </Float>
  892. <Float Name="ColorEmissive">
  893. <Value>1.000000</Value>
  894. <Value>1.000000</Value>
  895. <Value>1.000000</Value>
  896. </Float>
  897. <Texture Name="Texture_0">
  898. <Value>FXJapanBuildMask</Value>
  899. </Texture>
  900. <Bool Name="DepthWriteEnable">
  901. <Value>true</Value>
  902. </Bool>
  903. <Bool Name="AlphaTestEnable">
  904. <Value>true</Value>
  905. </Bool>
  906. <Bool Name="CullingEnable">
  907. <Value>true</Value>
  908. </Bool>
  909. <Int Name="BlendMode">
  910. <Value>1</Value>
  911. </Int>
  912. </Constants>
  913. </Material>
  914. </ModelConditionState>
  915. <ModelConditionState
  916. ParseCondStateType="PARSE_NORMAL"
  917. ConditionsYes="SOLD">
  918. <!-- model not found
  919. <Model
  920. Name="JBRefinery_Platform_BLD"/>
  921. -->
  922. <!-- particle system template not found
  923. <ParticleSysBone
  924. BoneName="None"
  925. FXParticleSystemTemplate="ABPowerPlantWakeSplash"
  926. FollowBone="true" />
  927. -->
  928. <Material ShaderName="BasicW3DHolographic.fx" TechniqueName="Default">
  929. <Constants>
  930. <Float Name="ColorAmbient">
  931. <Value>0.000000</Value>
  932. <Value>0.000000</Value>
  933. <Value>0.000000</Value>
  934. </Float>
  935. <Float Name="ColorDiffuse">
  936. <Value>0.000000</Value>
  937. <Value>0.000000</Value>
  938. <Value>0.000000</Value>
  939. </Float>
  940. <Float Name="ColorSpecular">
  941. <Value>0.000000</Value>
  942. <Value>0.000000</Value>
  943. <Value>0.000000</Value>
  944. </Float>
  945. <Float Name="Shininess">
  946. <Value>1.000000</Value>
  947. </Float>
  948. <Float Name="ColorEmissive">
  949. <Value>1.000000</Value>
  950. <Value>1.000000</Value>
  951. <Value>1.000000</Value>
  952. </Float>
  953. <Texture Name="Texture_0">
  954. <Value>FXJapanBuildMask</Value>
  955. </Texture>
  956. <Bool Name="DepthWriteEnable">
  957. <Value>true</Value>
  958. </Bool>
  959. <Bool Name="AlphaTestEnable">
  960. <Value>true</Value>
  961. </Bool>
  962. <Bool Name="CullingEnable">
  963. <Value>true</Value>
  964. </Bool>
  965. <Int Name="BlendMode">
  966. <Value>1</Value>
  967. </Int>
  968. </Constants>
  969. </Material>
  970. </ModelConditionState>
  971. <AnimationState
  972. ParseCondStateType="PARSE_DEFAULT">
  973. <Script>
  974. CurDrawableShowSubObjectPermanently("Bib")
  975. CurDrawableHideSubObjectPermanently("Platform")
  976. CurDrawableHideSubObjectPermanently("Platform_FX")
  977. </Script>
  978. </AnimationState>
  979. <AnimationState
  980. ParseCondStateType="PARSE_NORMAL"
  981. ConditionsYes="OVER_WATER STRUCTURE_UNPACKING ">
  982. <Animation
  983. AnimationName="JBRefinery_Platform_BLD"
  984. AnimationMode="MATCH_UNPACKING"
  985. AnimationBlendTime="0" />
  986. <Script>
  987. CurDrawableHideSubObjectPermanently("Table")
  988. CurDrawableShowSubObjectPermanently("Table_Water")
  989. CurDrawableHideSubObjectPermanently("Bib")
  990. CurDrawableShowSubObjectPermanently("Platform")
  991. CurDrawableShowSubObjectPermanently("Platform_FX")
  992. </Script>
  993. <ParticleSysBone
  994. BoneName="None"
  995. FXParticleSystemTemplate="AlliedPowerPlantWaterBuildupFroth"
  996. FollowBone="true" />
  997. <ParticleSysBone
  998. BoneName="None"
  999. FXParticleSystemTemplate="AlliedPowerPlantWaterBuildupMist"
  1000. FollowBone="true" />
  1001. <ParticleSysBone
  1002. BoneName="None"
  1003. FXParticleSystemTemplate="AlliedPowerPlantBuildupFlashes"
  1004. FollowBone="true" />
  1005. <ParticleSysBone
  1006. BoneName="None"
  1007. FXParticleSystemTemplate="AlliedPowerPlantBuildupSparksSeed"
  1008. FollowBone="true" />
  1009. </AnimationState>
  1010. <AnimationState
  1011. ParseCondStateType="PARSE_NORMAL"
  1012. ConditionsYes="OVER_WATER SOLD"
  1013. Flags="START_FRAME_LAST">
  1014. <Animation
  1015. AnimationName="JBRefinery_Platform_BLD"
  1016. AnimationMode="ONCE_BACKWARDS"
  1017. AnimationAbsoluteTime="2s"/>
  1018. <Script>
  1019. CurDrawableHideSubObjectPermanently("Table")
  1020. CurDrawableShowSubObjectPermanently("Table_Water")
  1021. CurDrawableHideSubObjectPermanently("Bib")
  1022. CurDrawableShowSubObjectPermanently("Platform")
  1023. CurDrawableShowSubObjectPermanently("Platform_FX")
  1024. </Script>
  1025. </AnimationState>
  1026. <AnimationState
  1027. ParseCondStateType="PARSE_NORMAL"
  1028. ConditionsYes="STRUCTURE_UNPACKING">
  1029. <Animation
  1030. AnimationName="JBRefinery_Platform_BLD"
  1031. AnimationMode="MATCH_UNPACKING"
  1032. AnimationBlendTime="0" />
  1033. <Script>
  1034. CurDrawableHideSubObjectPermanently("Table_Water")
  1035. CurDrawableShowSubObjectPermanently("Table")
  1036. CurDrawableShowSubObjectPermanently("Bib")
  1037. CurDrawableHideSubObjectPermanently("Platform")
  1038. CurDrawableHideSubObjectPermanently("Platform_FX")
  1039. </Script>
  1040. <ParticleSysBone
  1041. BoneName="None"
  1042. FXParticleSystemTemplate="AlliedPowerPlantBuildupFlashes"
  1043. FollowBone="true" />
  1044. <ParticleSysBone
  1045. BoneName="None"
  1046. FXParticleSystemTemplate="AlliedPowerPlantBuildupSparksSeed"
  1047. FollowBone="true" />
  1048. </AnimationState>
  1049. <AnimationState
  1050. ParseCondStateType="PARSE_NORMAL"
  1051. ConditionsYes="SOLD"
  1052. Flags="START_FRAME_LAST">
  1053. <Animation
  1054. AnimationName="JBRefinery_Platform_BLD"
  1055. AnimationMode="ONCE_BACKWARDS"
  1056. AnimationAbsoluteTime="2s"/>
  1057. <Script>
  1058. CurDrawableHideSubObjectPermanently("Table_Water")
  1059. CurDrawableShowSubObjectPermanently("Table")
  1060. CurDrawableShowSubObjectPermanently("Bib")
  1061. CurDrawableHideSubObjectPermanently("Platform")
  1062. CurDrawableHideSubObjectPermanently("Platform_FX")
  1063. </Script>
  1064. </AnimationState>
  1065. <AnimationState
  1066. ParseCondStateType="PARSE_NORMAL"
  1067. ConditionsYes="OVER_WATER">
  1068. <Script>
  1069. CurDrawableHideSubObjectPermanently("Bib")
  1070. CurDrawableShowSubObjectPermanently("Platform")
  1071. CurDrawableShowSubObjectPermanently("Platform_FX")
  1072. </Script>
  1073. </AnimationState>
  1074. </ScriptedModelDraw>
  1075. <!-- DRAW BUILD UP PLATFORM -->
  1076. <ScriptedModelDraw
  1077. id="ModuleTag_Draw_Platform_Buildup"
  1078. OkToChangeModelColor="true">
  1079. <ModelConditionState
  1080. ParseCondStateType="PARSE_DEFAULT">
  1081. <Model
  1082. Name="" />
  1083. </ModelConditionState>
  1084. <ModelConditionState
  1085. ParseCondStateType="PARSE_NORMAL"
  1086. ConditionsYes="BUILD_PLACEMENT_HINT">
  1087. <Model
  1088. Name="" />
  1089. </ModelConditionState>
  1090. <ModelConditionState
  1091. ParseCondStateType="PARSE_NORMAL"
  1092. ConditionsYes="OVER_WATER STRUCTURE_UNPACKING">
  1093. <Model
  1094. Name="JBRefinery_Platform_SKN" />
  1095. <!-- particle system template not found
  1096. <ParticleSysBone
  1097. BoneName="None"
  1098. FXParticleSystemTemplate="JBRefineryWakeSplash"
  1099. FollowBone="true" />
  1100. -->
  1101. <Material ShaderName="BuildingsJapanBuildup.fx" TechniqueName="Default">
  1102. <Constants>
  1103. <Texture Name="DiffuseTexture">
  1104. <Value>JBPlatform</Value>
  1105. </Texture>
  1106. <Texture Name="NormalMap">
  1107. <Value>JBPlatform_NRM</Value>
  1108. </Texture>
  1109. <Texture Name="SpecMap">
  1110. <Value>JBPlatform_SPM</Value>
  1111. </Texture>
  1112. <Float Name="EnvMult">
  1113. <Value>1.000000</Value>
  1114. </Float>
  1115. <Bool Name="AlphaTestEnable">
  1116. <Value>true</Value>
  1117. </Bool>
  1118. </Constants>
  1119. </Material>
  1120. </ModelConditionState>
  1121. <ModelConditionState
  1122. ParseCondStateType="PARSE_NORMAL"
  1123. ConditionsYes="OVER_WATER SOLD">
  1124. <Model
  1125. Name="JBRefinery_Platform_SKN" />
  1126. <!-- particle system template not found
  1127. <ParticleSysBone
  1128. BoneName="None"
  1129. FXParticleSystemTemplate="JBRefineryWakeSplash"
  1130. FollowBone="true" />
  1131. -->
  1132. <Material ShaderName="BuildingsJapanBuildup.fx" TechniqueName="Default">
  1133. <Constants>
  1134. <Texture Name="DiffuseTexture">
  1135. <Value>JBPlatform</Value>
  1136. </Texture>
  1137. <Texture Name="NormalMap">
  1138. <Value>JBPlatform_NRM</Value>
  1139. </Texture>
  1140. <Texture Name="SpecMap">
  1141. <Value>JBPlatform_SPM</Value>
  1142. </Texture>
  1143. <Float Name="EnvMult">
  1144. <Value>1.000000</Value>
  1145. </Float>
  1146. <Bool Name="AlphaTestEnable">
  1147. <Value>true</Value>
  1148. </Bool>
  1149. </Constants>
  1150. </Material>
  1151. </ModelConditionState>
  1152. <AnimationState
  1153. ParseCondStateType="PARSE_DEFAULT">
  1154. <Script>
  1155. CurDrawableShowSubObjectPermanently("Bib")
  1156. CurDrawableHideSubObjectPermanently("Platform")
  1157. CurDrawableHideSubObjectPermanently("Platform_FX")
  1158. </Script>
  1159. </AnimationState>
  1160. <AnimationState
  1161. ParseCondStateType="PARSE_NORMAL"
  1162. ConditionsYes="STRUCTURE_UNPACKING OVER_WATER">
  1163. <Animation
  1164. AnimationName="JBRefinery_Platform_BLD"
  1165. AnimationMode="MATCH_UNPACKING"
  1166. AnimationBlendTime="0" />
  1167. <Script>
  1168. CurDrawableHideSubObjectPermanently("Bib")
  1169. CurDrawableShowSubObjectPermanently("Platform")
  1170. CurDrawableShowSubObjectPermanently("Platform_FX")
  1171. </Script>
  1172. </AnimationState>
  1173. <AnimationState
  1174. ParseCondStateType="PARSE_NORMAL"
  1175. ConditionsYes="SOLD"
  1176. Flags="START_FRAME_LAST">
  1177. <Animation
  1178. AnimationName="JBRefinery_Platform_BLD"
  1179. AnimationMode="ONCE_BACKWARDS"
  1180. AnimationAbsoluteTime="2s"/>
  1181. <Script>
  1182. CurDrawableHideSubObjectPermanently("Bib")
  1183. CurDrawableShowSubObjectPermanently("Platform")
  1184. CurDrawableShowSubObjectPermanently("Platform_FX")
  1185. </Script>
  1186. </AnimationState>
  1187. </ScriptedModelDraw>
  1188. <!-- DRAW PARTICLES -->
  1189. <ScriptedModelDraw
  1190. id="ModuleTag_Draw_FX"
  1191. OkToChangeModelColor="true">
  1192. <ModelConditionState
  1193. ParseCondStateType="PARSE_DEFAULT">
  1194. <Model
  1195. Name="JBRefinery_FX" />
  1196. <ParticleSysBone
  1197. BoneName="FXBone03"
  1198. FXParticleSystemTemplate="SovietFactorySmoke"
  1199. FollowBone="true" />
  1200. <ParticleSysBone
  1201. BoneName="FXBone04"
  1202. FXParticleSystemTemplate="SovietFactorySmoke"
  1203. FollowBone="true" />
  1204. <ParticleSysBone
  1205. BoneName="FXBone05"
  1206. FXParticleSystemTemplate="SovietFactorySmoke"
  1207. FollowBone="true" />
  1208. </ModelConditionState>
  1209. <ModelConditionState
  1210. ParseCondStateType="PARSE_NORMAL"
  1211. ConditionsYes="STRUCTURE_UNPACKING">
  1212. <Model
  1213. Name="JBRefinery_FX" />
  1214. </ModelConditionState>
  1215. <ModelConditionState
  1216. ParseCondStateType="PARSE_NORMAL"
  1217. ConditionsYes="SOLD">
  1218. <Model
  1219. Name="JBRefinery_FX" />
  1220. </ModelConditionState>
  1221. <ModelConditionState
  1222. ParseCondStateType="PARSE_NORMAL"
  1223. ConditionsYes="DAMAGED">
  1224. <Model
  1225. Name="JBRefinery_FX" />
  1226. <ParticleSysBone
  1227. BoneName="FX_Smoke03"
  1228. FXParticleSystemTemplate="SovietFactorySmoke"
  1229. FollowBone="true" />
  1230. <ParticleSysBone
  1231. BoneName="FX_Smoke04"
  1232. FXParticleSystemTemplate="SovietFactorySmoke"
  1233. FollowBone="true" />
  1234. <ParticleSysBone
  1235. BoneName="FX_Smoke05"
  1236. FXParticleSystemTemplate="SovietFactorySmoke"
  1237. FollowBone="true" />
  1238. <ParticleSysBone
  1239. BoneName="FX_BONE01"
  1240. FXParticleSystemTemplate="JapanVehicleDamagedSmoke"
  1241. FollowBone="true" />
  1242. <ParticleSysBone
  1243. BoneName="FX_BONE01"
  1244. FXParticleSystemTemplate="JapanVehicleDamagedSparks"
  1245. FollowBone="true" />
  1246. <ParticleSysBone
  1247. BoneName="FX_BONE01"
  1248. FXParticleSystemTemplate="JapanVehicleDamagedFire"
  1249. FollowBone="true" />
  1250. </ModelConditionState>
  1251. <ModelConditionState
  1252. ParseCondStateType="PARSE_NORMAL"
  1253. ConditionsYes="REALLYDAMAGED">
  1254. <Model
  1255. Name="JBRefinery_FX" />
  1256. <ParticleSysBone
  1257. BoneName="FX_Smoke03"
  1258. FXParticleSystemTemplate="SovietFactorySmoke"
  1259. FollowBone="true" />
  1260. <ParticleSysBone
  1261. BoneName="FX_Smoke04"
  1262. FXParticleSystemTemplate="SovietFactorySmoke"
  1263. FollowBone="true" />
  1264. <ParticleSysBone
  1265. BoneName="FX_Smoke05"
  1266. FXParticleSystemTemplate="SovietFactorySmoke"
  1267. FollowBone="true" />
  1268. <ParticleSysBone
  1269. BoneName="FX_BONE01"
  1270. FXParticleSystemTemplate="JapanVehicleDamagedSmoke"
  1271. FollowBone="true" />
  1272. <ParticleSysBone
  1273. BoneName="FX_BONE01"
  1274. FXParticleSystemTemplate="JapanVehicleDamagedSparks"
  1275. FollowBone="true" />
  1276. <ParticleSysBone
  1277. BoneName="FX_BONE01"
  1278. FXParticleSystemTemplate="JapanVehicleDamagedFire"
  1279. FollowBone="true" />
  1280. <ParticleSysBone
  1281. BoneName="FX_BONE02"
  1282. FXParticleSystemTemplate="JapanVehicleDamagedSmoke"
  1283. FollowBone="true" />
  1284. <ParticleSysBone
  1285. BoneName="FX_BONE02"
  1286. FXParticleSystemTemplate="JapanVehicleDamagedSparks"
  1287. FollowBone="true" />
  1288. <ParticleSysBone
  1289. BoneName="FX_BONE02"
  1290. FXParticleSystemTemplate="JapanVehicleDamagedFire"
  1291. FollowBone="true" />
  1292. </ModelConditionState>
  1293. </ScriptedModelDraw>
  1294. <!-- draw for Egg unpacking -->
  1295. <ScriptedModelDraw
  1296. id="ModuleTag_DrawEGG"
  1297. OkToChangeModelColor="true"
  1298. StaticModelLODMode="true">
  1299. <ModelConditionState
  1300. ParseCondStateType="PARSE_DEFAULT">
  1301. <Model
  1302. Name="" />
  1303. </ModelConditionState>
  1304. <ModelConditionState
  1305. ParseCondStateType="PARSE_NORMAL"
  1306. ConditionsYes="STRUCTURE_UNPACKING">
  1307. <Model
  1308. Name="JUEgg_Unpack" />
  1309. </ModelConditionState>
  1310. <ModelConditionState
  1311. ParseCondStateType="PARSE_NORMAL"
  1312. ConditionsYes="SOLD">
  1313. <Model
  1314. Name="" />
  1315. </ModelConditionState>
  1316. <AnimationState
  1317. ParseCondStateType="PARSE_DEFAULT">
  1318. </AnimationState>
  1319. <AnimationState
  1320. ParseCondStateType="PARSE_NORMAL"
  1321. ConditionsYes="STRUCTURE_UNPACKING">
  1322. <Animation
  1323. AnimationName="JUEgg_Unpack"
  1324. AnimationMode="ONCE" />
  1325. </AnimationState>
  1326. </ScriptedModelDraw>
  1327. </Draws>
  1328. <Behaviors>
  1329. <QueueDockBehavior
  1330. id="ModuleTag_QueueDockBehavior"
  1331. DockStartBoneName="DockStart"
  1332. DockActionBoneName="DockAction"
  1333. DockEndBoneName="DockEnd"
  1334. QueueBonePrefix="Que"
  1335. DockingAnimation="DOCKING_ACTIVE"
  1336. TurnTableBoneName="BONE_TABLE"/>
  1337. <QueueProductionExitUpdate
  1338. id="ModuleTag_Exit">
  1339. <UnitCreatePoint
  1340. x="37.5" />
  1341. <NaturalRallyPoint
  1342. x="75.0" />
  1343. </QueueProductionExitUpdate>
  1344. <SpawnBehavior
  1345. id="ModuleTag_Spawn"
  1346. SpawnNumberData="1"
  1347. SpawnReplaceDelayData="9999s"
  1348. IsOneShotData="true"
  1349. FadeInTime="1.0s"
  1350. SpawnOnUnpack="true"
  1351. CanReclaimOrphans="false"
  1352. SetPurchasePrice="true">
  1353. <SpawnTemplate>JapanMiner</SpawnTemplate>
  1354. </SpawnBehavior>
  1355. <Physics
  1356. id="ModuleTag_Physics"/>
  1357. <BuildingDestructionBehavior
  1358. id="ModuleTag_BuildingDestruction"
  1359. FillerMesh="NEWSKIN_FILL">
  1360. <DieMuxData
  1361. DeathTypes="ALL" />
  1362. <Item
  1363. BonePrefix="BONE_CONTACT_POINT_"
  1364. FX="JapanStructureHit"
  1365. CreationObject="AlliedBarracks_Debris"
  1366. FlingVelocity="100.0"/>
  1367. </BuildingDestructionBehavior>
  1368. <FXListBehavior
  1369. xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance" id="ModuleTag_FXList">
  1370. <DieMuxData
  1371. DeathTypes="ALL"
  1372. DeathTypesForbidden="SUICIDED" />
  1373. <Event
  1374. Index="onDeath"
  1375. FX="FX_YU_Hotel02_Explode" />
  1376. </FXListBehavior>
  1377. <FXListBehavior xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance" id="ModuleTag_DieSound">
  1378. <DieMuxData DeathTypes="ALL" DeathTypesForbidden="SUICIDED" />
  1379. <Event Index="onDeath" FX="FX_MediumBuildingDieExplosion" />
  1380. </FXListBehavior>
  1381. <CreateObjectDie
  1382. id="ModuleTag_CreateObjectDie"
  1383. CreationList="JBRefinery_Die_OCL">
  1384. <DieMuxData
  1385. DeathTypes="ALL"
  1386. DeathTypesForbidden="SUICIDED"
  1387. ExemptStatus="OVER_WATER" />
  1388. </CreateObjectDie>
  1389. <CreateObjectDie
  1390. id="ModuleTag_Platform_CreateObjectDie"
  1391. CreationList="JBRefinery_Platform_Die_OCL">
  1392. <DieMuxData
  1393. DeathTypes="ALL"
  1394. DeathTypesForbidden="SUICIDED"
  1395. RequiredStatus="OVER_WATER" />
  1396. </CreateObjectDie>
  1397. <DestroyDie
  1398. id="ModuleTag_Die">
  1399. <DieMuxData
  1400. DeathTypes="ALL"
  1401. DeathTypesForbidden="SUICIDED" />
  1402. </DestroyDie>
  1403. <ProductionUpdate
  1404. id="ModuleTag_ProductionUpdate"
  1405. GiveNoXP="true"
  1406. Type="VEHICLE"
  1407. NumDoorAnimations="1"
  1408. DoorOpeningTime="0.66s"
  1409. DoorWaitOpenTime="3.00s"
  1410. DoorCloseTime="0.66s"
  1411. NewObjectFadeInTime="0.5s"/>
  1412. <StructureUnpackUpdate
  1413. id="ModuleTag_StructureUnpackUpdate"
  1414. UnpackTime="20s"
  1415. UnpackCompleteSound="JAP_OreCollector_VoiceCreateFromRefinery" />
  1416. <xi:include
  1417. href="DATA:Includes/GenericBuildingRepair.xml" />
  1418. <xi:include
  1419. href="DATA:Includes/GenericEngineerContain.xml" />
  1420. <xi:include
  1421. href="DATA:Includes/GenericJapanBuildingDestruction.xml" />
  1422. <xi:include
  1423. href="DATA:Includes/GenericJapanBuildingSuicide.xml" />
  1424. <xi:include
  1425. href="DATA:Includes/GenericRefineryPlacementHint.xml" />
  1426. <xi:include
  1427. href="DATA:Includes/InfiltratorContainEconomic.xml" />
  1428. <xi:include
  1429. href="DATA:Includes/GenericRefineryStructurePlacementBehavior.xml" />
  1430. <LUAEventList
  1431. id="ModuleTag_LUAEventList"
  1432. EventListName="BuildingPowerFunctions"
  1433. />
  1434. </Behaviors>
  1435. <AI>
  1436. <AIUpdate
  1437. id="ModuleTag_AIUpdate"
  1438. AutoAcquireEnemiesWhenIdle="NO"
  1439. StateMachine="StructureAIStateMachine">
  1440. </AIUpdate>
  1441. </AI>
  1442. <Body>
  1443. <ActiveBody
  1444. id="ModuleTag_Body"
  1445. MaxHealth="2000.0" />
  1446. </Body>
  1447. <ClientBehaviors>
  1448. <AnimationSoundClientBehavior id="ModuleTag_AnimationSound">
  1449. <Sound Sound="JAP_Refinery_LoadGrab" Animation="JBRefinery_ARM_UNLOAD" Frame="1" />
  1450. <Sound Sound="JAP_Refinery_CraneMoveCCW" Animation="JBRefinery_ARM_UNLOAD" Frame="5" />
  1451. <Sound Sound="JAP_Refinery_LoadDrop" Animation="JBRefinery_ARM_UNLOAD" Frame="59" />
  1452. <Sound Sound="JAP_Refinery_CraneMoveCW" Animation="JBRefinery_ARM_EMPTY" Frame="5" />
  1453. </AnimationSoundClientBehavior>
  1454. <ModelConditionAudioLoopClientBehavior id="ModuleTag_Platform_Turn">
  1455. <ModelConditionSound Sound="ALL_Refinery_Platform_Rotate" RequiredFlags="DOCKING_ACTIVE" ExcludedFlags="DYING" />
  1456. </ModelConditionAudioLoopClientBehavior>
  1457. </ClientBehaviors>
  1458. <Geometry
  1459. IsSmall="false">
  1460. <Shape
  1461. Type= "BOX"
  1462. MajorRadius = "60.0"
  1463. MinorRadius = "45.0"
  1464. Height = "5.0"
  1465. ContactPointGeneration = "STRUCTURE" >
  1466. <Offset
  1467. x = "0.0"
  1468. y = "0.0"
  1469. z = "0.0" />
  1470. </Shape>
  1471. <Shape
  1472. Type= "BOX"
  1473. MajorRadius = "6.0"
  1474. MinorRadius = "45.0"
  1475. Height = "53.0"
  1476. ContactPointGeneration = "STRUCTURE" >
  1477. <Offset
  1478. x = "8.12596"
  1479. y = "0.0"
  1480. z = "0.0" />
  1481. </Shape>
  1482. <Shape
  1483. Type= "BOX"
  1484. MajorRadius = "6.0"
  1485. MinorRadius = "5.4"
  1486. Height = "53.0"
  1487. ContactPointGeneration = "STRUCTURE" >
  1488. <Offset
  1489. x = "-19.7303"
  1490. y = "33.7926"
  1491. z = "0.0" />
  1492. </Shape>
  1493. <Shape
  1494. Type= "BOX"
  1495. MajorRadius = "6.0"
  1496. MinorRadius = "5.4"
  1497. Height = "53.0"
  1498. ContactPointGeneration = "STRUCTURE" >
  1499. <Offset
  1500. x = "-19.7303"
  1501. y = "-33.6328"
  1502. z = "0.0" />
  1503. </Shape>
  1504. <Shape
  1505. Type= "BOX"
  1506. MajorRadius = "6.0"
  1507. MinorRadius = "5.4"
  1508. Height = "53.0"
  1509. ContactPointGeneration = "STRUCTURE" >
  1510. <Offset
  1511. x = "-48.7845"
  1512. y = "-0.00339508"
  1513. z = "0.0" />
  1514. </Shape>
  1515. <Shape
  1516. Type= "BOX"
  1517. MajorRadius = "26.16"
  1518. MinorRadius = "45.0"
  1519. Height = "15.45"
  1520. ContactPointGeneration = "STRUCTURE" >
  1521. <Offset
  1522. x = "-33.3016"
  1523. y = "0.0"
  1524. z = "0.0" />
  1525. </Shape>
  1526. </Geometry>
  1527. <ClientBehaviors>
  1528. <ModelConditionAudioLoopClientBehavior xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance" id="ModuleTag_StructureConstructionAudio">
  1529. <ModelConditionSound
  1530. Sound="JAP_Nanocore_DeployStructureLand"
  1531. RequiredFlags="STRUCTURE_UNPACKING"
  1532. ExcludedFlags="OVER_WATER"/>
  1533. <ModelConditionSound
  1534. Sound="JAP_Nanocore_DeployStructureWaterMS"
  1535. RequiredFlags="STRUCTURE_UNPACKING OVER_WATER"/>
  1536. </ModelConditionAudioLoopClientBehavior>
  1537. </ClientBehaviors>
  1538. <AudioArrayVoice>
  1539. <AudioEntry
  1540. Sound="AudioEvent:JAP_Refinery_Select"
  1541. AudioType="voiceSelect" />
  1542. </AudioArrayVoice>
  1543. <AudioArraySound>
  1544. <AudioEntry Sound="JAP_Nanocore_DeployLoop" AudioType="soundUnderConstruction" />
  1545. <!--
  1546. <AudioEntry Sound="HumanFaction_MediumBuilding_LightDamageMS" AudioType="soundOnDamaged" />
  1547. <AudioEntry Sound="HumanFaction_MediumBuilding_HeavyDamageMS" AudioType="soundOnReallyDamaged" />
  1548. -->
  1549. </AudioArraySound>
  1550. <VisionInfo
  1551. VisionRange="150"
  1552. ShroudClearingRange="500" />
  1553. <ProjectedBuildabilityInfo
  1554. Radius="180.0"
  1555. RadiusY="75.0"
  1556. BuildPlacementTypes="OTHER_STRUCTURE" />
  1557. </GameObject>
  1558. </AssetDeclaration>