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

[ANY] Disco Mod! *Updated: 2/26/13


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Mitchell
~lick~
Join Date: Mar 2010
Plugin ID:
2840
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    25 
    Plugin Description:
    Makes a disco ball over an admin and plays music!
    Unapprover:
    Reason for Unapproving:
    unsupported per author request
    Old 03-16-2012 , 21:28   [ANY] Disco Mod! *Updated: 2/26/13
    Reply With Quote #1

    Description:
    If you may have noticed on event scripts there is a disco mod, well im here to tell you that i made that 2x better, with better effects, and better music playing! What i have done is that you can set up to 30 songs in a config file, with this it uses the MOTD panel function, so there's no reason you would need to make clients download large mp3's for something to simple.




    How it works:
    1. Admin (with specified flag type's !discomenu)
    2. The Disco Menu comes up
    3. Select Start Disco
    4. Pick a song, which the installer defines.
    5. Above the admin's head popups a disco ball!
    6. GO back to the menu and push Stop Disco to stop the disco
    7. Or Type motd in chat to turn off your personal music.
    ConVars: (must reload the config if changed mid game)
    DO NOT TOUCH UNLESS YOU KNOW WHAT YOU'RE DOING.

    sm_disco_custommodel - Default "models/roller_spikes.mdl", Set this to a model that will be the disco ball.
    sm_disco_zoffset - Default "0.0", Offset on the Z pos for the lights..
    sm_disco_rotation - Def: "11.25 0.0 11.25", Rotation of the ball.

    Custom Model (S-Low's Disco Ball) Cvars:
    sm_disco_custommodel "models/props/slow/spiegelkugel/slow_spiegelkugel.mdl"
    sm_disco_zoffset "42.0"
    sm_disco_rotation "0.0 11.25 0.0"
    PUT THESE IN YOUR: cfg/sourcemod/plugin.disco.cfg

    Please NOTE THAT YOU NEED TO USE THIS PLUGIN FOR DISCOBALL TO DOWNLOAD TO THE CLIENTS: SM DOWNLOADER


    Current Bugs: (that cant be fixed!)
    • Connecting Late will not play the song to that player
    • If a player is looking at the motd, the page will change.
    • If a player goes to a page it will stop the music
    Commands:
    sm_disco_reloadconfig - Reloads the musicconfig.cfg, with out reloading the plugin. Also recache's the cvars

    Todo:
    1. Make the config file compatible with songs in the local directory.
    2. I tried to add FOG like in the other script, but couldnt get it to work, every where else is abandoned subject, any suggestions on the fog idea?
    3. ?? Suggestions?
    CONFIG FILE TUTORIAL:
    Please Note if you do not want a sound with version 0.1.7 you dont have to have a config file. and it will not play any music.

    The Config file must be saved in the sourcemod/config folder as: musicconfig.cfg

    Code:
    "MusicConfig"
    {
        "DJ Fresh - Gold Dust"
        {
            "path"                "mikes-revenge.net/sandboxx/music/index.php?id=gold_dust.mp3"
        }
        "Skrillex - Cinema"
        {
            "path"                "mikes-revenge.net/sandboxx/music/index.php?id=cinema.mp3"
        }
        "Example - Kickstarts"
        {
            "path"                "mikes-revenge.net/sandboxx/music/index.php?id=Kickstarts.mp3"
        }
    }
    Also i included the webpage i use on my site. Just place it in the site, and then use yoursite.com/disco/index.php?id=SONGNAME.mp3 in the config.
    Link Below

    Credits:
    DoctorMcKay, Even with out asking i used his url for his music
    Fearts, Gave me the idea to re-write the script into sourcemod.

    Changes:
    Code:
    2/26/13 = 1.0.0: Deleted excess stuff, fixed some precache errors, made more cvars.
    6-27-12 = 0.3.0: Deleted most of the removing of the handles, should work fine now i tested it several time witch changing the maps
    4-5-12 = 0.2.0: Fixed a invalid handle error.
    3-18-12 = 0.1.9: Added sm_disco_reloadconfig command.
    3-17-12 = 0.1.8: Added stopmusic command, and also added the custom model built in Added "No song" to the menu.
    3-17-12 = 0.1.7: Lol on the version update and the update date.. anyways i added the function of not needing the config file for songs.
    3-16-12 = 0.1.6: Fixed an error on the menu cause i cant code when im tired.
    3-16-12 = 0.1.5: added round_end hook, so it would make sure to remove the timer.
    3-16-12 = 0.1.4: Fixed the menu crashing, also made it so it finds the ceiling but if its too high then it will create it 312 units above the player, and all lasers point down now, not going up.
    3-16-12 = 0.1.3: Fixed the Disco ball crashing the server, cause it technically existed but not physically.
    3-16-12 = 0.1.2: Fixed the menu not wanting to close.
    3-16-12 = 0.1.1: Changed !disco to !discomenu, might have conflicted with funcommand plugin.
    DOWNLOAD:
    Attached Files
    File Type: zip S-LoW - Disco Ball.zip (342.3 KB, 1888 views)
    File Type: cfg musicconfig.cfg (340 Bytes, 1819 views)
    File Type: zip Website.zip (7.4 KB, 1579 views)
    File Type: sp Get Plugin or Get Source (disco.sp - 3047 views - 11.9 KB)

    Last edited by Mitchell; 02-26-2013 at 18:16. Reason: Fixed some bugs
    Mitchell is offline
     



    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 14:20.


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