Raised This Month: $51 Target: $400
 12% 

Round Songs


Post New Thread Reply   
 
Thread Tools Display Modes
Author
1Swat2KillThemAll
SourceMod Donor
Join Date: Nov 2009
Plugin ID:
2126
Plugin Version:
1.000.000
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Spam music to all your clients! :D
    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
    delirium_trigger
    SourceMod Donor
    Join Date: Apr 2009
    Location: Washington
    Old 12-15-2010 , 15:03   Re: Round Songs
    Reply With Quote #2

    People will ask so I am just going to go ahead and ask it first, although I am assuming the answer will be a no because of downloading custom content.

    Does this work with L4D and L4D2?
    delirium_trigger is offline
    1Swat2KillThemAll
    SourceMod Donor
    Join Date: Nov 2009
    Old 12-15-2010 , 15:11   Re: Round Songs
    Reply With Quote #3

    Quote:
    Originally Posted by delirium_trigger View Post
    People will ask so I am just going to go ahead and ask it first, although I am assuming the answer will be a no because of downloading custom content.

    Does this work with L4D and L4D2?
    I wouldnae kno' D:
    But I'll try it out and find out soon enough ;)

    EDIT:
    (L4D2)
    Good news: the server didn't crash.
    Bad news: can't say the same for the clients.

    Last edited by 1Swat2KillThemAll; 12-15-2010 at 15:35.
    1Swat2KillThemAll is offline
    Gecko
    SourceMod Donor
    Join Date: Nov 2010
    Location: Vancouver, Canada
    Old 01-25-2011 , 23:43   Re: Round Songs
    Reply With Quote #4

    Try not to put unhelpful descriptions for the admin commands and cvars. I know they're pretty obvious but some people still might not get it, and that would just pose more problems.
    Gecko is offline
    1Swat2KillThemAll
    SourceMod Donor
    Join Date: Nov 2009
    Old 01-26-2011 , 16:38   Re: Round Songs
    Reply With Quote #5

    Quote:
    Originally Posted by Gecko View Post
    Try not to put unhelpful descriptions for the admin commands and cvars. I know they're pretty obvious but some people still might not get it, and that would just pose more problems.
    More problems? Might I inquire as to what problems there were in the first place then?
    1Swat2KillThemAll is offline
    Gecko
    SourceMod Donor
    Join Date: Nov 2010
    Location: Vancouver, Canada
    Old 01-29-2011 , 21:46   Re: Round Songs
    Reply With Quote #6

    Quote:
    Originally Posted by 1Swat2KillThemAll View Post
    More problems? Might I inquire as to what problems there were in the first place then?
    People who have problems with understanding simple cvars like that would probably have other problems with understanding the plugin as well. Come on man, think before you post.
    Gecko is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 04-03-2012 , 11:49   Re: Round Songs
    Reply With Quote #7

    you have the config file, right? CFG FILE (../cstrike/cfg/sourcemod/roundsongs.kv)

    Make sure the file exists and is in the correct format - If you have linux, sometimes you have to do something special to the file depending on how you created it.
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    loki15
    Senior Member
    Join Date: Apr 2012
    Location: Ukraine
    Old 04-03-2012 , 12:03   Re: Round Songs
    Reply With Quote #8

    I have Windows Server 2003 and the config file from the plugin itself is not created, I created it myself and put it in the way: cstrike / cfg / sourcemod / roundsongs.kv
    the contents of the config:
    Code:
    RoundSongs"
    {
        "treck1"
        {
            "file"                "playod_sounds/music/treck1.mp3"
            "duration"            "175"
        }
        "treck2"
        {
            "file"                "playod_sounds/music/treck2.mp3"
            "duration"            "208"
        }
        "treck3"
        {
            "file"                "playod_sounds/music/treck3.mp3"
            "duration"            "139"
        }
        "treck4"
        {
            "file"                "playod_sounds/music/treck4.mp3"
            "duration"            "154"
        }
    }
    Then run the server and still this error is that the above written.

    Last edited by loki15; 04-03-2012 at 12:04.
    loki15 is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 04-03-2012 , 12:07   Re: Round Songs
    Reply With Quote #9

    I'm tempted to rewrite this with support for SoundInfoLib so you no longer have to specify the time in seconds.
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 04-03-2012 at 12:10.
    Powerlord is offline
    loki15
    Senior Member
    Join Date: Apr 2012
    Location: Ukraine
    Old 04-03-2012 , 12:12   Re: Round Songs
    Reply With Quote #10

    Quote:
    Originally Posted by Powerlord View Post
    I'm tempted to rewrite this with support for SoundInfoLib so you no longer have to specify the time in seconds.
    If it is possible to rewrite it for CS: S would be very grateful!
    loki15 is offline
    Reply



    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 16:02.


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