void CPlayer::SetAttackKeyState(bool isPress)
Code:
# add ; at end of line (c is ****)
typedef void(__fastcall *tSetAttackKeyState)(void*, void*, bool)
void* pThis = atac1
tSetAttackKeyState SetAttackKeyState = (tSetAttackKeyState) atac2
SetAttackKeyState(pThis, NULL, true)
Should work
EDIT:
Take a look at this:
it seems the most clear method.
Code:
class IMyShitClass {
void im_just_a_helper() = 0;
};
void (IMyShitClass::* pAttackKeyState)(bool) = atac2;
auto p = (IMyShitClass*)atac1;
p->*pAttackKeyState(true)
None of my code is tested but should work with right compiler