Giter Club home page Giter Club logo

pubg-maphack-map's Introduction

PUBG-Radar

READ ME FIRST!

This is just a radar!

This can not working alone.

It needs a memory reader like: jussihi/PUBG-map-hack.

So please dont ask why it's not working, get your memory reader first!

Feature

  • Display player (location, health, facing direction)
  • Display item
  • Display Vehicle
  • Track current player location (change that with /?id=PLAYERINDEX)
  • Select map (change with /?map=(1|2) or pick one at random if omitted)

Build instructions

  1. Install Nodejs.
  2. To your Working directory and run npm install to install package.
  3. Run services node index.js.
  4. The Map will running at localhost:7890.

Configure

Configure your memory reader to work with PUBG-Radar.

edit your PUBG-map-hack CURLWrapper.hpp file:

  1. Change CURLOPT_URL to http://127.0.0.1:7890/
  2. Change CURLOPT_CUSTOMREQUEST to POST
  3. Save and compile.

exp:

int sendData(std::string& w_data)
{
    try
    {
        struct curl_slist *headers = NULL;

        headers = curl_slist_append(headers, "Content-Type: application/json");

        curl_easy_setopt(m_curl, CURLOPT_VERBOSE, 0L);
        curl_easy_setopt(m_curl, CURLOPT_HTTPHEADER, headers);
        curl_easy_setopt(m_curl, CURLOPT_URL, "http://127.0.0.1:7890/");  // <---- here
        curl_easy_setopt(m_curl, CURLOPT_CUSTOMREQUEST, "POST");          // <---- here
        // curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, 30L);
        curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION, write_data);
        curl_easy_setopt(m_curl, CURLOPT_POSTFIELDS, w_data.data());
        curl_easy_setopt(m_curl, CURLOPT_NOSIGNAL, 1);

        curl_easy_perform(m_curl);

        curl_slist_free_all(headers);
        curl_easy_reset(m_curl);
    }
    catch (std::exception& e)
    {
        std::cout << e.what() << std::endl;
        return -1;
    }
}

custom reader

HTTP POST that JSON struct blow, send it to `http://127.0.0.1:7890'.

{
    "locations": {
        "players": [{
            "t": 0,
            "x": 1.00,
            "y": 1.00,
            "hp": 1.00,
            "r": 1.00
        }],
        "items": [{
            "x": 1.00,
            "y": 1.00,
            "n": "scar"
        }],
        "vehicles": [{
            "x": 1.00,
            "y": 1.00,
            "v": "buggy"
        }]
    }
}
// t team id
// x actorLocation X
// y actorLocation Y
// r relativeRotation Y
// n name

Changelog

2017-12-21 16:10:08

  • Add desert map supported, made by @ivq

2017-12-16 01:37:18

  • facing direction arrow is no longer displayed when player is driving or parachuting.
  • try to add a meter but failed, some junk code here.

2017-12-14 01:09:28

  • rename project.
  • code refactoring, now code is clean and upgradable.

2017-11-6 00:16:33

  • Add facing direction arrow.

to enable this feature you need edit your PUBG-map-hack GameDataParser.hpp:

if (std::find(playerIDs.begin(), playerIDs.end(), curActorID) != playerIDs.end())
{
    int64_t rootCmpPtr = _Reader->readType<int64_t>(curActor + 0x188);
    int64_t playerState = _Reader->readType<int64_t>(curActor + 0x3D0);
    Vector3 actorLocation = _Reader->readVec(rootCmpPtr + 0x2DC);
    Vector3 relativeRotation = _Reader->readVec(rootCmpPtr + 0x02DC); // <---- here

    // ...
    
    w_data["players"].emplace_back(json::object({ { "t", actorTeam }, {"hp", hp}, { "x", actorLocation.X },{ "y", actorLocation.Y }, {"r", relativeRotation.Y } })); // <---- and here
}

2017-11-5 21:47:58

  • Add fullscreen support (ios safari ONLY).

2017-11-4 04:04:44

  • Dead body is a black dot right now.
  • Add a Health pie chart, The player's health has a visual effect.

to enable this feature you need edit your PUBG-map-hack GameDataParser.hpp:

if (std::find(playerIDs.begin(), playerIDs.end(), curActorID) != playerIDs.end())
{
    // ...

    float hp = _Reader->readType<float>(curActor + 0x113C); // <---- here

    w_data["players"].emplace_back(json::object({ { "t", actorTeam }, {"hp", hp}, { "x", actorLocation.X },{ "y", actorLocation.Y }/*,{ "z", actorLocation.Z }*/ })); // <---- and here
}

Special thanks

uuaing for facing direction and draw arrow functions.

myloft for the curActor decryption

pubg-maphack-map's People

Contributors

zahariel1942 avatar uz2 avatar myloft 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.