Giter Club home page Giter Club logo

pubgm_antirecoil's Introduction

PUBG Mobile Anti-Recoil

This is a simple script written in python to auto-shoot + control recoil of weapons in pubg mobile using feature detection for calculating the translation of the screen, just like a camera stabilizer would do probably. I made this for learning purposes, so don't expect it to run perfectly, it may be buggy sometimes.

How it works

The algorithm is simple:

  1. Wait for the middle button of mouse to be pressed.
    1. Grab the central part of screen(for this I use mss, as it claims to be the fastest way to grab screen in python), I'll call this as OLD_IMG.
  2. While middle button of mouse is pressed do.
    1. Grab another image of the same part of screen. This I'll call as NEW_IMG.
    2. Just call ORB using OLD_IMG and NEW_IMG as the parameters. It'll detect some high quality points in image for detecting it's translation. Returns the keypoints and their respective descriptors.
    3. Using the descriptors of both images, use a brute force matcher to match them between the OLD_IMG and NEW_IMG.
    4. Sort them according to their distance.
    5. Use the best X matches to calculate the translation vector between imgs.
    6. Use the translation vector(dx,dy) to send mouse input and correct the recoil. ##Note: It works using the mouse events of WINDOWS so, it won't run in linux.

pubgm_antirecoil's People

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.