Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

drweissbrot-archive/csgo-demo-bombsite-boundary-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csgo-demo-bombsite-boundary-extractor

Extracts coordinates of bombsites from Counter-Strike: Global Offensive demos. Designed for use with drweissbrot/csgo-hud.

Usage

Clone and install dependencies via Yarn.

Then, get a CS:GO demo and run

node app.js /path/to/demo.dem

This will result in something like this

de_overpass: {
  a: [
    { x: -2136, y: 662, z: 502 },
    { x: -2601, y: 351, z: 471 },
    { x: -1671, y: 973, z: 533 }
  ],
  b: [
    { x: -1104, y: 64, z: 104 },
    { x: -1249, y: -97, z: 79 },
    { x: -959, y: 225, z: 129 }
  ]
}

The coordinates are (in order): the center of the bombsite, the minimum, and the maximum vectors. Note that on some maps there may be valid planting positions outside of the minimum and maximum vectors.

If used for csgo-hud, you can paste the output (almost) verbatim into src/renderer/bombsites.js.