This will play the given chat sounds whenever a player types something into the chat and the word or one of the words he typed in matches the given chat sound name. More funny then simply using a command because player will trigger this when typing something random.
- Download and extract the latest release from the GitHub releases page.
- Move the "ChatSounds" folder to the
/addons/counterstrikesharp/plugins/directory. - Install Dependencies: Download and install MultiAddonManager. This is required to ensure players download the sound files.
- Add Sounds: Configure MultiAddonManager to include a workshop addon you generated.
- Restart the server.
Updating is even easier: simply overwrite all plugin files and they will be reloaded automatically. To automate updates please use our CS2 Update Manager.
This plugin automatically creates a readable JSON configuration file. This configuration file can be found in /addons/counterstrikesharp/configs/plugins/ChatSounds/ChatSounds.json.
{
"enabled": true,
"debug": true,
"cooldown_player": 0,
"cooldown_global": 5,
"play_on_player": true,
"play_on_bots": false,
"play_on_all_players": false,
"sounds": {
"de": {
"1hp": {
"path": "Saysound.1hp",
"length": 0
},
"abgefahren": {
"path": "Saysound.Abgefahren",
"length": 0
},
"amerika": {
"path": "Saysound.America",
"length": 0
}
},
"en": {
"1hp": {
"path": "Saysound.1hp",
"length": 0
},
"america": {
"path": "Saysound.America",
"length": 0
}
},
"muted": [
"[U:1:33290010]"
],
"ConfigVersion": 1
}Sounds need to be categorized per language. If the player language is not found (and also not the server language) the first found language of the sounds dictionary will be used. This dictionary automatically sorts by alphabetically order to allow easier changes to the sound list. This will happen automatically each time the plugin gets loaded.
Sounds need to be inside an workshop addon sound definition file. Otherwise only default sounds from the cs2 internal sound definition files are possible to use.
Ability to run sub-commands:
Reloads the configuration.
Disables the sounds instantly and remembers this state.
Enables the sounds instantly and remembers this state.
Clone the project:
git clone https://github.com/Kandru/cs2-chat-sounds.gitGo to the project directory
cd cs2-chat-soundsInstall dependencies
dotnet restoreBuild debug files (to use on a development game server)
dotnet buildBuild release files (to use on a production game server)
dotnet publishTODO
