AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Hit & Kill Sounds [1.2a] [05/06/17] (https://forums.alliedmods.net/showthread.php?t=298169)

freddddd 06-03-2017 16:49

[ANY] Hit & Kill Sounds [1.2a] [05/06/17]
 
1 Attachment(s)
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

MithatGuner 06-03-2017 16:52

Re: Hit & Kill Sounds
 
Good Job :)

freddddd 06-04-2017 05:36

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

lTruba 06-04-2017 06:32

Re: [ANY] Hit & Kill Sounds
 
It needs a Menu like !hitsound

freddddd 06-04-2017 07:24

Re: [ANY] Hit & Kill Sounds
 
Quote:

Originally Posted by lTruba (Post 2525971)
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 06-05-2017 14:02

1.2 release
 
[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.

freddddd 06-05-2017 14:47

Re: [ANY] Hit & Kill Sounds [1.2] [05/06/17]
 
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.

freddddd 06-05-2017 16:22

1.2a release
 
[04/06/2017] 1.2a - Forgot to put in a check for empty client cookies

NOTORIOUS7302 12-26-2020 23:44

Re: [ANY] Hit & Kill Sounds [1.2a] [05/06/17]
 
Thanks so much for this! Now I can finally add the CSGO kill sounds!

duzzzstar 05-09-2021 05:49

Re: [ANY] Hit & Kill Sounds [1.2a] [05/06/17]
 
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.


All times are GMT -4. The time now is 03:13.

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