Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
236
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. state("GettingUp", "jazz")
  2. {
  3. int Loading : "GettingUp.exe", 0x6874EC;
  4. string30 LevelFirst : "GettingUp.exe", 0x263E28;
  5. string30 LevelSecond : "GettingUp.exe", 0x263E37;
  6. string15 Cutscene : "GettingUp.exe", 0x26B543;
  7. }
  8.  
  9. state("GettingUp", "robotic")
  10. {
  11. int Loading : "GettingUp.exe", 0x6874EC;
  12. string30 LevelFirst : "GettingUp.exe", 0x263E40;
  13. string30 LevelSecond : "GettingUp.exe", 0x263E4F;
  14. string15 Cutscene : "GettingUp.exe", 0x26B55B;
  15. }
  16.  
  17. init
  18. {
  19. if (modules.First().ModuleMemorySize == 0x79A726)
  20. version = "jazz";
  21. else if (modules.First().ModuleMemorySize == 0x79B000)
  22. version = "robotic";
  23. }
  24.  
  25. start
  26. {
  27. //return (old.Level == "M00_CIV_Intro_1" && current.Level == "M01_HOO_Tranes_Hood_1" && current.Loading != 0);
  28. return (current.LevelFirst.Equals("M01_HOO_Tranes_Hood_1") && current.Loading != 0 && old.Loading == 0 || current.LevelSecond.Equals("M01_HOO_Tranes_Hood_1") && current.Loading != 0 && old.Loading == 00);
  29. }
  30.  
  31. split
  32. {
  33. Func<string,string,bool> eq = (a,b) => a.Equals(b, StringComparison.OrdinalIgnoreCase);
  34.  
  35. string menu = "m_rhapsody_shell";
  36.  
  37. var skips = new string[]
  38. {
  39. "M05_HOO_Battle_3", // Amusement Pier
  40. "m06_ind_bulletproof_1", // New Radius Freeway
  41. "m10_civ_bridge_2" // Bridge Docking Station
  42. };
  43.  
  44. var levels = new string[]
  45. {
  46. "M01_HOO_Tranes_Hood_1", // Grandma Celia's
  47. "M01_HOO_Tranes_Hood_1a", // Trane's Hood
  48. "M01_HOO_Tranes_Hood_2", // The Pool Yard
  49. "M01_HOO_Tranes_Hood_3", // Storefront Row
  50. "M01_HOO_Tranes_Hood_4", // Abandoned Art School
  51. "M02_HOO_Subway_1a", // The Subway Tunnels
  52. "M02_HOO_Subway_1b", // The LayUp
  53. "m02_hoo_subway_2", // Subway Ride
  54. "m02_hoo_subway_3", // Dip's Hideout
  55. "m03_hoo_whos_got_beef_1", // Gabe's Hood
  56. "m03_hoo_whos_got_beef_2", // Meat Packing Plant
  57. "m03_hoo_whos_got_beef_3", // VaNR Chill Space
  58. "m03_hoo_whos_got_beef_4", // Gabe's Hideout
  59. "M04_HOO_Subway_layup_1a", // Yard Entrance
  60. "M04_HOO_Subway_layup_1b", // Interior Ghost Yard
  61. "M04_HOO_Subway_layup_2", // Lights Out
  62. "M05_HOO_Battle_1", // New Radius Tunnel
  63. "m06_ind_bulletproof_2", // Tramnet Safecars Tower
  64. "M06_IND_Bulletproof_3", // Going For A Tram Ride
  65. "M07_HOO_Blind_Justice_1", // Exterior CCK HQ
  66. "M07_HOO_Blind_Justice_2", // Interior CCK HQ
  67. "M07_HOO_Blind_Justice_3", // Hunt's Helipad
  68. "m08_hoo_remember_alamo_1", // SFC Hideout
  69. "m08_hoo_remember_alamo_2", // School Rooftop
  70. "M09_CIV_Cat_and_Mouse_1a", // Port Authority
  71. "M09_CIV_Cat_and_Mouse_1b", // Lumen Square Station
  72. "m09_civ_cat_and_mouse_2", // Subway Platform
  73. "m10_civ_bridge_1", // New Radius Bridge
  74. "M11_CIV_Blimp_1" // NNR News Blimp
  75. };
  76.  
  77. if(levels.Any((level) => eq(old.LevelFirst,level) && eq(current.LevelSecond, ":" + level) || eq(old.LevelSecond,level) && eq(current.LevelSecond, ":" + level)))
  78. return true;
  79.  
  80. else if(skips.Any((skip) => eq(old.LevelFirst,skip) && eq(current.LevelFirst,menu) || eq(old.LevelSecond,skip) && eq(current.LevelSecond,menu)))
  81. return true;
  82.  
  83. else return false;
  84.  
  85. // NOT SURE IF IT WORKS
  86. //if (old.LevelSecond.Equals("M11_CIV_Blimp_2", StringComparison.OrdinalIgnoreCase) && current.LevelSecond.Equals(":M11_CIV_Blimp_2", StringComparison.OrdinalIgnoreCase) || old.LevelFirst.Equals("M01_HOO_Tranes_Hood_1", StringComparison.OrdinalIgnoreCase) && current.LevelSecond.Equals(":M01_HOO_Tranes_Hood_1", StringComparison.OrdinalIgnoreCase))
  87. // return true;
  88.  
  89. // Final split
  90. if (current.Cutscene.Contains("M11_010") && current.Cutscene != old.Cutscene)
  91. return true;
  92. }
  93.  
  94. isLoading
  95. {
  96. return (current.Loading == 0);
  97. }
  98.  
  99. exit
  100. {
  101. timer.IsGameTimePaused = false;
  102. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement