A Major-style live broadcast overlay for CS2 with Game State Integration
Watching Major tournaments, the broadcast overlay always caught my eye: every player's health, money and weapons, the killfeed, the bomb timer. I wanted to build something like it for my own matches. Getting data out of the game CS2 has a feature called Game State Integration (GSI). You put a file in the game's cfg folder, and during a match the game sends the data you asked for as JSON to the…
The Major-style live broadcast overlay for CS2 showcases real-time player data during matches. Game State Integration (GSI) allows pulling player stats like health, money, weapons, and killfeed data through JSON updates. A Python Flask server processes this messy data, extracting key information such as player names, health, money, main weapon, grenades, and K/D ratios.
The overlay, built with HTML, CSS, and JavaScript, receives clean data from the server and updates the display at a rate of 10 times per second. Health bars smoothly transition using CSS to avoid flickering, while the killfeed only updates when kills or deaths change. When the bomb timer is active, the overlay changes color and duration based on bomb status.
The code for this overlay is open-source on GitHub, and Hasan Alp Güngör has also documented the building process on his YouTube channel.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.