Originally Posted by
-InSaNe-
Code:
(Using your general method)
unsigned long *NoRecoilAddress = (unsigned long*)0x0054F8F9;
unsigned char noRecoilPatch[5] = {0x90, 0x90, 0x90, 0x90, 0x90};
unsigned long *LaserAddress = (unsigned long*)0x004D14B7;
unsigned char laserPatch[1] = {0x00};
unsigned long *FoVAddress = (unsigned long*)0x59C0724;
unsigned char fovPatch[1] = {90};
memcpy((void*)NoRecoilAddress, (void*)noRecoilPatch, sizeof(noReoilPatch));
memcpy((void*)LaserAddress, (void*)laserPatch, sizeof(laserPatch));
memcpy((void*)FoVAddress, (void*)fovPatch, sizeof(fovPatch));
(Using my method)
*(BYTE*)0x004D14B7 = 0x0;
*(int*)0x0054F8F9 = 0x90909090;
*(BYTE*)0x0054F8FD = 0x90;
*(float*)0x59C0724 = 90.0f;
Difference: 9 long lines vs 4 short lines. #Tr0L
I win.
#CodingWars x3