Sunday, 3 October 2021

Plz help with mshook using new mod menu

Since it's been a while - I forgot how to actually code stuff, could you please tell me how do properly I implement that? bool (*get_isEnemy)(void *instance) = (bool (*)(void *))getRealOffset(0x101FB0804); float (*old_getDamage)(void *e); float getDamage(void *e){ bool enemy = get_isEnemy(e); if (e && enemy == false) { return 9999.0f; } return old_getDamage(e); } /// HOOK(0xaddress, old_getDamage, getDamage); Currently that just crashes the game.

from iOSGods RSS Feed https://ift.tt/3isFJSX

No comments:

Post a Comment