Monthly Target: $400 Donations: $23
 5% 

Damage Sound v2.1 (aka hitsound)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Plugin ID:
1071
Plugin Version:
2.1
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Approver:
    Plugin Description:
    With this plugin a player hears a sound if he damaged another player.
    Servers with this Plugin:
     
    Old 08-06-2009 , 19:38   Damage Sound v2.1 (aka hitsound)
    Reply With Quote #1

    Damage Sound
    You hear a sound when you hit/damage an other player!

    Description:
    • With this plugin a player hears a sound if he damaged another player.
    • You can configure it to pitch (higher/brighter) a sound higher on multiple hits to indicate multiple hits *derp*.
    • Every player can choose to disable this plugin or change its settings with the chat command: !settings or !hitsound.
    • You can change the sound played with a console variable.
    Requirements for server admins:
    • Sourcemod 1.5 or higher (currently I'm using snapshots )
    Requirements for developers:
    • Sourcemod 1.5 or higher (currently I'm using snapshots )
    • Git & github.com account etc.
    • SMLIB:feature-pluginmanager (just clone the damage-sound repo, it contains the latest version)
    Known Issues:
    https://github.com/bcserv/damage-sound/issues
    How to report issues:
    Please, search what you'd like to report here first: https://github.com/bcserv/damage-sound/issues
    You can't find it? Then continue to read the following - lets call it guide lines.
    1. What game are you running the plugin on. (CSS, HL2DM, TF2, etc...)
    2. What the problem is:
      • The server is crashing, lagging, etc.
      • The plugin isn't loading.
      • The plugin isn't working as you expect it.
      • ...
    3. Optional: What the server console prints, when you type the following into it without "" (if you can't access the server console directly use HLSW):
      1. "plugin_print"
      2. "meta list"
      3. "sm plugins list"
      4. "sm exts list"
    4. Search the latest error log (<moddir>/addons/sourcemod/logs/error_xxxxxx.log) that contains an error about this plugin.
    Changelog:
    https://github.com/bcserv/damage-sound/commits/master
    Plugin console variables:
    Code:
    sm cmds damagesound
    [SM] Listing 3 commands for: Damage Sound
               [Name]               [Type]       [Help]
               sm_damagesound       console      Shows the damagesound menu
               sm_damagesound_test  admin        Creates a hurt event of the game engine to test the damage sound
               sm_hitsound          console      Shows the damagesound menu
    Plugin console variables:
    Code:
    sm cvars damagesound
    [SM] Listing 9 convars for: Damage Sound
               [Name]                           [Value]
               damagesound_actonweapon          
               damagesound_client_enable        1
               damagesound_client_pitch         0
               damagesound_client_pitch_time    2.0
               damagesound_client_volume        70
               damagesound_delay                0.0
               damagesound_enable               1
               damagesound_path                 buttons/button10.wav
               damagesound_version              2.0
    Source code and versions:
    https://github.com/bcserv/damage-sound
    Download:
    https://github.com/bcserv/damage-sound/releases
    Installation:
    Drag and drop the .smx file into your plugins folder (addons/sourcemod/plugins)
    Credits:
    [foo] bar - he came up with the idea and the code for allowing only defined weapons to play a sound

    Last edited by Chanz; 10-15-2013 at 13:36.
    Chanz is offline
    TheSpyHunter
    Senior Member
    Join Date: Jul 2009
    Old 08-07-2009 , 12:44   Re: Damage Sound
    Reply With Quote #2

    and what sound would this be? can you tell it what sound to play in sourcemod.cfg?
    TheSpyHunter is offline
    Chanz
    Veteran Member
    Join Date: Aug 2008
    Location: Germany - Stuttgart
    Old 08-07-2009 , 12:56   Re: Damage Sound
    Reply With Quote #3

    woops its the
    buttons/button10.wav

    standard hl2 sound. I'll add a convar as soon as possible.
    Chanz is offline
    Chanz
    Veteran Member
    Join Date: Aug 2008
    Location: Germany - Stuttgart
    Old 08-16-2009 , 06:32   Re: Damage Sound
    Reply With Quote #4

    updated to 1.1.4 see first post for changelog

    Last edited by Chanz; 08-16-2009 at 06:43.
    Chanz is offline
    Whosat
    Senior Member
    Join Date: Nov 2007
    Location: Singapore
    Old 08-16-2009 , 10:28   Re: Damage Sound
    Reply With Quote #5

    Would this be something like the mod Dystopia's hitsounds?
    __________________
    Whosat is offline
    Chanz
    Veteran Member
    Join Date: Aug 2008
    Location: Germany - Stuttgart
    Old 08-16-2009 , 15:51   Re: Damage Sound
    Reply With Quote #6

    jup thats like dystopia's hit sounds, but I did not insert the support for the pitch... I mean in dystopia the hitsound gets piched up with each more hit. If you like than I add it and link it to a convar...
    Chanz is offline
    Whosat
    Senior Member
    Join Date: Nov 2007
    Location: Singapore
    Old 08-19-2009 , 06:13   Re: Damage Sound
    Reply With Quote #7

    Wow if its possible then I'm sure no one minds hehe

    Although for l4d you'll probably have to get all the total dmg done for that shot since shotguns and rifles can blast many infected at once. :O
    __________________
    Whosat is offline
    Chanz
    Veteran Member
    Join Date: Aug 2008
    Location: Germany - Stuttgart
    Old 08-20-2009 , 13:10   Re: Damage Sound
    Reply With Quote #8

    updated to 1.3.23 see first post for changelog.

    (added the dystopia hitsound effect)
    Chanz is offline
    Dominator
    Senior Member
    Join Date: Mar 2008
    Old 09-02-2009 , 01:30   Re: Damage Sound
    Reply With Quote #9

    This plugin is great and we use it on our TF2 server due to the lag issues. Would it be possible to make it so that a user can turn the sound off themselves if they dislike this feature?
    __________________
    Dominator is offline
    Chanz
    Veteran Member
    Join Date: Aug 2008
    Location: Germany - Stuttgart
    Old 09-02-2009 , 05:49   Re: Damage Sound
    Reply With Quote #10

    yeah sure I would add a menu like the quakesound plugin has. (on/off,volume,more options...)
    Chanz 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 08:19.


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