SirenHeadTheSirensForest.asl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. state("Sirean Head")
  2. {
  3. byte loading1 :"UnityPlayer.dll", 0x135FE9B;
  4. }
  5. startup
  6. {
  7. settings.Add("missions", true, "All Levels");
  8. settings.SetToolTip("missions", "IDK why I added this customization lol");
  9. vars.missions = new Dictionary<string,string>
  10. {
  11. {"2","Level 2"},
  12. {"3","Level 3"},
  13. {"4","Level 4"},
  14. };
  15. foreach (var Tag in vars.missions)
  16. {
  17. settings.Add(Tag.Key, true, Tag.Value, "missions");
  18. };
  19. }
  20. init
  21. {
  22. vars.counter = 1;
  23. vars.oldcounter = 1;
  24. vars.value = 0;
  25. }
  26. update
  27. {
  28. if (current.loading1 == 5)
  29. {
  30. vars.value = current.loading1;
  31. }
  32. if ((current.loading1 != old.loading1) && (current.loading1 != 5) && (vars.value != current.loading1))
  33. {
  34. vars.value = current.loading1;
  35. vars.counter++;
  36. }
  37. }
  38. start
  39. {
  40. if ((current.loading1 == 5) && (old.loading1 != 5))
  41. {
  42. vars.counter = 1;
  43. vars.oldcounter = 1;
  44. return true;
  45. }
  46. }
  47. split
  48. {
  49. if ((vars.counter != vars.oldcounter) && (settings[(vars.counter.ToString())]))
  50. {
  51. vars.oldcounter++;
  52. return true;
  53. }
  54. }
  55. isLoading
  56. {
  57. return (current.loading1 != 5);
  58. }