JSPM

csgo-gamestate

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q49210F
  • License ISC

CSGO Gamestate integration in NodeJS

Package Exports

  • csgo-gamestate

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (csgo-gamestate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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