Garry's Mod

Garry's Mod

Not enough ratings
TTT Heat End Round Music System
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Scenic, Realism
File Size
Posted
Updated
3.390 KB
10 Jan, 2018 @ 2:17am
12 Mar, 2019 @ 5:20pm
9 Change Notes ( view )

Subscribe to download
TTT Heat End Round Music System

Description
Songs files must be stored as MP3, sampling frequency 44,100 Hz, otherwise you won't hear your songs. Song names shouldn't include weird characters, such as "&", "(", commas and others; For example, "Author - Song" would be a valid format.

WHAT IS THIS?
This is an end round music system for TTT servers that allows you to add music to your server without editing a single file. Players can change panels and texts colors using the F1 menu, including transparency.
THEY CAN ALSO CHOOSE WHETHER THEY WANT OR NOT WANT TO HEAR SERVER SONGS WITHIN THE F1 MENU.
It works well on all screen resolutions and panels are small enough to not annoy players, but they're also large enough to be properly read.

HOW TO INSTALL?
Add the addon to your server as usual.
Go to "garrysmod/sound" and create a folder (with whatever name you want) where you want to store your music (example: "mytttserver_music"), then open it and create the folders "innocent", "traitor" and "timeout" (the timeout folder is optional). THESE 3 FOLDERS HAVE TO BE NAMED EXACTLY LIKE THAT.

Now you have two choices:
CHOICE 1 (recommended) - Run your server once. Then go to "garrysmod/data" and open the file "heat_roundmusic_folder.txt". Replace the word "foldernamehere" with the name of the folder you created before. If you created the folder "mytttserver_music", write exactly that word.
CHOICE 2 - Create the file by yourself and write the folder name.

Add your music to the "innocent", "traitor" and "timeout" folders created before. The song name you want to appear on the screen has to be the name of each mp3 file added (example: "Baltimora - Tarzan Boy.mp3"), AND DONE!
Remember to sync your FastDL everytime you add a new song, or upload your music to a pack on the Workshop. You won't need to edit a configuration file anymore.

Keep in mind that the script will be disabled until you change the folder name in "heat_roundmusic_folder.txt" and you add AT LEAST one song for innocents and one song for traitors.
After you do all these things, perform a map change or restart the server.


IMPORTANT QUESTIONS
Q: Why should I use this if I already have a TTT end round music system on my server that works?
A: First of all, this script is optimised to avoid any kind of lag spikes at the end of a round.
Furthermore, the panels have a correct location and size to be properly read without being annoying for players.
Songs are super easy to install. You only need to replace your mp3 files or add new ones to the server, and... players can choose whether they want to hear songs! This is for those who are always complaining about your musical tastes. Tell them to open the F1 menu and uncheck the check box "LISTEN SERVER END ROUND SONGS".
They can also edit every panel and text color within the F1 menu, or fully hide the panels changing their transparency.

Q: I dont want timeout songs. I just want innocents songs to be played when the time limit is reached, cause only 1 round every 30 rounds ends like that.
A: No problem. Do not create the "timeout" folder, or create it and leave it empty. The script will do exactly what you want automatically.

Q: I followed these instructions and see song names when rounds are over, but I can't hear them.
A: Make sure your songs are stored as MP3, frequency 44,100 Hz.

Q: Is safe to save the configuration file on my own PC?
A: Yes. The script always checks if the configuration file is corrupt when a player joins the server. In that case, it'll be reset to its default values.

Q: Will I get script errors on singleplayer if I subscribe to this, cause this addon is only for TTT?
A: No. The addon will not load on singleplayer. Subscribing is perfectly fine.

Reuploading this addon or any of its contents without permission is not allowed and will result in a report to appropiate authorities. In order to do some modifications and distribute them, you must ask me first and get my approval.
6 Comments
kuma7  [author] 16 Jan, 2023 @ 6:01am 
1. Yes, you still need to upload your songs-addon to the workshop. However, that isn't a hurdle, since you could just create your addon in the "garrysmod/addons" folder and then use Crowbar, select that folder and press "update". It shouldn't takd more than 20 seconds.

2. I have no idea.
Matz 15 Jan, 2023 @ 11:26pm 
Hello! thanks for cool addon.
I have some questions...

1. If I open a peer to peer server, do I not have to post a pack on workshop or use FastDL?
I've never used FastDL before. So I don't know if FastDL is a must.
2. Is this applicable to TTT2? I'd like to experiment with it myself, but I think it will be difficult for me to use PC for a while.

Thank you again for the good addon and kind explanation.
Plasma 28 Jul, 2021 @ 4:31pm 
I see, I guess I missed that part. Thank you.
kuma7  [author] 28 Jul, 2021 @ 4:26pm 
Technically no. If you read the description, you'll stumble across this line "Remember to sync your FastDLeverytime you add a new song, or upload the music to a pack on the Workshop".
As I said, you can upload your custom music to your workshop as a pack and the system should work as long as your folders are named as I wrote and the txt file exists. I'm not including music in this addon because is up to the users to choose their favorite songs.
Plasma 28 Jul, 2021 @ 3:36pm 
I'm assuming this is for dedicated servers with a FastDL server, right? I kind of want to use this while hosting my own server to mess around with friends, but if I add music will it actually be downloaded to their PC or will I have to send it to them manually?
Rootless Ransu 11 Jan, 2018 @ 1:26pm 
Cool