Coder Social home page Coder Social logo

glgameshrin / pubg-maphack-map Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zahariel1942/pubg-maphack-map

0.0 1.0 0.0 22.1 MB

this is a working copy online-map from jussihi/PUBG-map-hack, use nodejs webserver instead of firebase.

JavaScript 93.82% CSS 1.24% HTML 4.94%

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)

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-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 + 0x107C); // <---- here

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

2017-11-5 21:47:58

  • Add fullscreen support (ios safari ONLY).

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 + 0x180);
    int64_t playerState = _Reader->readType<int64_t>(curActor + 0x3C0);
    Vector3 actorLocation = _Reader->readVec(rootCmpPtr + 0x1A0);
    Vector3 relativeRotation = _Reader->readVec(rootCmpPtr + 0x01EC); // <---- here

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

2017-12-14 01:09:28

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

Special thanks

uuaing for facing direction and draw arrow functions.

myloft for the curActor decryption

pubg-maphack-map's People

Contributors

zahariel1942 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.