CliveBarkersJericho.asl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. state("jericho")
  2. {
  3. string50 CurrentLevel : 0x3C4E78;
  4. int loading1 : 0x3C1AFC;
  5. }
  6. init
  7. {
  8. vars.ReplacedString = "";
  9. vars.doneMaps = new List<string>();
  10. }
  11. startup
  12. {
  13. settings.Add("Je",true,"Jericho");
  14. settings.Add("l1",true,"Al-Khali", "Je");
  15. settings.Add("l2",true,"World War 2", "Je");
  16. settings.Add("l3",true,"The Crusades", "Je");
  17. settings.Add("l4",true,"Roman Provinces", "Je");
  18. settings.Add("l5",true,"Sumeria", "Je");
  19. var tB = (Func<string, string, string, Tuple<string, string, string>>) ((elmt1, elmt2, elmt3) => { return Tuple.Create(elmt1, elmt2, elmt3); });
  20. var sB = new List<Tuple<string, string, string>>
  21. {
  22. tB("l1", "alk_desert.dds", "The Storm"),
  23. tB("l1", "alk_tomb.dds", "The Tomb"),
  24. tB("l1", "alk_bunker_00.dds", "Operation Vigil"),
  25. tB("l1", "alk_city.dds", "Al Khali"),
  26. tB("l1", "alk_bunker_01.dds", "Green"),
  27. tB("l1", "alk_final.dds", "Man Down!"),
  28. tB("l2", "wwii_biggates.dds", "Still with you"),
  29. tB("l2", "wwii_pillboxes.dds", "The Path of Souls"),
  30. tB("l2", "wwii_mosque.dds", "Blackwatch"),
  31. tB("l2", "wwii_mosque_inside.dds", "Ambush"),
  32. tB("l2", "wwii_vigil.dds", "The Flames of Anger"),
  33. tB("l2", "wwii_vigil_inside.dds", "Exorcism"),
  34. tB("l2", "wwii_bradenburg.dds", "Bradenburg Gate"),
  35. tB("l3", "cru_river.dds", "Rivers of Blood"),
  36. tB("l3", "cru_labyrinh.dds", "Motley Crew"),
  37. tB("l3", "cru_sewers.dds", "Sewers"),
  38. tB("l3", "cru_keep.dds", "Out of the Frying Pan..."),
  39. tB("l3", "cru_catacomb.dds", "Tortured Souls"),
  40. tB("l3", "cru_chapel.dds", "Black Rose"),
  41. tB("l4", "rom_outskirts.dds", "Imperium"),
  42. tB("l4", "rom_caldrium.dds", "The Low road"),
  43. tB("l4", "rom_tepidarium.dds", "Decadence"),
  44. tB("l4", "rom_palace_01.dds", "Temple of Pain"),
  45. tB("l4", "rom_palace_02.dds", "Gardens of Hell"),
  46. tB("l4", "rom_coloseum.dds", "Morituri te Salutant"),
  47. tB("l4", "rom_chamber.dds", "Guts"),
  48. tB("l5", "sum_ziggurat_01.dds", "The GodSeal"),
  49. tB("l5", "sum_ziggurat_02.dds", "spiritual Guide"),
  50. tB("l5", "sum_ziggurat_03.dds", "Skin"),
  51. tB("l5", "sum_ziggurat_04.dds", "Flesh"),
  52. tB("l5", "sum_ziggurat_meat.dds", "Blood"),
  53. tB("l5", "sum_ziggurat_05.dds", "Sacrifice"),
  54. tB("l5", "sum_end.dds", "Pyxis Prima"),
  55. };
  56. foreach (var s in sB) settings.Add(s.Item2, true, s.Item3, s.Item1);
  57. }
  58. update
  59. {
  60. vars.ReplacedString = current.CurrentLevel.Replace(@"2D/Loading/Levels/", "").ToLowerInvariant();
  61. //vars.ReplacedString.ToLowerInvariant();
  62. print(vars.ReplacedString.ToString());
  63. //print(current.loading1.ToString());
  64. }
  65. start
  66. {
  67. return ((settings[vars.ReplacedString]) && (current.loading1 == 0));
  68. }
  69. onStart
  70. {
  71. vars.doneMaps.Add(vars.ReplacedString);
  72. }
  73. split
  74. {
  75. return ((!vars.doneMaps.Contains(vars.ReplacedString)) && (current.CurrentLevel != old.CurrentLevel)) && (settings[vars.ReplacedString]);
  76. }
  77. onSplit
  78. {
  79. vars.doneMaps.Add(vars.ReplacedString);
  80. }
  81. isLoading
  82. {
  83. return (current.loading1 == 0);
  84. }
  85. reset
  86. {
  87. return (vars.ReplacedString == "Default.dds");
  88. }
  89. onReset
  90. {
  91. vars.doneMaps.Clear();
  92. }