Garry's Mod

Garry's Mod

[TTT] Win/Lose Sounds - Custom Roles Compatible
20 Comments
GREENki11erRaBiT 9 Feb, 2024 @ 8:52am 
I could try that. Thanks for the suggestion. :steamthumbsup:
The Stig  [author] 9 Feb, 2024 @ 2:54am 
If it's taking a while to download you can just give them the sound folder directly and they can plonk it in their Gmod install directory.
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod
GREENki11erRaBiT 9 Feb, 2024 @ 1:22am 
When someone joins it takes and incredibly long time to download the sounds/songs. Is this fixable or not? Or is it simply a matter of a bad internet connection?
GREENki11erRaBiT 31 Jan, 2024 @ 2:39pm 
You are a hero sir, thank you.
The Stig  [author] 31 Jan, 2024 @ 8:42am 
@GREENki11erRaBiT I've added a couple of convars for you:
ttt_roundendsounds_sound_name_message 1
and
ttt_roundendsounds_team_win_sound 1

Add those to your listenserver.cfg or server.cfg if you're on a dedicated server.
Add sounds to an innocent_team and traitor_team folder and they will override the win/lose sounds and everyone will hear the same sound depending on if the traitors or innocents won.

I can't support independent/jester team wins as they are more complicated and I can't individually support every custom jester/independent role people will make. But for innocent and traitor wins the above should work.
GREENki11erRaBiT 31 Jan, 2024 @ 2:14am 
Mr. The Stig, is it at all possible to implement these features:

-an optional pop up in the corner telling the player what sound/song is playing
-an option to make a folder for role types so that a sound could play if a specific team wins, ie innocent roles or independent roles
-an option to make all players hear the same sound when the round ends
牛栏山辉夜 27 Dec, 2023 @ 8:18pm 
The update of front-end time causes me to not be able to allow it properly on non servers, which will result in Lua errors
The Stig  [author] 12 Nov, 2023 @ 1:05am 
It originally did, but that resulted in a bug where the sounds sometimes would not play, the only way to fix it was use a client-side play sound function that unfortunately doesn't have that option
牛栏山辉夜 12 Nov, 2023 @ 12:25am 
Can I have an option to freely adjust the volume of the music
MutantBison, PhD 25 Dec, 2022 @ 10:56pm 
This mod is some good, silly fun. Perfect for GMOD TTT
Serylt 16 Jul, 2022 @ 3:20pm 
This sounds wonderful. Thank you very much! :)
The Stig  [author] 16 Jul, 2022 @ 10:18am 
OK, I'm going to revert the change then, and you can use the "TTTChooseRoundEndSound" hook to get the exact behaviour you want.
Serylt 16 Jul, 2022 @ 6:21am 
Oh, but that broke your addon. :o
(Especially because the original sounds "*_win_*" and "*_loss_*" won't play at all anymore.)

My idea was to have an additional ability to see "innocent" and "traitor" as custom roles as well, so that there's a general chance for a "win"/"lose" to play but also, if innocent/traitor sounds exists that they also play. So, for example, after a won round, the chance is 1/10 that one of the default winning sounds play. If a traitor has won the round and two traitor sounds exist (making it a total 12 to be selected), I was assuming the chance of each song would be 1/12, you know?

I like your addon either way, but I thought that this update now overrode your original idea of the addon.
The Stig  [author] 15 Jul, 2022 @ 8:28pm 
Oh, I thought that's what you wanted. What are you trying to do?
Serylt 15 Jul, 2022 @ 12:31pm 
It seems like a bug, now only the innocent and traitor music is playing whilst the regular "win" doesn't anymore, so also the regular (included by default) tracks don't play anymore.

Is this intended?
Serylt 15 Jul, 2022 @ 11:29am 
Seems to work! Thank you very much. :)
Serylt 15 Jul, 2022 @ 2:13am 
Thank you! I'll give it a test as soon as I can. :lunar2019piginablanket:
The Stig  [author] 14 Jul, 2022 @ 9:44pm 
OK, try it now. Just put the sounds you want to play in a folder called "innocent" or "traitor"
The Stig  [author] 14 Jul, 2022 @ 9:13pm 
No, but I could make it so if you have at least one sound enabled in an innocent/traitor folder, it plays a sound from that folder for everyone.
Serylt 14 Jul, 2022 @ 3:38pm 
Heya! It's a wonderful mod, too bad it didn't get the recognition it deserves - so far.

Just one question. "customrolename" in the folder/path does not apply to innocent/traitor, or does it? So, if I'd want to play specific sounds for the traitor win or the innocent win, I'd have to hook it up clientside, eh?