bool RefillAmmoInAllWeaponsHook = false;
void (*RefillAmmoInAllWeapons)(void* instance);
void(*old_RefillAmmoInAllWeaponsUpdate) (void *instance);
void RefillAmmoInAllWeaponsUpdate(void *instance) {
if(instance != NULL) {
if (RefillAmmoInAllWeaponsHook){
RefillAmmoInAllWeapons(instance);
}
}
old_RefillAmmoInAllWeaponsUpdate(instance);
}
void *hack_thread(void *) {
do {
sleep(1);
} while (!isLibraryLoaded(targetLibName));
#if defined(__aarch64__)
#else
RefillAmmoInAllWeapons = (void(*)(void *))getAbsoluteAddress(targetLibName, string2Offset(OBFUSCATE_KEY("0x687D6C", 'A')));
MSHookFunction((void *) getAbsoluteAddress(targetLibName, 0x6A7A38),
(void *) RefillAmmoInAllWeaponsUpdate, (void **) &old_RefillAmmoInAllWeaponsUpdate);
#endif
return NULL;
}
most of the classes i tried it did not work .Hello there,
You can use Update() from other classes too.
Hope this helps :)
You are doing something wrong, i have actually did it in past and it worked for me.most of the classes i tried it did not work .
i have just tried the normal function pointer for a working method with its update , > workingYou are doing something wrong, i have actually did it in past and it worked for me.
not all methods. this one should be called in its classi have just tried the normal function pointer for a working method with its update , > working
used 4 more updates (random ones) and they are not working .
ya , not all methods, but how about a pointer with 1 paramater like int such as this :not all methods. this one should be called in its class
ohh i know but u must understand by yourselfya , not all methods, but how about a pointer with 1 paramater like int such as this :
Public void AddGold (int amount) { }
and no update in its class , so how to make a pointer to it
> using another update from another class will not work at 90 % of the time .
ya , not all methods, but how about a pointer with 1 paramater like int such as this :
Public void AddGold (int amount) { }
and no update in its class , so how to make a pointer to it
> using another update from another class will not work at 90 % of the time .
i already solved that , i gotta make instance to the class that i am using the update of , and it is easy not big deal ,
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies