Hello, I made a hoking void of invincibility and it worked, it only activates both sides, invincibility in my fighting game for player 1 and player 2, how do I separate it so that it activates me only on the side?
My hoking is like this, I already looked for ismine and in my game there are only isplayer, isleader, isactiveplayer and I tested all 3 and they all worked but they worked for both sides, invincibility I play street fighter 5
bool Godmode = false;
bool (*get_IsLeader)(void *instance);
bool (*old_IsInvincible)(void *instance);
bool IsInvincible(void *instance){
if(instance != NULL && Godmode) {
bool IsLeader = get_IsLeader(instance);
if(IsLeader) {
return true;
}
}
return old_IsInvincible(instance);
-----------------------------------------
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x1335C5C), (void *)IsInvincible, (void **) &old_IsInvincible);
get_IsLeader = (bool(*)(void *))getAbsoluteAddress("libil2cpp.so", 0x1333BD0);
-------------------------------------------------
Toggle_20 god mode
switch (featNum) {
case 20:
Godmode = boolean;
break;
My hoking is like this, I already looked for ismine and in my game there are only isplayer, isleader, isactiveplayer and I tested all 3 and they all worked but they worked for both sides, invincibility I play street fighter 5
bool Godmode = false;
bool (*get_IsLeader)(void *instance);
bool (*old_IsInvincible)(void *instance);
bool IsInvincible(void *instance){
if(instance != NULL && Godmode) {
bool IsLeader = get_IsLeader(instance);
if(IsLeader) {
return true;
}
}
return old_IsInvincible(instance);
-----------------------------------------
MSHookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x1335C5C), (void *)IsInvincible, (void **) &old_IsInvincible);
get_IsLeader = (bool(*)(void *))getAbsoluteAddress("libil2cpp.so", 0x1333BD0);
-------------------------------------------------
Toggle_20 god mode
switch (featNum) {
case 20:
Godmode = boolean;
break;