Hey guys, it's SliceCast here. This tutorial is for Advanced Modders who wants to step up their games to get better! Could be for newbies too. I will show you some basics examples on how to hook a function. Now let's say our Type Functions are (int, float, bool, double) and that we're doing a...
platinmods.com
change to long :
long(*old_Kills)(void *instance);
long Kills(void *instance) {
//Check if instance is NULL to prevent CRASH
if (instance != NULL)
{
return 99999l; //Return how many value
}
//return the original value (this code isn't really needed if you have a toggle/switch)
return old_Kills(instance);
}
HOOK_LIB("libil2cpp.so", "0x123456", Kills, old_Kills);