Thread: Round Songs
View Single Post
Author Message
1Swat2KillThemAll
SourceMod Donor
Join Date: Nov 2009
Old 12-15-2010 , 14:57   Round Songs
Reply With Quote #1

ORIGINAL REQUEST:
[PStar]
Hello to everyone.

I would like to request a plugin that every time a new round start it's chooses a random music from a list (or could be a specified diretorie in the sound flodder). IF the music is short and will end before the round end the plugin should start a new one.
And if it's possible we should be able to set the loudnes of the music whit a cvar.

Thx in forward.
[6th Dec 2010 , 12:30 PM]
CVARS:
sm_roundsongs_version | version cvar
sm_roundsongs_enabled | take an educated guess ;)
COMMANDS:
Admin:
* sm_nextsong | oh gee, I wonder what this would do...
Public:
* sm_music | Turn music on or off (autotoggle)
* sm_soundlevel | Check your current soundlevel, or alter it.
CFG FILE (../cstrike/cfg/sourcemod/roundsongs.kv):
Code:
"RoundSongs"
{
    "Song's name here"
    {
        "file"                "sound's filepath relative to ../cstrike/sound/"
        "duration"            "songlength in seconds (float)"
    }
    "Whole Lotta Rosie - AC/DC"
    {
        "file"                "misc/wholelottarosie.wav"
        "duration"            "324.5"
    }
    "Thunderstruck - AC/DC"
    {
        "file"                "misc/thunderstruck.wav"
        "duration"            "292.5"
    }
    "WanDeage"
    {
        "file"                "misc/wandeage.wav"
        "duration"            "2.0"
    }
}
Attached Files
File Type: sp Get Plugin or Get Source (roundsongs.sp - 2731 views - 7.7 KB)

Last edited by 1Swat2KillThemAll; 12-15-2010 at 18:57.
1Swat2KillThemAll is offline