a vmt swapping library
Example:
typedef void(__thiscall *Entity__Damage)(void*, int);
Entity__Damage Entity__Damage__o;
void hookedDamage(void* thisptr, int amount) {
amount = 0;
Entity__Damage__o(thisptr, amount);
}
int main() {
// Setting up the hooking system
VMT* vmt = VMTM::Load(pEntity);
// Hooking @ index 0
Entity__Damage__o = (Entity__Damage)vmt->Hook(0, hookedDamage);
return 0;
}Check this out if youre still confused.