Originally Posted by
killergod129
so these are basically add ons to a hack code right?
Yes, just copy the code I posted into your menu base, or hotkey base. (whatever one you are using). So if you are using a hotkey base, you should put it in like this:
Make your own functions:
Code:
void NoRecoilon()
{
memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
}
void NoRecoiloff()
{
memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
}
Make sure this is in your globals(very top of source file):
Code:
bool norecoil = false;
Then in your main hack thread:
Code:
if (GetAsyncKeyState(VK_NUMPAD1)&1)
{
norecoil = !norecoil;
}
if (norecoil == true)
{
NoRecoilon();
}
else
{
NoRecoiloff();
}
May lag. Add Sleep(50); in the end of your on and off functions.
Do the same for the other hacks.