bool ShuffleTime;
void (*addUnlimitedShuffleTime)(void *instance, int time, bool force);
void (*old_Update)(void *instance);
void Update(void *instance) {
if(instance!=NULL) {
if(ShuffleTime) {
addUnlimitedShuffleTime(instance, 9999, false);
ShuffleTime=false;
}
}
old_Update(instance);
}
addUnlimitedShuffleTime = (void(*)(void*, int, bool)) getAbsoluteAddress(targetLibName, 0x226BDD4);
HOOK("UPDATE OFFSET HERE", Update, old_Update);
OBFUSCATE("Button_Add Shuffle Time),
Case XX:
ShuffleTime = !ShuffleTime;
break;
or hook it directly and change the parameters returns, whenever you get time from the game itself, it will be the new value you h
However, it does not work in multiplayer modeHook it through an Update, LateUpdate or FixedUpdate method, usually found in the same class...
C++:bool ShuffleTime; void (*addUnlimitedShuffleTime)(void *instance, int time, bool force); void (*old_Update)(void *instance); void Update(void *instance) { if(instance!=NULL) { if(ShuffleTime) { addUnlimitedShuffleTime(instance, 9999, false); ShuffleTime=false; } } old_Update(instance); }
Then under hackthread...
C++:addUnlimitedShuffleTime = (void(*)(void*, int, bool)) getAbsoluteAddress(targetLibName, 0x226BDD4); HOOK("UPDATE OFFSET HERE", Update, old_Update);
Then finally add your menu item and case...
C++:OBFUSCATE("Button_Add Shuffle Time), Case XX: ShuffleTime = !ShuffleTime; break;
Hello bro, need your helpHook it through an Update, LateUpdate or FixedUpdate method, usually found in the same class...
C++:bool ShuffleTime; void (*addUnlimitedShuffleTime)(void *instance, int time, bool force); void (*old_Update)(void *instance); void Update(void *instance) { if(instance!=NULL) { if(ShuffleTime) { addUnlimitedShuffleTime(instance, 9999, false); ShuffleTime=false; } } old_Update(instance); }
Then under hackthread...
C++:addUnlimitedShuffleTime = (void(*)(void*, int, bool)) getAbsoluteAddress(targetLibName, 0x226BDD4); HOOK("UPDATE OFFSET HERE", Update, old_Update);
Then finally add your menu item and case...
C++:OBFUSCATE("Button_Add Shuffle Time), Case XX: ShuffleTime = !ShuffleTime; break;