Jump to content

2 posts in this topic

Recommended Posts

Posted

I am new to doing more than offset patches within the mobile cheating universe. I was wondering if some one or multiple people would be willing to help me out with understanding how MSHooking and other stuff like that works. I've been reading threads upon threads to try an get an understanding and while I am getting there slowly I still do not fully understand it all.

Some simple and or detailed examples, docs or whatever will help a ton!

  • Like 2
Posted

MSHook basically replacing a function with your own function.

lets say there is an offset called DefaultFOV(float value) and it's offset is 0x10123456

Using MSHOOK (jb only)

We wanna start with replacing the function with our own.

bool changefov;

old_DefaultFOV(float);
DefaultFOV(float value) {
if (changefov) { 
 value = 120
}
 return old_DefaultFOV(float)
}

If changefov is true, then return the value to 120
else return the old value from old_DefaultFOV.

Then you need to hook the function via
MSHookFunction(0x10123456, DefaultFOV, old_DefaultFOV)
(DefaultFOV is the function youll be changing and old_DefaultFOV is the old function)

You can call MSHookFunction when you load your menu or something. Hopefully this can clear some foggy understanding.

  • Like 1
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines