CallOfDutyWW2Zombies.asl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. state("s2_mp64_ship", "Current Steam Version") // Base Address : 0x7FF6EBF60000
  2. {
  3. int CurrentRound : 0xA768DFC;
  4. byte Paused : 0x275075C;
  5. }
  6. /*
  7. 7FF6FC200420
  8. 7FF6FC2811DC
  9. 7FF6EE6B011D
  10. 7FF6EE6B075D
  11. 7FF6EE77F400
  12. 7FF6EE77F470
  13. 7FF6EE77F460
  14. 7FF6F92681AD
  15. 7FF6F94A3891
  16. 7FF6F94AC7D0
  17. 7FF6FC2811E0
  18. 7FF6F926808D
  19. 7FF6F94A3A79
  20. 7FF6F4D38DD3
  21. 7FF6EE77F410
  22. 7FF6EE6B08ED
  23. 7FF6FC20041C
  24. 7FF6EE6B075C
  25. 7FF6EE5B349A
  26. */
  27. init
  28. {
  29. vars.doneMaps = new List<string>();
  30. vars.CurRoundToString = "";
  31. vars.DoSplit = 0;
  32. switch (modules.First().ModuleMemorySize)
  33. {
  34. case 317335552: version = "Current Steam Version";
  35. break;
  36. }
  37. }
  38. startup
  39. {
  40. settings.Add("RS", true, "Split Every Round?");
  41. settings.Add("SS", true, "Call of Duty WW2 Zombies");
  42. vars.missions = new Dictionary<string,string>
  43. {
  44. {"5", "5"},
  45. {"10", "10"},
  46. {"15", "15"},
  47. {"20", "20"},
  48. {"25", "25"},
  49. {"30", "30"},
  50. {"35", "35"},
  51. {"40", "40"},
  52. {"45", "45"},
  53. {"50", "50"},
  54. {"55", "55"},
  55. {"60", "60"},
  56. {"65", "65"},
  57. {"70", "70"},
  58. {"75", "75"},
  59. {"80", "80"},
  60. {"85", "85"},
  61. {"90", "90"},
  62. {"95", "95"},
  63. {"100", "100"},
  64. };
  65. foreach (var Tag in vars.missions)
  66. {
  67. settings.Add(Tag.Key, true, Tag.Value, "SS");
  68. };
  69. }
  70. update
  71. {
  72. vars.CurRoundToString = current.CurrentRound.ToString();
  73. if (settings["RS"])
  74. {
  75. if ((current.CurrentRound != old.CurrentRound) && (!vars.doneMaps.Contains(vars.CurRoundToString)))
  76. {
  77. vars.doneMaps.Add(vars.CurRoundToString);
  78. vars.DoSplit = 1;
  79. }
  80. }
  81. else
  82. {
  83. if (settings[vars.CurRoundToString] && (!vars.doneMaps.Contains(vars.CurRoundToString)))
  84. {
  85. vars.doneMaps.Add(vars.CurRoundToString);
  86. vars.DoSplit = 1;
  87. }
  88. }
  89. }
  90. start
  91. {
  92. return ((current.CurrentRound == 1) && (old.CurrentRound == 0));
  93. }
  94. onStart
  95. {
  96. vars.doneMaps.Add(vars.CurRoundToString);
  97. }
  98. split
  99. {
  100. if (vars.DoSplit == 1)
  101. {
  102. vars.DoSplit = 0;
  103. return true;
  104. }
  105. }
  106. isLoading
  107. {
  108. return (current.Paused == 1);
  109. }
  110. onReset
  111. {
  112. vars.doneMaps.Clear();
  113. }