ClaudeMods
☰
ZH-CN
● — 人在线 · 浏览 — 次
赞助提交作品
GitHub 仓库 · 发布者 ben-rogerson

cs-radio

为 Claude Code 提供 Counter-Strike 1.6 无线电语音:部署时播放「Fire in the hole」,长回合结束时播放「Bomb has been defused」。用 /radio 切换。

ben-rogerson@ben-rogerson

ben-rogerson/claude-counter-strike

已翻译

关于这个 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 按以下顺序寻找音效:

  1. 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 文件夹。

  2. 附带的仿制音效:位于 sounds/,找不到安装时使用。它们专为本仓库用 Kokoro(Apache-2.0)文本转语音加无线电滤波器制作,可以自由再分发。用 uv run scripts/make-sounds.py 重新生成(请参阅脚本开头)。

  3. 系统语音:音频片段无法播放时使用。

音频片段用 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:

  1. 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 from steamapps on)

    If yours is somewhere else, set CS 1.6 radio folder in /config to the cstrike/sound/radio folder.

  2. 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 with uv run scripts/make-sounds.py (see the script header).

  3. 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 或网站,链接回本页。

Featured on ClaudeMods
尺寸
配色
Markdown
HTML

更多类似作品