View Single Post
Author Message
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 08-06-2018 , 03:40   [CS:GO] Custom Music-Kits
Reply With Quote #1

Description:
Before i was looking for something like this but i haven't found one so i created one.

This plugin will basically catch several events and play musics to client, events like planting the bomb, taking a hostage, last 10 seconds to bomb explosion or last round's 10 seconds, deathcams, MVP sounds , start actions and ...

i don't think this plugins is against valve's rules because all you use is more like custom musics you create your self.

Usage:

Type !cmu in chat to use the music menu.

ConVars:

sm_ignore_user_music "0" --> When this is disabled, if a player have a music kit other than valve's default ones, simply the custom music kit will be ignored but if this is enabled, the custom kit will be forced to use whether they have a valid music kit or not.

Configuration:

You have to do 2 things to make the plugin work properly:
1- You need to setup a new section for plugins's database in sourcemod/configs/database.cfg under the name MusicKits:

Code:
"Databases"
{
	"driver_default"		"mysql"
	
	// When specifying "host", you may use an IP address, a hostname, or a socket file path
	
	"default"
	{
		"driver"			"default"
		"host"				"localhost"
		"database"			"sourcemod"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
	
	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}
	
	"MusicKits"
	{
		"driver"			"sqlite"
		"database"			"MusicKits"
	}

	"clientprefs"
	{
		"driver"			"sqlite"
		"host"				"localhost"
		"database"			"clientprefs-sqlite"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
}
2- You need to properly configure music.txt to let the plugin work it's way, to do so you will need to set several music's path for the plugin to play:

Code:
"musics"
{
	"MusicKit_Manse"
	{
		"name"					"I'm Not The One | Manse Remix"
		"Bomb_Planted" 			"music_kits_custom\Manse\bombplanted.mp3"
		"Bomb_TenSeconds"		"music_kits_custom\Manse\bombtenseccount.mp3"
		"RoundEnd_Lost"			"music_kits_custom\Manse\lostround.mp3"
		"RoundEnt_Won"			"music_kits_custom\Manse\wonround.mp3"
		"RoundStart_Action"		"music_kits_custom\Manse\startaction.mp3"
		"Round_TenSeconds"		"music_kits_custom\Manse\roundtenseccount.mp3"
		"Round_MVP"				"music_kits_custom\Manse\chooseteam.mp3"
		"Deathcam"				"music_kits_custom\Manse\deathcam.mp3"
	}
}
Notes:
- You need to use a custom file downloader/precacher because the plugin will not do it automatically.
- Feel free to report bugs or ask for new features if you want.

Quote:
Change logs:

* 8/6/2018
- Initial Release

* 8/9/2018
- Added a new convar "sm_ignore_user_music 0" (info in description)
- Fixed audio overlapping (valve's and the custom one)

* 8/10/2018
- Fixed serveral issues caused by adding the new convar such as MVP sound was not playing in some cases and etc
Quote:
Downloadable MusicKits:
Heart Of Steel | Bright Lights
Don't Stop | Sartek
Attached Files
File Type: zip CustomMusicKits 1.4.4.zip (6.41 MB, 564 views)
File Type: zip CustomMusicKits 1.4.5.zip (6.41 MB, 361 views)
File Type: zip CustomMusicKits 1.4.5 fix3.zip (6.41 MB, 1394 views)
__________________

Last edited by ambn; 08-10-2018 at 03:27.
ambn is offline