Originally Posted by
CaptainSparklez
Wasn't working for me. Ran it as administrator, changed the program to safe with my anti-virus, completely closed my anti-virus, tried in-game, on a private match - everything. Any chance someone could help me out with a work around? I noticed many users here have got this working.
Just make your own?
Code:
//FOV changing
#include <windows.h>
#include <iostream>
int main()
{
float newFOV = 90;
DWORD pid;
std::cout"Waiting for MW3..\n";
while(!(HWND hwnd = FindWindow(NULL,L"Call of duty: Modern Warfare 3"))) // Like I know what it's called..
Sleep(10);
std::cout"MW3 has been found..\n";
SetForegroundWindow(hwnd); // Unless you are selecting which FOV in the program
while(!(GetWindowThreadProcessId(hwnd,&pid)))
Sleep(10);
while(!(HANDLE phandle = OpenProcess(PROCESS_ALL_ACCESS,false,pid)))
Sleep(10);
WriteProcessMemory(process, (LPVOID)0x/*Address*/, &newFOV, sizeof(newFOV), NULL);
system("PAUSE");
return main();
}