Results 1 to 4 of 4
  1. #1
    Gaspardu44's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    How to unlock Dvar?

    Hi,

    The question is in the title :"How to unlock Dvar?"

    So, I have make some search but I again found nothing. Thus I ask you for one complete answer has this question.
    I can use commands as r_fullbright or fx_draw...

    I have already looked at this topic :

    https://www.mpgh.net/forum/279-call-d...aiw-dvars.html

    but I did not understand

    Thanks you.

  2. #2
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,875
    Reputation
    124
    Thanks
    604
    My Mood
    Cynical
    Just set the value of the blocked Dvars via mem editing.. save for fullbright which is shader related and will crash your game..

  3. #3
    Gaspardu44's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    But with what file and with what software ?

    Thank you Convery for your patient.

  4. #4
    LEGiiTxCHAOTiiC's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Chicago
    Posts
    200
    Reputation
    39
    Thanks
    72
    This example will set the field of view in degrees to 100, in C code.

    Code:
    #include <windows.h>
    
    int main(int argc, char* argv[])
    {
            HWND hwnd = FindWindow(0, TEXT("Modern Warfare 2"));
            float fov = 100.0;
            DWORD dwPId;
            GetWindowThreadProcessId(hWnd, &dwPId);
            HANDLE hProc = OpenProcess(PROCESS_VM_WRITE | PROCESS_VM_OPERATION, FALSE, dwPId);
            
            WriteProcessMemory(hProc, (LPVOID)0x063FB5C0, &fov, sizeof(fov), NULL);
            WriteProcessMemory(hProc, (LPVOID)0x063FB5D0, &fov, sizeof(fov), NULL);
            
            return 0;
    }
    Explanation:
    Creates a handle that looks for the Modern Warfare 2 window. Then it writes to 2 memory addresses with the value of the desired field of view, being 100 degrees. It's very very simple, you should add your own checks to make sure it writes the memory properly, as this makes no checks for say, window being present, if injection was successful, being able to open process etc. Also, add user input. You can find my more advanced version in this section.

Similar Threads

  1. [Release] How to unlock all the achievements for call of duty modern warfare 2 (using Hex works
    By tom95ek in forum Call of Duty 6 - Modern Warfare 2 (MW2) Hacks
    Replies: 0
    Last Post: 11-28-2009, 06:53 PM
  2. How to Unlock All Weapons, Highest level + All Challenges (reupload)
    By djay230 in forum Call of Duty Modern Warfare Help
    Replies: 3
    Last Post: 11-14-2009, 01:08 PM
  3. HOW TO UNLOCK ALL WEAPONS! +GP HACK
    By megaspeek in forum Combat Arms Hacks & Cheats
    Replies: 17
    Last Post: 01-23-2009, 12:44 PM
  4. HeY ! how to unlock...
    By bigdeath2k in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 2
    Last Post: 01-11-2008, 06:34 PM
  5. here is how to unlock all slots 5-8
    By shadowsecret in forum WarRock - International Hacks
    Replies: 3
    Last Post: 04-03-2007, 08:43 AM