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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
3928
Plugin Version:
BETA 0.3
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow to remplace sounds, works for some weapons too.
    Old 09-29-2013 , 06:09   [TF2/(ANY?)] Custom Sounds [BETA V0.3]
    Reply With Quote #1

    Custom sounds V0.3 BETA


    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.
    Attached Files
    File Type: smx CustomSounds.smx (13.3 KB, 861 views)
    File Type: cfg CustomSounds.cfg (384 Bytes, 1201 views)
    File Type: sp Get Plugin or Get Source (CustomSounds.sp - 740 views - 5.3 KB)
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 01-11-2015 at 14:00. Reason: Added some infos.
    Arkarr is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 10-29-2013 , 20:28   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #2

    Looks good. I will test this one.
    __________________
    luki1412 is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 10-30-2013 , 13:11   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #3

    Quote:
    Originally Posted by luki1412 View Post
    Looks good. I will test this one.
    Thanks for feedback. Also, I must to update it as fast as I could.
    __________________
    Want to check my plugins ?
    Arkarr is offline
    xyrx
    New Member
    Join Date: Nov 2013
    Old 11-26-2013 , 09:45   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #4

    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.
    xyrx is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 11-26-2013 , 11:25   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #5

    Quote:
    Originally Posted by xyrx View Post
    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.
    __________________
    Want to check my plugins ?
    Arkarr is offline
    robotortoise
    Senior Member
    Join Date: Nov 2013
    Old 02-08-2014 , 14:45   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #6

    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.
    robotortoise is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 02-08-2014 , 15:59   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #7

    Quote:
    Originally Posted by robotortoise View Post
    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...
    __________________
    Want to check my plugins ?
    Arkarr is offline
    B_CANSIN
    Senior Member
    Join Date: Aug 2011
    Location: B_CANSIN's SERVERS
    Old 02-08-2014 , 16:45   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #8

    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 ^ ^)
    B_CANSIN is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 02-09-2014 , 04:11   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #9

    Quote:
    Originally Posted by B_CANSIN View Post
    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!
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 02-09-2014 at 04:11.
    Arkarr is offline
    Delfy
    Member
    Join Date: Jul 2013
    Old 02-19-2014 , 15:06   Re: [ANY] Custom Sounds [BETA V0.1]
    Reply With Quote #10

    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.

    Last edited by Delfy; 02-19-2014 at 15:10.
    Delfy 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:56.


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