Advertisement
Guest User

RER2-custom.asl

a guest
Jul 9th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | Source Code | 0 0
  1. // Resident Evil Revelations 2 Autosplitter Version 1.0.6 08/11/2021
  2. // Supports LRT
  3. // Supports all difficulties & campaigns
  4. // Script & Pointers by TheDementedSalad
  5. // Thanks to Mysterion06 for helping whenever I had questions and needed help!
  6. // Fixed by jnz/nonsense
  7.  
  8. state("rerev2")
  9. {
  10. uint p1hp : 0x1167EAC, 0x20, 0x1A08;
  11. uint p2hp : 0x1167EAC, 0x24, 0x1A08;
  12. float p1stam : 0x117EE60, 0x84, 0x8, 0x1604, 0x8;
  13. float p2stam : 0x117EE60, 0x88, 0x8, 0x1604, 0x8;
  14. float p1breath : 0x117EE60, 0x84, 0x8, 0x1604, 0xBC;
  15. float p2breath : 0x117EE60, 0x88, 0x8, 0x1604, 0xBC;
  16. byte inLoading : 0x1102BB4;
  17. float IGT : 0x117D120, 0x1403F4;
  18. byte inGame : 0x1152A10, 0x380;
  19. byte inGame2 : 0x11E388C, 0x214, 0x1C, 0x9F5;
  20. byte inMenu : 0x117AE00, 0x34;
  21. byte Cutscene : 0x117AE00, 0xAD2E4;
  22. byte areaNo: 0x117D120, 0x140380;
  23. byte inGameCS: 0x1162E10, 0x54C;
  24. byte gameState: 0x117E4C8, 0x168, 0x3C, 0x8;
  25. float Nani: 0x11DF8DC, 0x5C718;
  26. byte chapEnd: 0x11DF8DC, 0x5C86C;
  27. }
  28.  
  29. startup
  30. {
  31. settings.Add("Full", false, "Full Game & DLC");
  32. settings.Add("Claire", false, "Claire Only");
  33. settings.Add("Barry", false, "Barry Only");
  34.  
  35. }
  36.  
  37. start
  38. {
  39. if(current.inGameCS == 0 && old.inGameCS == 1 || current.areaNo == 201 && current.inLoading == 1 && current.inGame == 1 && current.inMenu != 0){
  40. return true;
  41. }
  42. }
  43.  
  44. update
  45. {
  46. vars.p1StamInt = (int)Math.Floor(current.p1stam);
  47. vars.p2StamInt = (int)Math.Floor(current.p2stam);
  48. vars.p1BreathInt = (int)Math.Floor(current.p1breath);
  49. vars.p2BreathInt = (int)Math.Floor(current.p2breath);
  50. }
  51.  
  52. split
  53. {
  54. if(settings["Full"] || settings["Claire"] || settings["Barry"]){
  55. if (current.chapEnd == 8 && old.chapEnd != 8 && current.IGT == old.IGT){
  56. return true;
  57. }
  58. }
  59. }
  60.  
  61. isLoading
  62. {
  63. if(current.inLoading != 1 || current.inGameCS == 1 || current.gameState != 4 || current.Nani == 0 || current.chapEnd == 8 || (current.chapEnd == 3 && current.IGT == old.IGT)){
  64. return true;
  65. }
  66. else{
  67. return false;
  68. }
  69. }
  70.  
  71. reset
  72. {
  73. if(settings["Full"]){
  74. if(current.areaNo == 100 && old.inMenu == 0 && current.inMenu == 1){
  75. return true;
  76. }
  77. }
  78. if(settings["Claire"]){
  79. if((current.areaNo == 100 || current.areaNo == 88 || current.areaNo == 188 || current.areaNo == 40) && old.inMenu == 0 && current.inMenu == 1){
  80. return true;
  81. }
  82. }
  83. if(settings["Barry"]){
  84. if(current.areaNo == 153 && old.inMenu == 0 && current.inMenu == 1){
  85. return true;
  86. }
  87. }
  88. }
  89.  
Tags: rer2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement