leo-divini/CS2_Macro_Deck_Plugin — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Macro Deck 2 plugin for Counter Strike 2 that listens locally for CS2 Game State Integration data and turns the live game info into Macro Deck variables I can use on buttons.

I want it to receive CS2 data on localhost, with a configurable port and token, then update variables for things like connection status, map, round phase, scores, player name, team, health, armor, money, weapon, ammo, and bomb state. Keep the normal variable set simple, but let me enable extra advanced stuff like spectator data, all players, grenades, raw JSON, and debug info in settings.

Please include plugin settings where I can change the listener port and token, choose variable groups, and copy a ready to paste CS2 GSI config using those values. Also add actions to refresh the latest state and restart the listener. Include basic debug endpoints like state and raw, and make sure errors like bad token, port in use, or waiting for CS2 show up as status variables.

Want more depth? Deep Reverse