[t]http://i.imgur.com/oPYLj5C.jpg[/t]
A simple addon you can install on your server to let players create their own voice chat channels. Basically a PlayerCanHearPlayersVoice hook and a shitload of predone networking. I scripted this in roughly 4-5 hours and organization-wise there are a few rough spots (will fix tomorrow and push onto workshop again or whatever), but it works as intended, and I figured someone could probably get some use out of it.
Player mic audibility is only altered if players decide to join a private channel (global/normal voice chat is still an option), so it probably won't work well on your DarkRP or TTT server, for instance. It's better for build servers and stuff of that nature, where voice chat really isn't that inherently important to the gameplay and can become cluttered/fuckled by 12 year olds asking where the FNAF models are, or talking politics when you're just trying to build a car. I swear if I had a penny for every single 16 year old political scientist I met while playing Garry's Mod I'd have enough to build the goddamn wall myself. It pisses me right the fuck off that these little twerps think they can just join a build server and talk about how their candidate is the best candidate, while ignoring the fact that they're still living under their parents' roof and probably haven't done much research into the actual issues. Maybe if they'd actually done one of those fancy political leaning tests, they'd realize the best candidate was actually letting this addon pee in their buttholes so they'd shut the fuck up already. He has a good platform.
Here are the links
[URL="https://github.com/z9-tim/gmod-voicechannels/"]GitHub repo[/URL]
[URL="http://steamcommunity.com/sharedfiles/filedetails/?id=736619994"]Workshop[/URL]
Isn't there a SF script that someone was selling that does this. If so rip that guy.
Your explanation went from informative to a rant that's ironically the same thing you were complaining about in your rant.
[QUOTE=Clouds;50827839]Your explanation went from informative to a rant that's ironically the same thing you were complaining about in your rant.[/QUOTE]
0-100 Real quick
However this addon does not work.. at least for me i believe you did not include all the files in [URL="https://github.com/z9-tim/gmod-voicechannels/blob/master/voicechannels/lua/autorun/sh_voicechannels_autorun.lua"]this[/URL] file i made an issue [URL="https://github.com/z9-tim/gmod-voicechannels/issues/1"]here[/URL]
[QUOTE=XxLMM13xXx;50828123]0-100 Real quick
However this addon does not work.. at least for me i believe you did not include all the files in [URL="https://github.com/z9-tim/gmod-voicechannels/blob/master/voicechannels/lua/autorun/sh_voicechannels_autorun.lua"]this[/URL] file i made an issue [URL="https://github.com/z9-tim/gmod-voicechannels/issues/1"]here[/URL][/QUOTE]
It works, you just need to look harder [URL="https://github.com/z9-tim/gmod-voicechannels/blob/master/voicechannels/lua/voicechannels/sh_voicechannels.lua#L282"]https://github.com/z9-tim/gmod-voicechannels/blob/master/voicechannels/lua/voicechannels/sh_voicechannels.lua#L282[/URL]
[editline]4th August 2016[/editline]
[QUOTE=Clouds;50827839]Your explanation went from informative to a rant that's ironically the same thing you were complaining about in your rant.[/QUOTE]
Yikes. It seems that your head makes a good ground-based navaid for overflying jokes
Really really minor stuff here but [url=https://github.com/z9-tim/gmod-voicechannels/blob/master/voicechannels/lua/voicechannels/cl_voicechannels.lua#L30]this[/url] can be simplified to [lua]if GetConVar( "voicechannels_drawoverlay" ):GetBool() then[/lua] and converting tables to JSON then sending them as a string uses way more resources than it would to just use WriteTable.
[editline]4th August 2016[/editline]
Nice addon though.
[QUOTE=meharryp;50829250]Really really minor stuff here but [url=https://github.com/z9-tim/gmod-voicechannels/blob/master/voicechannels/lua/voicechannels/cl_voicechannels.lua#L30]this[/url] can be simplified to [lua]if GetConVar( "voicechannels_drawoverlay" ):GetBool() then[/lua]
[/quote]
Considering that's in a HUDPaint hook it'd be smarter to store the ConVar in an up value.
[quote]and converting tables to JSON then sending them as a string uses way more resources than it would to just use WriteTable.[/QUOTE]
I thought about this when reading over the code, though it'd probably be faster to use WriteTable, WriteTable is also going to send 4 values for every value in the table. If the table has a predictable/static structure, neither route should be taken.
[QUOTE=Aide;50824818]Isn't there a SF script that someone was selling that does this. If so rip that guy.[/QUOTE]
Indeed RIP me.
Sorry, you need to Log In to post a reply to this thread.