Raised This Month: $168 Target: $400
 42% 

Death Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Keksmampfer
Junior Member
Join Date: Apr 2009
Plugin ID:
1147
Plugin Version:
0.5.3
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Plays a random sound to the dieing player or at the position where the player died.
    Old 09-08-2009 , 13:09   Death Sound
    Reply With Quote #1

    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:


    1. Download and paste the deathsound.smx to /sourcemod/plugins/
    2. On updating delet "cfg/sourcemod/plugin.deathsound.cfg"
    3. Put the deathsound.txt into your "/sourcemod/configs" folder.
    4. Load the plugin with a mapchange or "sm plugins load deathsound".
    5. Edit the configfile"cfg/sourcemod/plugin.deathsound.cfg" and the soundlist "/sourcemod/configs/deathsound.txt". 10 sounds are maximum.
    6. Upload the sounds to the server and optionally to the fast download server.=)
    7. 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.
    Attached Files
    File Type: txt deathsound.txt (199 Bytes, 1114 views)
    File Type: sp Get Plugin or Get Source (deathsound.sp - 2194 views - 8.7 KB)
    File Type: rar Deathsound Sample.rar (820.2 KB, 2668 views)
    __________________
    My Plugins: Death Sound

    Last edited by Keksmampfer; 10-22-2009 at 02:27.
    Keksmampfer is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-11-2009 , 14:07   Re: Death Sound
    Reply With Quote #2

    Missing something eh ?
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni is offline
    Keksmampfer
    Junior Member
    Join Date: Apr 2009
    Old 09-11-2009 , 15:52   Re: Death Sound
    Reply With Quote #3

    ahh sry i forgot
    __________________
    My Plugins: Death Sound

    Last edited by Keksmampfer; 09-17-2009 at 17:39.
    Keksmampfer is offline
    Black Haze
    BANNED
    Join Date: Sep 2008
    Location: Hamsterdam
    Old 09-14-2009 , 20:19   Re: Death Sound
    Reply With Quote #4

    Placed the sounds in cstrike/sounds/bwdeath/death1.wav > death6.wav.
    Config line is: sm_deathsound_soundlist "bwdeath/death1.wav;bwdeath/death2.wav;bwdeath/death3.wav;bwdeath/death4.wav;bwdeath/death5.wav;bwdeath/death6.wav"

    Still, doesn't work. Could you be a tad more precise about where to put the files? Plugin is loaded btw, and the default files are played.

    Also, do other people hear the deathsounds, or only the dying? (And if so, could you make it so everyone hears the sound, with a cvar or something?)

    Last edited by Black Haze; 09-14-2009 at 20:22.
    Black Haze is offline
    Keksmampfer
    Junior Member
    Join Date: Apr 2009
    Old 09-17-2009 , 17:27   Re: Death Sound
    Reply With Quote #5

    Look first post. I think i added all the features and uploaded an example.
    Can you test ist?
    It works fine on my dedicated server, but only with one person .
    __________________
    My Plugins: Death Sound

    Last edited by Keksmampfer; 09-17-2009 at 17:38.
    Keksmampfer is offline
    Black Haze
    BANNED
    Join Date: Sep 2008
    Location: Hamsterdam
    Old 09-20-2009 , 13:46   Re: Death Sound
    Reply With Quote #6

    Will not play, again Even with the example. Plugin is loaded...
    Btw when I looked tru the code it seems as if you just play the sound to every player in the game, no matter where they are on the map. How about spawning an env_sound temporarily on the coords where the player died, and playing sound tru that?
    Black Haze is offline
    Keksmampfer
    Junior Member
    Join Date: Apr 2009
    Old 09-24-2009 , 12:59   Death Sound
    Reply With Quote #7

    Hi,
    i dont know why, but the soundlist loads at the 2nd reload?!?!.
    I think i should use key values. maybe this fixes the problem.
    No, the right player heare the sound , i checked that.
    __________________
    My Plugins: Death Sound

    Last edited by Keksmampfer; 09-24-2009 at 13:48.
    Keksmampfer is offline
    Black Haze
    BANNED
    Join Date: Sep 2008
    Location: Hamsterdam
    Old 09-25-2009 , 10:42   Re: Death Sound
    Reply With Quote #8

    Yes the players DO hear the sound, but it's played from their perspective.
    For instance, if you die, and I'm on the other end of the map, I hear you die like you're next to me, as opposed to what it should be, from a distance. This is because you let each client play the sound, instead of just emitting one sound from the point where the player died.
    Black Haze is offline
    Keksmampfer
    Junior Member
    Join Date: Apr 2009
    Old 10-18-2009 , 15:51   Re: Death Sound
    Reply With Quote #9

    * 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

    If you find bugs, tell me ;)
    __________________
    My Plugins: Death Sound
    Keksmampfer is offline
    StrikerMan780
    AlliedModders Donor
    Join Date: Jul 2009
    Location: Canada
    Old 10-19-2009 , 04:15   Re: Death Sound
    Reply With Quote #10

    I add the sounds, but it keeps on saying it cannot find them. Oh, by the way, it might be a good idea to add a CVAR to disable HL2: DM Default death sounds in favor of the ones provided by the plugin.
    __________________

    Last edited by StrikerMan780; 10-19-2009 at 04:33.
    StrikerMan780 is offline
    Send a message via Skype™ to StrikerMan780
    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 09:27.


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