Wednesday, 23 January 2019

Crossfire No Recoil and No Spread in CPlayerClntBase Source Code

No need to check for what Game MOde
Code:
if(your_key)
{
        auto __0x528 = *(DWORD*)(CPlayerClntBasePTR + 0x528);
        auto __0x618 = *(DWORD*)(CPlayerClntBasePTR+ 0x618);

        if (HIWORD(__0x528)) {  //  Yeah just HIWORD will do the job for yah
            *(DWORD*)(CPlayerClntBasePTR + __0x524) = -1;
            *(DWORD*)(CPlayerClntBasePTR + __0x52C) = 1;
            *(DWORD*)(CPlayerClntBasePTR + 0x830) = 32;
        }

        if (HIWORD(__0x618)) {
            *(DWORD*)(CPlayerClntBasePTR + 0x614) = -1;
            *(DWORD*)(CPlayerClntBasePTR + 0x61C) = 1;
            *(DWORD*)(CPlayerClntBasePTR + 0x920) = 32;
        }
}
Credits: AOE