All Projects â†’ lexogrine â†’ csgo-react-hud

lexogrine / csgo-react-hud

Licence: MIT License
🕹ī¸ Example for the Lexogrine HUD Manager system

Programming Languages

typescript
32286 projects
SCSS
7915 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to csgo-react-hud

pengWin
An external cheat for the Linux version of Counter-Strike Global Offensive
Stars: ✭ 28 (-64.56%)
Mutual labels:  radar, csgo
Python-CSGO-Cheat
All-in-one, undetected CSGO cheat written in Python.
Stars: ✭ 175 (+121.52%)
Mutual labels:  radar, csgo
csgo-maps-overviews
Counter-Strike Global Offensive maps overviews generated from game files (used by the radar)
Stars: ✭ 47 (-40.51%)
Mutual labels:  radar, csgo
csgo-gsi-python
Python library to interact with CS:GO
Stars: ✭ 33 (-58.23%)
Mutual labels:  csgo
moonlight-admin
Easy to use admin panel, designed for cheat loaders.
Stars: ✭ 29 (-63.29%)
Mutual labels:  csgo
NEPS
Bloat-free CS:GO multihack for Windows, based on Osiris. You should probably give it a go, as it was in development for about 2 years. Formerly a griefing cheat that developed into a semi-rage multihack, with many features added, bugs fixed, things optimized and more!
Stars: ✭ 205 (+159.49%)
Mutual labels:  csgo
Diamond
External glow ESP for CS:GO
Stars: ✭ 57 (-27.85%)
Mutual labels:  csgo
singlefile
featured cs:go internal hack, one file and less than 1000 lines.
Stars: ✭ 47 (-40.51%)
Mutual labels:  csgo
inspect
Source Code that Powers the CSGOFloat Inspect Link API
Stars: ✭ 220 (+178.48%)
Mutual labels:  csgo
csgo-trader-extension
CSGO Trader Browser Extension to help with CS:GO item trading, marketing and much more
Stars: ✭ 86 (+8.86%)
Mutual labels:  csgo
csgo-rcon-nodejs
A web panel to control a CS:GO server
Stars: ✭ 46 (-41.77%)
Mutual labels:  csgo
double-sdk
A simple way to write CS:GO cheats!
Stars: ✭ 15 (-81.01%)
Mutual labels:  csgo
rcon-web-admin
Self hosted, online RCON administration tool for your game server.
Stars: ✭ 70 (-11.39%)
Mutual labels:  csgo
sarpy
A basic Python library to demonstrate reading, writing, display, and simple processing of complex SAR data using the NGA SICD standard.
Stars: ✭ 133 (+68.35%)
Mutual labels:  radar
CSGO-Translator
Simple C# CSGO chat translator
Stars: ✭ 35 (-55.7%)
Mutual labels:  csgo
Titan
A free, advanced CS:GO report and commendation bot built with performance and ease-of-use in mind
Stars: ✭ 210 (+165.82%)
Mutual labels:  csgo
AWR1642-Read-Data-Python-MMWAVE-SDK-2
Python program to read and plot the data in real time from the AWR1642 and IWR1642 mmWave radar boards (Texas Instruments).
Stars: ✭ 84 (+6.33%)
Mutual labels:  radar
Mapchooser-Redux
Mapchooser - Redux
Stars: ✭ 28 (-64.56%)
Mutual labels:  csgo
HelvetaCS
Modern C++ CS:GO base
Stars: ✭ 41 (-48.1%)
Mutual labels:  csgo
csgo-hack
Counter-Strike: Global Offensive Hack
Stars: ✭ 70 (-11.39%)
Mutual labels:  csgo

LEXOGRINE HUD

Logo

Powered by ÂĢ Lexogrine HUD Manager Âģ

Lexogrine HUD

Fullfledged example of the React HUD made for HUD Manager. It has:

  • Custom actions
  • Keybinds
  • Killfeed
  • Player cam feed
  • Custom Radar

Keybinds:

Left Alt + S

Makes radar smaller by 20px;

