csgo-gamestate
v0.1.2
Published
CSGO Gamestate integration in NodeJS
Downloads
3
Maintainers
Readme
CSGO-Gamestate
A CS:GO Gamestate integration in NodeJS
Example
const CSGOClient = require("csgo-gamestate");
const client = new CSGOClient().start();
client.player.on("burning", health => {
console.log(`Player is burning. ${health}HP remaining`);
});
Events
Player
death
When player dies
burning
When player is burning
Params | | Name | Type | |-|-|-| | 1 | health | Number |
weaponReload
When player is reloading Params | | Name | Type | |-|-|-| | 1 | weapon | Weapon |
weaponSwitch
On weapon switch Params | | Name | Type | |-|-|-| | 1 | weapon | Weapon |
weaponShoot
On weapon shoot Params | | Name | Type | |-|-|-| | 1 | weapon | Weapon |
weaponDrop
On weapon drop Params | | Name | Type | |-|-|-| | 1 | weapon | Weapon |
weaponPickedUp
When a weapon was picked up
grenadeThrow
When throwing a grenade Params | | Name | Type | |-|-|-| | 1 | weapon | Weapon |
Types
Weapon
| Name | Type | Info |
|-|-|-|
| code | String | Weapon code name |
| name | String | Weapon's name |
| paintkit | String | Weapon's skin |
| type | String | Weapon type |
| ammo_clip | Number | Ammo remaining in clip |
| ammo_clip_max | Number | Maximum ammo available in clip |
| ammo_reserve | Number | Ammo in reserve |
| state | String | either active
, holstered
or reloading
|