CODWW2.asl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. state("s2_sp64_ship")
  2. {
  3. string15 CurrentLevelName : 0x6A122B4;
  4. int Loader : 0x2AB9B44;
  5. }
  6. startup
  7. {
  8. settings.Add("missions", true, "Missions");
  9. vars.missions = new Dictionary<string,string>
  10. {
  11. {"cobra", "Operation Cobra"},
  12. {"marigny", "Stronghold"},
  13. {"train", "S.O.E."},
  14. {"paris", "Liberation"},
  15. {"aachen", "Collateral Damage"},
  16. {"hurtgen", "Death Factory"},
  17. {"hill", "Hill 493"},
  18. {"bulge", "Battle of The Bulge"},
  19. {"taken", "Ambush"},
  20. {"taken_tent", "The Rhine"},
  21. {"labor_camp", "Epilogue"},
  22. };
  23. foreach (var Tag in vars.missions)
  24. {
  25. settings.Add(Tag.Key, true, Tag.Value, "missions");
  26. };
  27. if (timer.CurrentTimingMethod == TimingMethod.RealTime) // stolen from dude simulator 3, basically asks the runner to set their livesplit to game time
  28. {
  29. var timingMessage = MessageBox.Show (
  30. "This game uses Time without Loads (Game Time) as the main timing method.\n"+
  31. "LiveSplit is currently set to show Real Time (RTA).\n"+
  32. "Would you like to set the timing method to Game Time? This will make verification easier",
  33. "LiveSplit | Call of Duty: WW2",
  34. MessageBoxButtons.YesNo,MessageBoxIcon.Question
  35. );
  36. if (timingMessage == DialogResult.Yes)
  37. {
  38. timer.CurrentTimingMethod = TimingMethod.GameTime;
  39. }
  40. }
  41. }
  42. init
  43. {
  44. vars.doneMaps = new List<string>(); // Because you get kicked to the main menu after each level gotta use a doneMaps just in case
  45. }
  46. start
  47. {
  48. return ((current.CurrentLevelName == "normandy") && (current.CurrentLevelName != "transport_ship"));
  49. }
  50. onStart
  51. {
  52. vars.doneMaps.Clear();
  53. }
  54. split
  55. {
  56. if ((current.CurrentLevelName != old.CurrentLevelName) && (settings[current.CurrentLevelName]) && (!vars.doneMaps.Contains(current.CurrentLevelName)))
  57. {
  58. vars.doneMaps.Add(old.CurrentLevelName);
  59. return true;
  60. }
  61. }
  62. isLoading
  63. {
  64. return (current.Loader == 0);
  65. }