Results 1 to 1 of 1
  1. #1
    AzFresHz's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    279
    My Mood
    Sleepy

    Post BF4 No Recoil & No Breath

    So just gonna post the source code again, and now just only the source code the thread got delete because of outsidelinks. but yeah it was my foult

    #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 4"))
    {
    printf("Fail to open the process");
    return 0;
    }
    else{
    printf("OK BF4...\n");
    }

    if (m.Read(0x1421caee0)->r(0x49c0)->r(0x78)->r(0x8))
    {
    m.Write<float>(0x444, 0.0f);
    m.Write<float>(0x440, 100.0f);
    }

    if (m.Read(0x1424abd20)->r(0x60)->r(0x540)->r(0x14D0)->r(0x588))
    {
    m.Write<float>(0x58, 0.0f);
    }
    else
    {
    printf("Fail ");
    }

    Sleep(100);

    return 0;
    }
    As always, use at your own risk.
    Last edited by AzFresHz; 05-10-2016 at 09:16 AM.

  2. The Following User Says Thank You to AzFresHz For This Useful Post:

    [MPGH]Paralyze (05-10-2016)

Similar Threads

  1. [Outdated] BF4 - No Recoil & No aBreath
    By AzFresHz in forum Battlefield 4 Hacks & Cheats
    Replies: 41
    Last Post: 09-08-2016, 03:51 PM
  2. [Release] BFH - No Recoil & No Breath
    By AzFresHz in forum Battlefield Hardline Hacks & Cheats
    Replies: 16
    Last Post: 07-04-2016, 01:31 PM
  3. [Detected] Battelfield 3 MP Trainer +5 (Nametags,Minimap,No Spread,No Recoil,Breath)
    By apocalypticx in forum Battlefield 3 (BF3) Hacks & Cheats
    Replies: 59
    Last Post: 12-15-2012, 04:18 PM
  4. [Release] Battlefield3 +4 Trainer (No Spread,Reduce Recoil,Hold Breath,Tags) Updated!
    By apocalypticx in forum Battlefield 3 (BF3) Hacks & Cheats
    Replies: 102
    Last Post: 12-24-2011, 11:03 AM
  5. [Release] Battlefield +4 Trainer (No Spread,Reduce Recoil,Hold Breath,Tags).
    By apocalypticx in forum Battlefield 3 (BF3) Hacks & Cheats
    Replies: 83
    Last Post: 12-06-2011, 02:20 PM