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:
Admin (with specified flag type's !discomenu)
The Disco Menu comes up
Select Start Disco
Pick a song, which the installer defines.
Above the admin's head popups a disco ball!
GO back to the menu and push Stop Disco to stop the disco
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:
Make the config file compatible with songs in the local directory.
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?
?? 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
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:
Last edited by Mitchell; 02-26-2013 at 18:16.
Reason: Fixed some bugs