Raised This Month: $32 Target: $400
 8% 

[ANY] Hit & Kill Sounds [1.2a] [05/06/17]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
freddddd
Junior Member
Join Date: May 2017
Plugin ID:
5646
Plugin Version:
1.2a
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Hit and kill sounds with extended features
    Old 06-03-2017 , 16:49   [ANY] Hit & Kill Sounds [1.2a] [05/06/17]
    Reply With Quote #1

    Features
    • Hit and kill sounds
    • Client and server setting toggles
    • Configurable sound files
    • Configurable volume

    Server console variables [generated to cfg/sourcemod/hitkillsounds/hitkillsounds.cfg on first run]
    • hks_enabled Toggle Hit & Kill Sounds [0 - 1] [1]
    • hks_hitsound Toggle hit sound [0 - 1] [1]
    • hks_hitsound_file Hit sound file [buttons/button15.wav]
    • hks_hitsound_volume Hit sound volume [0.0 - 1.0] [0.80]
    • hks_killsound Toggle kill sound [0 - 1] [1]
    • hks_killsound_file Kill sound file [buttons/button17.wav]
    • hks_killsound_volume Kill sound volume [0.0 - 1.0] [0.80]

    Client setting cookies [can be manipulated via the cookies command]
    • hks_enabled Toggle Hit & Kill Sounds [0 - 1] [1]
    • hks_hitsound Toggle hit sound [0 - 1] [1]
    • hks_hitsound_file Hit sound file [buttons/button15.wav]
    • hks_hitsound_volume Hit sound volume [0.0 - 1.0] [0.80]
    • hks_killsound Toggle kill sound [0 - 1] [1]
    • hks_killsound_file Kill sound file [buttons/button17.wav]
    • hks_killsound_volume Kill sound volume [0.0 - 1.0] [0.80]

    Changes

    [05/06/2017] 1.2a - Forgot to put in a check for empty client cookies
    [05/06/2017] 1.2 - See thread for full change log
    [04/06/2017] 1.1 - Overall minor improvements
    [03/06/2017] 1.0 - Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (hitkillsounds.sp - 2544 views - 7.9 KB)

    Last edited by freddddd; 06-06-2017 at 05:22. Reason: 1.2a release
    freddddd is offline
    MithatGuner
    Member
    Join Date: Sep 2016
    Location: Turkey
    Old 06-03-2017 , 16:52   Re: Hit & Kill Sounds
    Reply With Quote #2

    Good Job
    MithatGuner is offline
    freddddd
    Junior Member
    Join Date: May 2017
    Old 06-04-2017 , 05:36   1.1 release
    Reply With Quote #3

    [04/06/2017] 1.1 - Overall minor improvements

    Last edited by freddddd; 06-04-2017 at 07:28. Reason: fixed date
    freddddd is offline
    lTruba
    Junior Member
    Join Date: Mar 2017
    Old 06-04-2017 , 06:32   Re: [ANY] Hit & Kill Sounds
    Reply With Quote #4

    It needs a Menu like !hitsound
    lTruba is offline
    freddddd
    Junior Member
    Join Date: May 2017
    Old 06-04-2017 , 07:24   Re: [ANY] Hit & Kill Sounds
    Reply With Quote #5

    Quote:
    Originally Posted by lTruba View Post
    It needs a Menu like !hitsound
    I have a menu ready but it needs some more work to have it all neat and user-friendly considering I want to allow clients to also change the volume and hit or kill sound file.

    The next introduction will be client commands and then finally the client settings menu.
    freddddd is offline
    freddddd
    Junior Member
    Join Date: May 2017
    Old 06-05-2017 , 14:02   1.2 release
    Reply With Quote #6

    [05/06/2017] 1.2:

    - Changed server console variables back to their normal names
    - Configuration file is now automatically generated to cfg/sourcemod/hitkillsounds/hitkillsounds.cfg
    - Fixed the volume changing feature which now uses values ranging from 0.0 to 1.0 with a default of 0.80
    - Introduced client setting cookies

    Coming soon

    v1.3 will introduce a settings menu to change all settings. The reason for relocating the configuration file to its own directory is because a sound list configuration file will be made available as well eventually.

    Normally a client will never really change client cookies directly. Right now they have been made available in preparation of the next release where a GUI settings menu will allow changing them.

    However if a player wants to universally configure this plugin on every server that uses it they could for example put this in their autoexec.cfg:

    sm_cookies hks_enabled 0

    By emptying the cookie it will resort back to the server default:

    sm_cookies hks_enabled ""


    Please give me some feedback on my code. I would like to ensure that everything is done properly before I add more code, to ensure I have a clean basis.

    Last edited by freddddd; 06-05-2017 at 14:09.
    freddddd is offline
    freddddd
    Junior Member
    Join Date: May 2017
    Old 06-05-2017 , 14:47   Re: [ANY] Hit & Kill Sounds [1.2] [05/06/17]
    Reply With Quote #7

    A little tutorial, because this means that clients can use custom hit or kill sound files on any server running the plugin:
    1. Download a cool hit sound, like this one: http://hit.tf/showthread.php?tid=977
    2. Put the .wav file in csgo/sound (you can put it in any folder in there)
    3. To make the game recognise the new sound file type this in console: snd_updateaudiocache (only needs to be done when you add or remove files)
    4. Now you can use this custom hit or kill sound on any server running the plugin.
    5. Add to autoexec.cfg: sm_cookies hks_hitsound_file hitsound.wav
    6. You will now have the above hit sound enabled on every server running Hit & Kill Sounds and allowing hit sounds!

    Enjoy.

    Last edited by freddddd; 06-05-2017 at 14:51.
    freddddd is offline
    freddddd
    Junior Member
    Join Date: May 2017
    Old 06-05-2017 , 16:22   1.2a release
    Reply With Quote #8

    [04/06/2017] 1.2a - Forgot to put in a check for empty client cookies
    freddddd is offline
    NOTORIOUS7302
    Member
    Join Date: Nov 2018
    Location: Anonymous
    Old 12-26-2020 , 23:44   Re: [ANY] Hit & Kill Sounds [1.2a] [05/06/17]
    Reply With Quote #9

    Thanks so much for this! Now I can finally add the CSGO kill sounds!
    NOTORIOUS7302 is offline
    duzzzstar
    New Member
    Join Date: Apr 2021
    Old 05-09-2021 , 05:49   Re: [ANY] Hit & Kill Sounds [1.2a] [05/06/17]
    Reply With Quote #10

    Please, add a menu for the clients. I would like to use the plugin, but I wont because its not newbie friendly without the menu.
    duzzzstar 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:51.


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