Giter Site home page Giter Site logo

cheat-lib's Introduction

cheat-lib

picture alt

Library written from scratch in C++ for developing external (overlay) cheats. Features included:

  • Type generic memory reads and writes from a process
  • Window with hotkey support that automatically resizes and repositions to match the game window
  • High-performance DirectX 11 renderer that can draw arbitrary shapes, lines, and text
  • Simple 3D linear algebra / game math library

Included is a sample cheat for Battlefield 4 that features:

  • ESP (Wallhacks)
  • Radar minimap
  • Recoil adjustment

Background

This library consists of a compilation of shared features between cheats (typically written in C) for a variety of different games that I've written over the years (with some features omitted for private use only).

The most interesting elements are the transparent window overlay and its renderer. The renderer is fairly lightweight and uses Win32 APIs to rasterize any installed system font.

The included sample is a fairly complete showcase of the features included with library. Assuming you pack/protect the executable with something unique it will bypass any PunkBuster anti-cheat features. It should pass FairFight protections in their current state (since transparent overlays are not captured correctly via BitBlt), but in the future this may change and it is left as an exercise to the user to intercept and block the call as it is fairly trivial.

Usage

Refer to the sample project p_bf4 included with the release.

Include "Cheat.hpp" from core, and create a new class FSampleCheat that inherits from FCheat.

class FSampleCheat : public FCheat {
public:
    b32 Create();
    b32 Ready();
    void Update();
};

Implement Create, Ready and Update virtual functions:

b32 FSampleCheat::Create() {
    /* Sample keybind for exiting the overlay:
    static FWindow::FBind const binds[] = {
        { 'Q',   MOD_ALT | MOD_SHIFT, this, KeyQuit },
    };
    Window.RegisterKeys(binds, COUNT(binds));
    */

    return true;
}

b32 FSampleCheat::Ready() {
    return true;
}

void FSampleCheat::Update() {
}

Run the cheat using the sample below:

FCheatSample cheat = {};
cheat.Run(cmdLine, L"Window Title", "Window Class");

Building

  1. Install Visual Studio 2015.
  2. Open cheats.sln.
  3. Change solution configuration to Release.
  4. Build solution.

cheat-lib's People

Contributors

nkga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.