Garry's Mod

Garry's Mod

[TTT] Win/Lose Sounds - Custom Roles Compatible
20 kommentarer
GREENki11erRaBiT 9 feb, 2024 @ 8:52 
I could try that. Thanks for the suggestion. :steamthumbsup:
The Stig  [skapare] 9 feb, 2024 @ 2:54 
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:22 
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 @ 14:39 
You are a hero sir, thank you.
The Stig  [skapare] 31 jan, 2024 @ 8:42 
@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:14 
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
Hikawa Kaguya 27 dec, 2023 @ 20:18 
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  [skapare] 12 nov, 2023 @ 1:05 
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
Hikawa Kaguya 12 nov, 2023 @ 0:25 
Can I have an option to freely adjust the volume of the music
MutantBison, PhD 25 dec, 2022 @ 22:56 
This mod is some good, silly fun. Perfect for GMOD TTT
Serylt 16 jul, 2022 @ 15:20 
This sounds wonderful. Thank you very much! :)
The Stig  [skapare] 16 jul, 2022 @ 10:18 
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:21 
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  [skapare] 15 jul, 2022 @ 20:28 
Oh, I thought that's what you wanted. What are you trying to do?
Serylt 15 jul, 2022 @ 12:31 
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:29 
Seems to work! Thank you very much. :)
Serylt 15 jul, 2022 @ 2:13 
Thank you! I'll give it a test as soon as I can. :lunar2019piginablanket:
The Stig  [skapare] 14 jul, 2022 @ 21:44 
OK, try it now. Just put the sounds you want to play in a folder called "innocent" or "traitor"
The Stig  [skapare] 14 jul, 2022 @ 21:13 
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 @ 15:38 
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?