Garry's Mod

Garry's Mod

Not enough ratings
[TTT/2] Custom Roundend Music [Tool]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
File Size
Posted
Updated
45.591 KB
31 Mar, 2020 @ 12:41pm
10 Oct, 2022 @ 11:19am
7 Change Notes ( view )

Subscribe to download
[TTT/2] Custom Roundend Music [Tool]

Description
[WIP]
Just a simple tool that will help you, if you want to play music at the end of a TTT Round.

Warning: Without any music in the Addon itself.

Features:
-It can play random music when a TTT round ends.
-It can play winner team specific music.
-Doesn't force the player to hear it, it is just optional
-Music can be changes or added midgame

Usage:
After installing the addon creates the following folders inside your Garrysmod installation (Server- and Clientside)
-garrysmod/data/music/end_random_music/innocent
-garrysmod/data/music/end_random_music/traitor
-garrysmod/data/music/end_random_music/other
(If supported -garrysmod/data/music/end_random_music/AddonRole - example garrysmod/data/music/end_random_music/ttt2_jackal)
for adding custom music, wav files can be added to the directories above in the client aswell as in the server installation. Take notice that the the Filenames and the path on the server and client must be identical for the addon to work.
By default files to be played are selected randomly, ignoring in which directory the file is placed an which wintype occurs. By changing the convar ttt_end_random_music_wintype from 0 to 1 the addon differentiates between types of wins and only randomly selects from the corresponding directory.

ConVars:
-ttt_end_random_music_wintype: If changed it will only load rolespecific soundfiles from the teamfolders (0 is default).
-ttt_end_random_music_silentscan: If changed it will mute the most console outputs between the rounds (0 is default).
-ttt_end_random_music_source: If changed the addon will look inside the sound/... folders instead of the data/ folders. It wont create them although (Usefull if you want to upload your own soundfiles via an addon) (0 is default).
-ttt_end_random_music_timeout_not_innocent: If enables the addon will not count a timeout as a innocent win, but as an own wintype (0 is default).

TODO:
-Support for more Roles
-Cleaner Code
-Auto remove of unused folders
-(Download audio via console)
-Too much

Links:
Github: https://github.com/4tla2/TTTRandomEndMusic
Popular Discussions View All (2)
2
19 Aug, 2021 @ 2:38am
Errors and suchlike
4tla2
2
10 Oct, 2022 @ 11:41am
Supported addon roles
4tla2
35 Comments
Delta7x 18 Oct, 2024 @ 11:05am 
The description says "Doesn't force the player to hear it, it is just optional". Perhaps I'm being a big derp and missing something obvious, but how I'd go about that isn't exactly clear. I'd like to have it so only the people who want to hear end round music will hear it
Izzybee 18 Dec, 2021 @ 7:30am 
This mod has given me and my friends endless use. My private TTT wouldn't be the same without it.
4tla2  [author] 18 Jul, 2020 @ 11:53am 
The ConVars or the logs?
To check the ConVars simply type them into the console without any number to get the active status from them.
For the logs you can simply copy the console output from your server and client or if you really want them from logfiles you can simply add -condebug to the start options from server and to the start options from the game. This will create a logfile inside the garrysmod folder of your installation with the name console.log.
And before the update everything worked fine? (of course without custom music for jester, etc.)
AZ99 Raven 17 Jul, 2020 @ 10:32pm 
where can i find that?
4tla2  [author] 15 Jul, 2020 @ 4:52am 
@AZ99 Raven
Did you check that the files are in the right place and the ConVar points to them?
If they are, could you please upload the logfiles from the round end (both server- and clientside) to a site like Pastebin or Ghostbin so I can look over them?
AZ99 Raven 12 Jul, 2020 @ 4:01am 
Now i cant get any sounds to play, lol. Any idea what i might be doing wrong?
4tla2  [author] 7 Jul, 2020 @ 5:13am 
@AZ99 Raven It should work now, but it would be best, if you would try it too. ^^
4tla2  [author] 6 Jul, 2020 @ 6:11am 
@AZ99 Raven If you send me the addon(s) I could add support for them. It could take me some time, but i'll do it.
AZ99 Raven 6 Jul, 2020 @ 3:51am 
Is there any way to make this compatible with the custom roles for normal TTT, especially the newer version? It works great for Traitors and Innocent wins, but i cant seem to figure out how to make ti work for Jester, Killer, and Monsters. :(