Left Alt + B

Makes radar bigger by 20px;

Left Alt + T

Shows trivia box

Left Alt + M

Toggles upcoming match box

Left Alt + P

Toggles player preview

Left Alt + C

Toggles camera feed

Left Ctrl + B

Make radar invisible

Panel

Trivia settings

Field Description
Trivia title Text
Trivia content Text

Display settings

Field Description
Left/right box's title Text
Left/right box's title Text
Left/right box's image logo Image file

Example settings

Preview of HUDs settings

Preview

Preview of HUDs panel in action

Download

To download it just click here: DOWNLOAD HUD

Instruction

Setting up

Fork this repo, clone it, and then run npm install and npm start. HUD should start on the 3500 port. For this to work have HUD Manager opened so it will pass CS:GO data to the HUD.

Identifying HUD

In /public directory edit hud.json so it fits you - fill HUD's name, author, version, specify the radar and killfeed functionalities. At the end replace the thumb.png with your icon :)

Building & distributing

To build version to distribute and move around, in the root directory run npm run pack. It will create the zip file for distribution. Now you can just drag and drop this file into the HUD Managers upload area.

Signing

To create Signed HUD to prevent at least from modyfing compiled Javascript files run npm run sign. It's the same as npm run pack command but with additional step of signing .js and .css files and hud.json.

File structure

The HUD is seperated into two parts - the API part, that connects to the HUD Manager API and communicate with it: src/App.tsx file and src/api directory. Usually, you don't want to play with it, so the whole runs without a problem. The second part is the render part - src/HUD, src/fonts and src/assets are the directories you want to modify. In the src/HUD each element of the HUD is seperated into its own folder. Styles are kept in the src/HUD/styles. Names are quite self-explanatory, and to modify style of the element you should just find the styling by the file and class name.

panel.json API

To get the incoming data from the HUD Manager, let's take a look at the src/HUD/SideBoxes/SideBox.tsx componentDidMount() method:

import {configs} from  './../../App';
...
configs.onChange((data:any) => {
	if(!data) return;
	
	const  display = data.display_settings;
	
	if(!display) return;
	
	if(display[`${this.props.side}_title`]){
		this.setState({title:display[`${this.props.side}_title`]})
	}
	if(display[`${this.props.side}_subtitle`]){
		this.setState({subtitle:display[`${this.props.side}_subtitle`]})
	}
	if(display[`${this.props.side}_image`]){
		this.setState({image:display[`${this.props.side}_image`]})
	}
});

To retrieve incoming data, you should just import configs object and then listen for the changes with onChange method. Usually you want to check for the specific data, as in the callback it will always serve the full form from the Manager. However it looks different in the case of action input. In this case, let's look at the src/HUD/Trivia/Trivia.tsx:

import {configs, actions} from  './../../App';
...
actions.on("triviaState", (state: any) => {
	this.setState({show:  state === "show"})
});

For the action input we need to import the actions object and create listener with the parameter on it.

keybinds.json API

Keybinds API works in very similiar to panel.json action API. One more time the example will be from src/HUD/Trivia/Trivia.tsx:

import {configs, actions} from  './../../App';
...
actions.on("toggleTrivia", () => {
	this.setState({show: !this.state.show})
});

Keybinds listener works on the same object as action input, in this case however there are no parameter to retrieve.

Killfeed

Because our csgogsi has the ability to process input from HLAE's MIRV, listening for kills is very easy. We can see than in src/HUD/Killfeed/Killfeed.tsx:

componentDidMount() {
	GSI.on("kill", kill  => {
		this.addKill(kill);
	});
}

The Killfeed component basically just keeps kills in the state during the round, and after the round it cleans the state. Kills have CSS animation, that makes them gently show, and after a few seconds disappear, the experience is very smooth. You can fiddle with the styling in the killfeed.css This killfeed detects who killed whom, if there was an assist (flash assist as well), used weapon, headshot and wallbang.

Radar

Radar is custom React-based component, made by Hubert Walczak, and is easily editable from css.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].