fix conflict with death event sync settings.

master
sigonasr2 5 years ago
parent 8513d7ec02
commit ed9d23771a
  1. BIN
      sigIRCv2.jar
  2. 8
      src/sig/modules/RabiRace/Profile.java
  3. 1
      src/sig/modules/RabiRaceModule.java

Binary file not shown.

@ -300,16 +300,16 @@ public class Profile {
}
String[] previousEventStruct = eventStruct.split("_");
StringBuilder events = new StringBuilder();
if (parent.readIntFromMemory(MemoryOffset.PLAYERHEALTH)<=0) {
RabiRaceModule.syncEvents=false;
RabiRaceModule.hasDied=true;
}
if (!RabiRaceModule.syncEvents && parent.readIntFromMemory(MemoryOffset.PLAYERHEALTH)>0 &&
parent.readIntFromMemory(MemoryOffset.DARKNESS)==0 && !RabiRaceModule.darknessHasReachedzero) {
if (!RabiRaceModule.syncEvents && RabiRaceModule.hasDied && parent.readIntFromMemory(MemoryOffset.PLAYERHEALTH)>0) {
RabiRaceModule.syncEvents=true;
RabiRaceModule.hasDied=false;
}
if (parent.readIntFromMemory(MemoryOffset.DARKNESS)>0 && RabiRaceModule.syncEvents) {

@ -94,6 +94,7 @@ public class RabiRaceModule extends Module{
public static ScheduledExecutorService scheduler,scheduler2;
public static boolean syncEvents = true;
public static boolean darknessHasReachedzero = false; //darkness needs to go down to 0, then go back up.
public static boolean hasDied = false;
int frames=0;
public static final int[] RESTRICTED_EVENTS = new int[] {256,257,260,262,264,265,266,267,268,269,271,272,278,279,284,289,290,295,296,307,315,316,322,323,324,331,333,344,345,371,377,379,385,386,387,399,412,427,428,451,452,464,465,484,516,517,518,519};

Loading…
Cancel
Save