AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2/(ANY?)] Custom Sounds [BETA V0.3] (https://forums.alliedmods.net/showthread.php?t=227259)

Arkarr 09-29-2013 06:09

[TF2/(ANY?)] Custom Sounds [BETA V0.3]
 
9 Attachment(s)

Description & Features :

Like the title say, this plugin allow you to change sounds with your own sounds or sound who already exist.

Features :
- Download (beta) and precache sounds for you !
- Fully editable using the configuration file
- Restricted to admin only (can override command for everyone)
- Sounds can be played through native voice menu !

Bugs :

Note :
This is a beta realese. There is probably a lot of bugs.
NOTE: Looping sounds seems buged. Will fix it.

Commands & Cvar :


Command

----------[Admin flag is cheat]----------
sm_customsounds, !customsounds, /customsounds --> Activing custom sounds
sm_cs, !cs, /cs --> same as above
sm_cuso, !cuso, /cuso --> same as above

Cvar

sm_customsounds_debug "0" --> set to 1 to see wich sound is playing now.
sm_customsounds_auto_load "0" --> Set to 1 to activate the custom sounds directly after joining server. WARNING: It will activate even if the player don't have access to 'sm_customsounds' !

Configuration :

In this section we will see how we can configure the plugin.

This is how CustomSounds.cfg work :
PHP Code:

"CustomSounds" //Don't change this.
{
    
"1" //Index of sounds, always but a different value for each sounds
    
{
        
"original_sound"   "sniper_no01.wav"  //name of sound, set sm_customsounds_debug "1" to see the name of sound. The sound here is played when sniper say "no"
        
"custom_sound"   "vo/halloween_merasmus/sf12_headbomb_hit01.wav" //Path to the custom sound, here we will play a Merasmus sound.
        
"volume"         "1.0" //Volume, max value is 1.0 min value is 0.0
        
"looping"         "0"   //Should the sound loop ? set to 1 if yes, or 0 if it doesn't. BUGGED ! Need to be fixed
        
"time_of_loop"     "0"   //Time of the sound. Only put something here if sound "looping" is to 1.
    
}

        
//Exemple :
    
"2"
    
{
        
"original_sound"   "sniper_no02.wav"
        "custom_sound"   "vo/halloween_merasmus/sf12_headbomb_hit02.wav"
        "volume"         "1.0"
        "looping"         "0"
        "time_of_loop"     "0"
    
}


Installation :


1) Put CustomSounds.smx in your plugin folder : sourcemod/plugins
2) Put CustomSounds.cfg in your config folder : sourcemod/config
3) Restart server, reload map or reload plugins folder.

Require morecolors to compile.

Request and think to do :

Feel free to ask.
Thanks to :

Everyone who helped me.

Logs

V0.1 BETA: First public release. Still in beta (SMX download : 58, Source download : 62)
V0.2 BETA: Added a cvar to activate custom sounds when player join.
V0.3 BETA: Parse config into a array, no more lags.

luki1412 10-29-2013 20:28

Re: [ANY] Custom Sounds [BETA V0.1]
 
Looks good. I will test this one.

Arkarr 10-30-2013 13:11

Re: [ANY] Custom Sounds [BETA V0.1]
 
Quote:

Originally Posted by luki1412 (Post 2054400)
Looks good. I will test this one.

Thanks for feedback. Also, I must to update it as fast as I could.

xyrx 11-26-2013 09:45

Re: [ANY] Custom Sounds [BETA V0.1]
 
Would this be able to play sounds for all players to hear?

I'm looking for something to play a sound to all players when someone gets a backstab kill in TF2.

Arkarr 11-26-2013 11:25

Re: [ANY] Custom Sounds [BETA V0.1]
 
Quote:

Originally Posted by xyrx (Post 2065591)
Would this be able to play sounds for all players to hear?

I'm looking for something to play a sound to all players when someone gets a backstab kill in TF2.

Of course ! Otherwise this plugin have no-sense :)

you can use sm_customsounds_debug "1" to see wich sounds is playing.

robotortoise 02-08-2014 14:45

Re: [ANY] Custom Sounds [BETA V0.1]
 
Okay, so this plugin's functionality can be replicated easily.
You can just drag game_sounds.txt, game_sounds.txt, game_sounds_vo.txt, and throw them into tf/custom/mycustomstuff/scripts and alter any references to sound files and you can change the sound.

Arkarr 02-08-2014 15:59

Re: [ANY] Custom Sounds [BETA V0.1]
 
Quote:

Originally Posted by robotortoise (Post 2097453)
Okay, so this plugin's functionality can be replicated easily.
You can just drag game_sounds.txt, game_sounds.txt, game_sounds_vo.txt, and throw them into tf/custom/mycustomstuff/scripts and alter any references to sound files and you can change the sound.

And this will work for all clients ? And you can't unload/load custom sounds without re-editings all files again and again...

B_CANSIN 02-08-2014 16:45

Re: [ANY] Custom Sounds [BETA V0.1]
 
Can we use it path for orginal sound ( because sometimes names could be same hmm mmh) If we can you are awesome if we could its okey you are still awesome to made this ^ ^ ( Because I hate editing scripts for that changing sounds so you saved me ^ ^)

Arkarr 02-09-2014 04:11

Re: [ANY] Custom Sounds [BETA V0.1]
 
Quote:

Originally Posted by B_CANSIN (Post 2097534)
Can we use it path for orginal sound ( because sometimes names could be same hmm mmh) If we can you are awesome if we could its okey you are still awesome to made this ^ ^ ( Because I hate editing scripts for that changing sounds so you saved me ^ ^)

Nope, we can't. BUT you can edit your sounds like this :
1) List of sounds :
sniper_no02.wav -> original sound
sniper_no02.wav -> custom sound but have same name
2) Edit sounds name :
sniper_no02.wav -> orignal sound, don't edit the name
sniper_no02.wav -> custom sounds, edit it and add something like : sniper_no02_CUSTOM.wav
3) Put the sounds in config file :
PHP Code:

    //Exemple : 
    
"2" 
    

        
"original_sound"   "sniper_no02.wav" 
        "custom_sound"   "PATH/TO/THE/SOUND/sniper_no02_CUSTOM.wav" 
        "volume"         "1.0" 
        "looping"         "0" 
        "time_of_loop"     "0" 
    


4) The plugin will precache and download the sound for you, your are done!

Delfy 02-19-2014 15:06

Re: [ANY] Custom Sounds [BETA V0.1]
 
Hey! I really happy use this plugin, but i have alot of problems and quastions. So, lets start:
1. How can i make this plugin load automaticly (now i need every time load it by write command in console)?
2. I really want use this plugin to play my own sentry sounds. But it seems, this plugin replace sounds only for admin. How can i make this plugin replace sounds for all other people? (i know admin overrides, but again, everyone need to write command in chat, how to make it automaticly, after start server?)
3. This plugin cant replace music, and all other non-player sounds. Please, add all sounds replace support to your plugin, i really want to use it. Thanks, waiting answer.


All times are GMT -4. The time now is 18:05.

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