[Source Code] Crossfire Speed Hack

Discussion in 'C and C++' started by Linux2, Jul 4, 2016.

  1. [h=2][Source Code] Crossfire Speed Hack[/h]
    Code:
    #define dw_pWeaponMgr 0x15ECE34 //  8B 0D ?? ?? ?? ?? 8B 04 B1 D9 E8
    #define MoveSpeedPenalty 0xD00
    
    VOID SpeedHack()
    {
        DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");
        if(!CShellBase) return;
        DWORD pWeaponMgr        = *(DWORD*)(CShellBase+dw_pWeaponMgr);
        for(int i=0; i<=999; i++)
        {
            DWORD Weapon = *(DWORD*)(pWeaponMgr + (4*i));
            if(Weapon != 0)
            {
                if(GetAsyncKeyState(VK_SHIFT))
                {
                    *(float*)(Weapon + MoveSpeedPenalty) = -1.0f;
                }
            }
        }
    }  
    

    not sure if still updated.

     

Share This Page