Death Sound
This is my first Plugin.
Description:
This plugin plays a random sound to specific group of players or play a sound to a specific group of players on a specific map position.
The plugin adds the sounds to the DownloadTable and prechaches them.
Features:
Full control about who can here sounds.
Emit on map or play directly to a player.
Player on / off option.
Force deathsounds.
Announcement how to switch on / off.
...
Installation:
- Download and paste the deathsound.smx to /sourcemod/plugins/
- On updating delet "cfg/sourcemod/plugin.deathsound.cfg"
- Put the deathsound.txt into your "/sourcemod/configs" folder.
- Load the plugin with a mapchange or "sm plugins load deathsound".
- Edit the configfile"cfg/sourcemod/plugin.deathsound.cfg" and the soundlist "/sourcemod/configs/deathsound.txt". 10 sounds are maximum.
- Upload the sounds to the server and optionally to the fast download server.=)
- Reload the plugin with a mapchange or "sm plugins reload deathsound".
Important CVAR's:
sm_deathsound_playto: summ up the values of the groups (e.g: All playing players = 12 (4+8))
Groups:
+1 :the victim
+2 :the attacker
+4 :the team of victim
+8 :the team of the attacker
+16 :all dead players (i think this includes spectators)
+32 :all alive players
sm_deathsound_emit:
1: Emit a sound on the map at the position where a plaer died
0: Play all sounds diret to the players.
...
Changelog:
Code:
* V0.5.3
* Fixed bug with the spamming announce
* Fixed bug with on/ off option
* Fixed logic bug -.--.-.-.-.-.-.-.-.-.-.-.-.-
* Code optimization
*
* V0.5
* Changed cvar soundlist to keyvaluesoundlist
* Added more options for sm_deathsound_playto
* Added On/off option for Players
* Added announce
* +Cvar to control the announce
* +Cvar to emit a sound on the map or play a sound direct to a player
* +Cvar to disable the player on / off option
*
* V0.4.2
* Added some code
*
* V0.4
* +Cvar to control who can hear sound
* +Cvar to control which sound the players hear
*
* V0.3.1
* Fixed bug with client index
*
* V0.3
* +cvar plugin on/off: sm_deathsound_enable
* +cvar soundlist: sm_deathsound_soundlist
* +autoconfigfile:cfg/sourcemod/plugin.deathsound.cfg
* Recoded the [CSS]RoundSound part.
*
* V 0.2:
* Added singel soundfile check.
*
* V 0.1:
* Basic Plugin, based on [CSS]RoundSound.
To Do:
*Admin executes sound on player
*The settingsmenu
*Translationfile.
*Option to disable the standard sound
Credits:
I used
[CSS]RoundSound for help.
THX to
Black Haze.
I'm searching for good sounds. Please help me.