AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Custom Music-Kits (https://forums.alliedmods.net/showthread.php?t=309750)

ambn 08-06-2018 03:40

[CS:GO] Custom Music-Kits
 
3 Attachment(s)
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

rogeraabbccdd 08-06-2018 04:15

Re: [CS:GO] Custom Music-Kits
 
Thanks for make my dream come true.:bacon!::bacon!::bacon!:
https://forums.alliedmods.net/showthread.php?t=274478

ambn 08-06-2018 04:58

Re: [CS:GO] Custom Music-Kits
 
You're welcome!
Great to see someone likes my work :D
Tell me if anything is missing

Deadhuntz 08-06-2018 12:58

Re: [CS:GO] Custom Music-Kits
 
weeehhhhhh

Hallucinogenic Troll 08-06-2018 17:51

Re: [CS:GO] Custom Music-Kits
 
Really nice work :bacon!:

And tbh, I believe it's not against Valve's Rule since - https://forums.alliedmods.net/showpo...&postcount=121

ambn 08-08-2018 00:59

Re: [CS:GO] Custom Music-Kits
 
1 Attachment(s)
Okay, i've decided to share my own created music kits to you guys time by time, so here's the first one!
You can share yours too if you liked too.

Quote:

Files:
Code:

"musics"
{
        "MusicKit_Bright"
        {
                "name"                                "Heart Of Steel | Bright Lights"
                "Bomb_Planted"                        "music_kits_custom\Bright\bombplanted.mp3"
                "Bomb_TenSeconds"                "music_kits_custom\Bright\bombtenseccount.mp3"
                "RoundEnd_Lost"                        "music_kits_custom\Bright\lostround.mp3"
                "RoundEnt_Won"                        "music_kits_custom\Bright\wonround.mp3"
                "RoundStart_Action"                "music_kits_custom\Bright\startaction.mp3"
                "Round_TenSeconds"                "music_kits_custom\Bright\roundtenseccount.mp3"
                "Round_MVP"                        "music_kits_custom\Bright\chooseteam.mp3"
                "Deathcam"                        "music_kits_custom\Bright\deathcam.mp3"
        }
}



ambn 08-09-2018 07:45

Re: [CS:GO] Custom Music-Kits
 
Updated:

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

ambn 08-09-2018 07:54

Re: [CS:GO] Custom Music-Kits
 
1 Attachment(s)
Quote:

Code:

"musics"
{
        "MusicKit_Sartek"
        {
                "name"                                        "Don't Stop | Sartek"
                "Bomb_Planted"                        "music_kits_custom\Sartek\bombplanted.mp3"
                "Bomb_TenSeconds"                "music_kits_custom\Sartek\bombtenseccount.mp3"
                "RoundEnd_Lost"                        "music_kits_custom\Sartek\lostround.mp3"
                "RoundEnt_Won"                        "music_kits_custom\Sartek\wonround.mp3"
                "RoundStart_Action"                "music_kits_custom\Sartek\startaction.mp3"
                "Round_TenSeconds"                "music_kits_custom\Sartek\roundtenseccount.mp3"
                "Round_MVP"                                "music_kits_custom\Sartek\chooseteam.mp3"
                "Deathcam"                                "music_kits_custom\Sartek\deathcam.mp3"
        }
}



ambn 08-10-2018 03:27

Re: [CS:GO] Custom Music-Kits
 
Updated:

* 8/10/2018
- Fixed serveral issues caused by adding the new convar such as MVP sound was not playing in some cases and etc

antimyt 11-07-2018 07:12

Re: [CS:GO] Custom Music-Kits
 
Halftime music?


All times are GMT -4. The time now is 06:28.

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