Solved lib2cpp damage attack modding parity issue

Status
Not open for further replies.

@ProEjder

Platinian
Original poster
Apr 2, 2021
48
783
183
turkey
Hello, the offsets are correct, but I found damage, when I change it, the damage of the other side is the same, I found god mode, but the opponent also becomes god mode

Could I be entering hex wrong? If this is true the only question on my mind

how about float hex ? how about integer?
 
  • Like
Reactions: Del352721

@ProEjder

Platinian
Original poster
Apr 2, 2021
48
783
183
turkey
Yes did you look under player search on dnspy?
Yes, I checked, there is no problem for the person who makes a mod menu from the same offsets, but when I make a mod menu, damage and god mode are mutual, we use the same offsets :D
 

·҉ dollaz·҉. .

Approved iModder
Approved iModder
Mar 26, 2021
159
1,827
193
Somewhere
Try looking for a function that checks if the player is yours, and set a pointer to it. Then call it with
C++:
if(isMine){
  if(toggleName){
  //return whatever
  }
}
In your hook, this should unlink the players

here is some pointer code if you dont know what I mean

iOS:
C++:
//put this under your import lines
bool (*isMine)(void *instance) = (bool (*)(void *))getRealOffset(0x1019F6604);
Android:
C++:
//put this where your toggle fields are, or under the import lines
bool (*isMine)(void *instance);

//put this where you call your hooks, example = HOOK(0x123446, Function, old_function);
isMine = (bool (*)(void *))getRealOffset(0x123456);
 
Last edited:
Status
Not open for further replies.