D34TH_R4NG3R (03-20-2017),db86 (12-07-2016),H3ct0r (12-15-2016),JohnDoe1335 (11-24-2016),KamaimaseN (12-13-2016),octpos (03-06-2017)
Thank you for help of numerous members of this site!
Bellow, my code for NoRecoil after November 15 update.
#include <iostream>
#include <Windows.h>
class Mem
{
private:
DWORD pid;
HANDLE Handle;
DWORD64 value;
public:
inline bool OpenTargetProcess(char * windowName)
{
HWND Hwnd = FindWindowA(NULL, windowName);
if (!Hwnd) return false;
GetWindowThreadProcessId(Hwnd, &pid);
Handle = OpenProcess(PROCESS_ALL_ACCESS, false, pid);
return Handle;
}
inline Mem *Read(DWORD64 address)
{
this->value = address;
return (this->r(0));
}
inline Mem *r(DWORD64 ofs)
{
if (!this || !value)
return 0;
if (!ReadProcessMemory(Handle, (void*)(value + ofs), &value, sizeof(DWORD64), 0))
return 0;
return this;
}
template <typename T>
inline bool Get(DWORD64 ofs, LPVOID buffer)
{
if (Handle == 0 || !value)
return false;
if (!ReadProcessMemory(Handle, (void*)(value + ofs), (LPVOID)(buffer), sizeof(T), 0))
return false;
return true;
}
template <typename T>
inline bool Write(DWORD64 ofs, T buffer)
{
if (Handle == 0 || !value)
return false;
if (!WriteProcessMemory(Handle, (void*)(value + ofs), &buffer, sizeof(T), 0))
return false;
return true;
}
};
int main()
{
Mem m;
if (!m.OpenTargetProcess("Battlefield™ 1"))
{
printf("Fail to open the process");
return 0;
}
//norecoil
// Gamecontex-Localplyaer-ClientSoldierEntity-ClientSoldierWeapon-ClientWeapon-WeaponFiringData-GunSwayData
if (m.Read(0x1434156D0)->r(0x68)->r(0x578)->r(0x1D48)->r(0x0670)->r(0x4a18)->r(0x18)->r(0x38))
{
//float m_ShootingRecoilDecreaseScale; // 0x03C8
//float m_FirstShotNoZoomDispersionMultiplier; // 0x03CC
//float m_FirstShotZoomDispersionMultiplier; // 0x03D0
//float m_FirstShotRecoilMultiplier; // 0x03D4
//float m_PowerOfDispersionRandom; // 0x03D8
m.Write<float>(0x03C8, 100.0f);
m.Write<float>(0x03CC, 0.0f);
m.Write<float>(0x03D0, 0.0f);
m.Write<float>(0x03D4, 0.0f);
m.Write<float>(0x03D8, 0.0f);
printf("\nNoRecoil...");
}
return 0;
}
D34TH_R4NG3R (03-20-2017),db86 (12-07-2016),H3ct0r (12-15-2016),JohnDoe1335 (11-24-2016),KamaimaseN (12-13-2016),octpos (03-06-2017)
How to use it cause still get "fail to open process"
Verify if your proccess have this name "Battlefield™ 1". Tested on Windows 10 64x. Works fine!
Last edited by cryptobeen; 11-20-2016 at 06:42 AM.
Yes have Battlefield™ 1 but still get error... Started game and code and still error.
Edit.
Now it's working heh... Forgot start program via exe after compilation it in Dec-C++ <shame on me> I tried run it via Dec-C++ then i saw error "fail bla bla"
Last edited by janek333; 11-21-2016 at 04:26 AM.
hey can you get banned for this?
Would it be possible to compile this into an AHK? It works great, thank you.
Last edited by JohnDoe1335; 11-23-2016 at 07:17 PM.
ercivan (11-25-2016)
C++ is quite complicated anyway, basically all this is doing is reading the Bf1 process, and countering the in game code by writing to it. I prefer AHK because you don't need an EXE and is more simple than c++. This can get you banned for sure because the recoil is 0, there is no pixel movement on screen when a shot is taken, FairFight can pick it up and flag you for it if you hit the same location multiple times. I noticed that it still has some spread though and that might save you, just don't use this all the time.
Hi! Thanks for sharing!
Anyway sorry for being a noob but once I've Compiled & Run the .exe is it done?
Or is there a hotkey to hit in-game to activate
Dec-c++
"Process exit after ___ seconds with return value 0. Press any key to continue"
Am I doing it right?
Last edited by taps; 11-27-2016 at 10:16 AM. Reason: I'm a noob
Dont run it in Dev C++ (had same problem), run game, minimalize, start compiled .exe as admin and check it
So what do you do with the code? I'm clueless to this stuff, help a noob, thanks
well your code or copy it?
btw
add this for no breath
if (m.Read(0x1434156D0)->r(0x68)->r(0x578)->r(0x1D48)->r(0x658))
{
m.Write<float>(0x58, 0.0f);
}
btw. after every change player clas you must start the app new!!