View Single Post
Author Message
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 06-22-2015 , 00:49   TOG Custom Death Sounds
Reply With Quote #1

Description
This simple plugin was made upon request to play a sound upon a player's death to both the victim and the killer. I separated out the cvars for which sound is heard by each. Leave the cvars blank for no sound to play. No idea if this already exists, and I wouldnt be surprised if it does. But since the guy asked for it, I might as well post it as a plugin, rather than in his thread.

Note: Plugin auto-detects if path is relative to the sounds folder. So, you're ok to set either the relative path or the full path (e.g. "sounds/mysound.mp3" vs "mysound.mp3" will both work, as long as it is in the sounds folder like it should be).

Installation
Place the .smx file in your addons/sourcemod/plugins folder.

CVars
  • tcds_killersound - File path to sound that the killer will hear. Leave blank for none.
  • tcds_victimsound - File path to sound that the victim will hear. Leave blank for none.

Note: Here are links to the two other includes (EmitSoundAny and AutoExecConfig):
https://forums.alliedmods.net/showthread.php?t=237045
https://forums.alliedmods.net/showthread.php?t=204254

Servers using this plugin
Attached Files
File Type: sp Get Plugin or Get Source (togcustomdeathsounds.sp - 561 views - 4.4 KB)
File Type: smx togcustomdeathsounds.smx (10.9 KB, 462 views)
__________________

Last edited by ThatOneGuy; 11-19-2015 at 01:22. Reason: Added links to the two includes from other ppl cuz someone asked about em
ThatOneGuy is offline