Coder Social home page Coder Social logo

mickydnet / pubg-health-corsair Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 17 KB

Shows current PUBG Health colour on all of your Corsair Devices.

Home Page: http://mdavison.net/start

JavaScript 100.00%
nodejs node-js corsair corsair-rgb corsair-rgb-keyboards corsair-cue pubg playerunknowns-battlegrounds k95

pubg-health-corsair's Introduction

Node JS - PUBG Corsair Health Bar

This script will fully colour your keyboard, mice and headset with the same colour as your PUBG health bar using Node JS.

Install

  • Install the dependencies: cue-sdk-node, robotjs, hex-rgb
  • Change the config variables in index.js (read below for more info)

Config Variables

The two variables used are to find the health bar on the screen. You will need to change these variables as my current screen resolution is 3440x1440 (so the health bar will be in a slightly different place)

  • To Change: Uncomment the var mouse and console.log from lines 13 - 14 Open Node JS & PUBG, navigate to the script (but don't run it yet) Start a game of PUBG and during the lobby time, put your mouse as far to the left of the health bar as you can then tab out to Node JS and run the script. Stop the script after you see { x: .., y: .. } and copy the co-ords accordingly to the variables in the script.

Things to try if things go wrong

  • Dependency Errors: If its an issue with dependencies, I most likely cannot help you as I did not code them.
  • Keyboard Lagging: This shouldn't be an issue, but you can try messing on with the timer settings right at the bottom of the script (milliseconds)
  • Headset Flickering: Try changing the second argument to false on var cue = .. (line 5)

Known Issues

  • FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
  • ST100 RGB Premium Headset Stand does not light up (the SDK currently doesn't support it)

Need any help?

Join my empty Discord ;) https://discord.gg/wkdmu4g

pubg-health-corsair's People

Contributors

mickydnet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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