View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-16-2011 , 20:15   Re: Mapchooser Extended Sounds (Updated 2011-05-15)
Reply With Quote #4

Version 1.2 released. You will need to download the entire set again, as the configuration file has had some changes.

I realized I didn't like the idea of having to edit sounds.cfg to add new sound sets... so now you don't.

Each sound set should now have its own cfg file, structured like this example for the hl1 set:

Code:
"MapchooserSoundsList"
{
    "hl1"
    {
        "counter"
        {
            "1"
            {
                "sound"            "sourcemod/mapchooser/hl1/one.wav"
            }    
            "2"
            {
                "sound"            "sourcemod/mapchooser/hl1/two.wav"
            }    
            "3"
            {
                "sound"            "sourcemod/mapchooser/hl1/three.wav"
            }    
            "4"
            {
                "sound"            "sourcemod/mapchooser/hl1/four.wav"
            }    
            "5"
            {
                "sound"            "sourcemod/mapchooser/hl1/five.wav"
            }    
            "6"
            {
                "sound"            "sourcemod/mapchooser/hl1/six.wav"
            }    
            "7"
            {
                "sound"            "sourcemod/mapchooser/hl1/seven.wav"
            }    
            "8"
            {
                "sound"            "sourcemod/mapchooser/hl1/eight.wav"
            }    
            "9"
            {
                "sound"            "sourcemod/mapchooser/hl1/nine.wav"
            }    
            "11"
            {
                "sound"            "sourcemod/mapchooser/hl1/ten_seconds.wav"
            }    
            "20"
            {
                "sound"            "sourcemod/mapchooser/hl1/twenty_seconds.wav"
            }    
            "30"
            {
                "sound"            "sourcemod/mapchooser/hl1/thirty_seconds.wav"
            }    
            "60"
            {
                "sound"            "sourcemod/mapchooser/hl1/sixty_seconds.wav"
            }    
        }
        "vote start"
        {
            "sound"            "sourcemod/mapchooser/hl1/startyourvoting.mp3"
        }
        "vote end"
        {
            "sound"            "sourcemod/mapchooser/hl1/endofvote.mp3"
        }
        "vote warning"
        {
            "sound"            "sourcemod/mapchooser/hl1/bell_warning.wav"
        }
        "runoff warning"
        {
            "sound"            "sourcemod/mapchooser/hl1/gman_choose2.wav"
        }
    }
}
Note that the counter numbers can be anything from 1-60 (or 0, but use the "vote start" sound there instead).

These sound configurations go in addons/sourcemod/configs/mapchooser_extended/sounds/

The old sounds.cfg is now ignored, and you can delete it.

Be warned: In the current build, if you have two configuration files with the same set name, the plugin will stop loading. This is intentional, as it's not clear whether it should skip or overwrite the original contents. You will have to clear the error by removing or renaming one of the set names and reload the plugin to get it working again.

sm_mapvote_list_soundsets is a new admin command that will let anyone with the Cvars admin flag see which sound sets are loaded. This can be overridden in the SourceMod Overrides.

Edit: I may look into making builtin sets for HL2: Deatmatch, Counter-Strike:Source, and Day of Defeat: Source. Thanks Valve for giving me a copy of every game you make for finding all 36 potatoes.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-17-2011 at 15:50.
Powerlord is offline