Advertisement
tjd802

Van Dorn in March

Nov 27th, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. MOD_NAME=Van Doorn in March
  2. AUTHOR=hawkeye2777
  3. DESCRIPTION=Sets Van Doorn's mission as the [first] council mission in March. Tested with LW beta 15b, but may work on b14i as well.
  4.  
  5. UPK_FILE=XComStrategyGame.upk
  6. OBJECT=XGFundingCouncil.DetermineNewFCMission:AUTO
  7.  
  8. // March (first year) = 0, April = 1, and so on...
  9. ALIAS=Month:<%b 0>
  10.  
  11. ALIAS=AIGetMonth:19 1B <AI> 16 [@] <XGStrategyAI.GetMonth.ReturnValue> 00 ( 1B <GetMonth> 16 )
  12. [REPLACEMENT_CODE] // mostly generated by HexToPseudoCode
  13. 0B
  14. 07 [@label_0x0064] 9A 38 3A 00 <.eMission> 38 3A 24 1E 16
  15. 0F 00 <.eMCountry> 38 3D 19 1B <Continent> 19 1B <HQ> 16 [@] <XGHeadQuarters.GetContinent.ReturnValue> 00 ( 1B <GetContinent> 16 ) 16 [@] <XGContinent.GetRandomCouncilCountry.ReturnValue> 00 ( 1B <GetRandomCouncilCountry> 16 )
  16. 06 [@label_0x0078]
  17. [#label_0x0064]
  18. 0F 00 <.eMCountry> 1B <DetermineFCMissionCountry> 16
  19. [#label_0x0078]
  20. 07 [@label_0x017C] 9A 38 3A 00 <.eMission> 38 3A 24 00 16
  21. 07 [@label_0x00FA] 1B <IsProgenyActive> 16
  22. 07 [@label_0x00FA] 84 82 9A 38 3A 01 <@m_eNextProgenyMission> 38 3A 24 19 16 18 [@] ( 97 19 1B <AI> 16 [@] <XGStrategyAI.GetMonth.ReturnValue> 00 ( 1B <GetMonth> 16 ) 25 16 16 ) 18 [@] ( 77 1B <PSILABS> 16 2A 16 16 )
  23. 0F 00 <.eMission> 01 <@m_eNextProgenyMission>
  24. [#label_0x00FA]
  25. 07 [@label_0x0138] 9A 38 3A 00 <.eMission> 38 3A 24 00 16
  26. 07 [@label_0x0138] 82 1B <IsChryssalidHiveValid> 16 18 [@] ( 81 1B <HasPlayedChryssalidHive> 16 16 16 )
  27. 0F 00 <.eMission> 24 1D
  28. [#label_0x0138]
  29.  
  30. // if (eMission == 0)
  31. 07 [@notMarch] 9A 38 3A 00 <.eMission> 38 3A 24 00 16
  32. // if (AI().GetMonth() == 0)
  33. 07 [@notMarch] 9A <!AIGetMonth> 38 3A 24 <!Month> 16
  34. // eMission = 14
  35. 0F 00 <.eMission> 24 0E
  36. [#notMarch]
  37.  
  38. 07 [@label_0x017C] 9A 38 3A 00 <.eMission> 38 3A 24 00 16
  39. 0F 00 <.eMission> 1B <ChooseNextMissionByType> 1B <GetRegionByCountry> 00 <.eMCountry> 16 00 <.eMCountry> 16
  40. [#label_0x017C]
  41. 0F 00 <.kMission> 1B <BuildMission> 00 <.eMission> 00 <.eMCountry> 16
  42. 1B <OnValidMissionAdded> 00 <.kMission> 16
  43. 55 01 <@m_arrPreviousMissions> [@] ( 35 <XGFundingCouncil.TFCMission.eMission> <@TFCMission> 00 00 00 <.kMission> 16 )
  44. 1B <CreateMission> 00 <.kMission> 16
  45. 07 [@label_0x0263] 81 1B <ISCONTROLLED> 16 16
  46. 19 1B <GEOSCAPE> 16 [@] <NullRef> 00 ( 1B <Alert> 19 1B <GEOSCAPE> 16 [@] <XGGeoscape.MakeAlert.ReturnValue> 00 ( 1B <MakeAlert> 24 2B 38 3A 35 <XGFundingCouncil.TFCMission.ECountry> <@TFCMission> 00 00 00 <.kMission> 4A 4A 4A 16 ) 16 )
  47. [#label_0x0263]
  48. 14 19 1B <SITROOM> 16 [@] <XGFacility.m_bRequiresAttention> 00 ( 2D 01 <XGFacility.m_bRequiresAttention> ) 27
  49. 19 1B <SITROOM> 16 [@] <NullRef> 00 ( 1B <SetDisabled> 28 16 )
  50. 04 27
  51. 04 3A <.ReturnValue>
  52. 53
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement