ben-rogerson/claude-counter-strike
cs-radio
為 Claude Code 提供 Counter-Strike 1.6 無線電語音:部署時播放「Fire in the hole」,長回合結束時播放「Bomb has been defused」。用 /radio 切換。
關於這個 mod
Claude Counter-Strike
為 Claude Code 提供 Counter-Strike 1.6 無線電語音。
| 時機 | 你會聽到 | | --- | --- | | 工作階段開始 | "Locked and loaded" | | 長回合結束(45 秒以上) | "Bomb has been defused" | | 回合發生錯誤 | "Negative" | | 你中斷回合 | "Fall back" | | 部署開始 | "Fire in the hole" | | 部署成功 | "Counter-Terrorists win" | | 部署失敗 | "Terrorists win" |
Claude 執行的指令只要看起來像部署就算,例如:pnpm/npm/yarn/bun run deploy、wrangler deploy、vercel --prod、fly deploy、scripts/deploy.sh。
安裝
在 Claude Code 中:
/plugin marketplace add ben-rogerson/claude-counter-strike
/plugin install cs-radio@cs-radio
或從終端機執行:
claude plugin marketplace add ben-rogerson/claude-counter-strike
claude plugin install cs-radio@cs-radio
函式掛鉤外掛(mods)在 Claude Code 中仍屬搶先體驗,因此需要較新的版本。
音效
Claude Counter-Strike 依下列順序尋找音效:
-
Valve 原版音效:取自你自己的 Counter-Strike 1.6 安裝(本儲存庫不包含)。它會檢查常見的 Steam 資料夾:
- macOS:
~/Library/Application Support/Steam/steamapps/common/Half-Life/cstrike/sound/radio - Linux:
~/.steam/steam/...或~/.local/share/Steam/...(從steamapps起的路徑相同)
若你的安裝在其他位置,請在
/config中將 CS 1.6 radio folder 設為cstrike/sound/radio資料夾。 - macOS:
-
隨附的仿製音效:位於
sounds/,找不到安裝時使用。它們專為本儲存庫以 Kokoro(Apache-2.0)文字轉語音加上無線電濾波器製作,可以自由再散布。用uv run scripts/make-sounds.py重新產生(請參閱腳本開頭)。 -
系統語音:音訊片段無法播放時使用。
音訊片段以 afplay 播放,因此 wav 目前只能在 macOS 播放。
指令
/radio:切換開啟/關閉(跨工作階段記憶)/radio on//radio off/radio test:播放 "Counter-Terrorists win",並告訴你音效來源
選項(/config)
- CS 1.6 radio folder:
cstrike/sound/radio的路徑 - Long turn (seconds):回合執行多久後才播放 "Bomb has been defused"。預設 45。
開發
claude --plugin-dir . # load it from this checkout
claude plugin validate .
claude plugin test .
授權
程式碼與隨附仿製音效採用 MIT 授權。Counter-Strike 及其原版音效屬於 Valve。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add ben-rogerson/claude-counter-strike claude plugin install cs-radio@cs-radio
原文 / README
Claude Counter-Strike
Counter-Strike 1.6 radio calls for Claude Code.
| When | You hear | | --- | --- | | Session starts | "Locked and loaded" | | A long turn finishes (45s+) | "Bomb has been defused" | | A turn errors | "Negative" | | You interrupt a turn | "Fall back" | | A deploy starts | "Fire in the hole" | | The deploy succeeds | "Counter-Terrorists win" | | The deploy fails | "Terrorists win" |
A deploy is any command Claude runs that looks like one: pnpm/npm/yarn/bun run deploy, wrangler deploy, vercel --prod, fly deploy, scripts/deploy.sh.
Install
In Claude Code:
/plugin marketplace add ben-rogerson/claude-counter-strike
/plugin install cs-radio@cs-radio
Or from your terminal:
claude plugin marketplace add ben-rogerson/claude-counter-strike
claude plugin install cs-radio@cs-radio
Function-hook plugins (mods) are early access in Claude Code, so you need a recent build.
Sounds
Claude Counter-Strike looks for sounds in this order:
-
Valve's originals from your own Counter-Strike 1.6 install (they're not in this repo). It checks the usual Steam folders:
- macOS:
~/Library/Application Support/Steam/steamapps/common/Half-Life/cstrike/sound/radio - Linux:
~/.steam/steam/...or~/.local/share/Steam/...(same path fromsteamappson)
If yours is somewhere else, set CS 1.6 radio folder in
/configto thecstrike/sound/radiofolder. - macOS:
-
Bundled soundalikes in
sounds/, used when no install is found. They were made for this repo with Kokoro (Apache-2.0) text-to-speech plus a radio filter, so they're free to redistribute. Regenerate them withuv run scripts/make-sounds.py(see the script header). -
Your system voice, if a clip can't play.
Clip playback uses afplay, so wavs only play on macOS for now.
Commands
/radio- toggle on/off (remembered across sessions)/radio on//radio off/radio test- plays "Counter-Terrorists win" and tells you where the sounds come from
Options (/config)
- CS 1.6 radio folder - path to
cstrike/sound/radio - Long turn (seconds) - how long a turn runs before "Bomb has been defused" plays. Default 45.
Develop
claude --plugin-dir . # load it from this checkout
claude plugin validate .
claude plugin test .
License
MIT for the code and the bundled soundalikes. Counter-Strike and its original sounds are Valve's.
取得徽章
這是你的專案嗎?把這個徽章放進 README 或網站,連回本頁。
