Raised This Month: $246 Target: $400
 61% 

Notices

TOG Custom Death Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Plugin ID:
4691
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Play custom sounds upon death for both the killer and victim
    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 - 150 views - 4.4 KB)
    File Type: smx togcustomdeathsounds.smx (10.9 KB, 100 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
    nelioneil
    AlliedModders Donor
    Join Date: Sep 2005
    Old 06-22-2015 , 06:13   Re: TOG Custom Death Messages
    Reply With Quote #2

    Where is the attachment?
    nelioneil is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 06-22-2015 , 15:46   Re: TOG Custom Death Messages
    Reply With Quote #3

    Quote:
    Originally Posted by nelioneil View Post
    Where is the attachment?
    Oops. My bad. I'm at work, but I'll add it as soon as I get home. I thought it seemed like something was missing, lol.

    EDIT: Added. Thanks for letting me know.
    __________________

    Last edited by ThatOneGuy; 06-22-2015 at 19:30.
    ThatOneGuy is offline
    Koga73
    Senior Member
    Join Date: Mar 2011
    Location: 🍩
    Old 08-27-2016 , 07:39   Re: TOG Custom Death Sounds
    Reply With Quote #4

    Would be nice if it could read between a variety of sounds.
    Nice job none-theless. Does it work for CS:GO?
    What about a function for users to turn it on/off?
    __________________
    Koga73 is offline
    Aymeric VII
    BANNED
    Join Date: Jun 2016
    Location: Hiding under my sheets
    Old 08-27-2016 , 10:32   Re: TOG Custom Death Sounds
    Reply With Quote #5

    Quote:
    Originally Posted by Koga73 View Post
    Would be nice if it could read between a variety of sounds.
    Nice job none-theless. Does it work for CS:GO?
    What about a function for users to turn it on/off?
    try it and find out?

    Last edited by Aymeric VII; 08-27-2016 at 10:32.
    Aymeric VII is offline
    Koga73
    Senior Member
    Join Date: Mar 2011
    Location: 🍩
    Old 08-27-2016 , 18:25   Re: TOG Custom Death Sounds
    Reply With Quote #6

    Quote:
    Originally Posted by Aymeric VII View Post
    try it and find out?
    Well maybe he would be so kind to answer if he knew. Jeez.
    __________________
    Koga73 is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 08-27-2016 , 22:25   Re: TOG Custom Death Sounds
    Reply With Quote #7

    Quote:
    Originally Posted by Koga73 View Post
    Well maybe he would be so kind to answer if he knew. Jeez.
    It uses emitsoundany, which is supposed to work with CS:GO...im pretty sure i didnt code it for csgo though, so test to find out. I have no intention of expanding this plugin, so new development will have to be through someone else.
    __________________
    ThatOneGuy is offline
    Koga73
    Senior Member
    Join Date: Mar 2011
    Location: 🍩
    Old 08-30-2016 , 10:29   Re: TOG Custom Death Sounds
    Reply With Quote #8

    Quote:
    Originally Posted by ThatOneGuy View Post
    It uses emitsoundany, which is supposed to work with CS:GO...im pretty sure i didnt code it for csgo though, so test to find out. I have no intention of expanding this plugin, so new development will have to be through someone else.
    Alright thank you. Will give it a run soon and let you know.
    __________________
    Koga73 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 00:56.


    Powered by vBulletin®
    Copyright ©2000 - 2018, vBulletin Solutions, Inc.
    Theme made by Freecode