Description:
Plays music to everyone during warmup.
Requested here:
https://forums.alliedmods.net/showthread.php?t=338176
Requirements:
SourceMod 1.11+
Installation:
Put all files from the release package in your game root folder ("csgo").
- Reload map.
If the plugin is not working as intended, check logs in addons/sourcemod/logs and post them here.
If error logs are not available, report nevertheless.
Configuration:
Plugin will generate config file in cfg/sourcemod:
PHP Code:
// Delay for when to play music in case you use plugins which play sound when you joined and because we need a delay nevertheless.
// Also: Delay should be a minumum of 3.0.
// -
// Default: "3.0"
sm_warmup_music_delay "3.0"
// You can define here what the command name is to open the Warmup Music Menu.
// -
// Default: "wmenu"
sm_warmup_music_menu "wmenu"
// You can define here what the command name is to toggle warmup music.
// -
// Default: "wmtoggle"
sm_warmup_music_toggle "wmtoggle"
Also: You will find in addons/sourcemod/configs a config file for soundlist configuration.
Translation:
If you will, and the translation to be used does not exist, you can upload the file in a reply.
Credits:
-
DON JJF: It is the idea of DON JJF.
Changelog:
Code:
- v1.0
- v1.1- Added Delay for when to start music;
- Added !stopwm command for the client to music sound when feeling so.
- v1.2- Added Random Mode: Picks random song from configs/warmup_music.txt file each warmup if enabled;
- Added the ability for clients to change volume via command;
- Added the ability to change command names to suit ones needs;
- Added translation for various notifications;
- Added cfg file (cfg/sourcemod) in package;
- Added folder in sound/;
- Added installation instruction;
- v1.3- Added toggle (turn on/off music, plays random track when toggled on);
- Added Menu for choosing volume, tracks and turning on/off;
- Added clientprefs support (saves volume of choice via cookie);
- Added support for random mode only since old method is obsolete;
- v1.4- v1.5- Various fixes (should now work as intended).