Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Avien on April 22, 2007, 12:23:39 PM

Title: Gag
Post by: Avien on April 22, 2007, 12:23:39 PM
I have been looking around for a command that gags a player.  I know there is mute, and gimp, but these commands do not affect the person and their microphone.  On my server there are some people that talk nonstop on the mic, or simply just make noise, and instead of kicking them i simply want to make their mic not work.  Any suggestions?
Title: Re: Gag
Post by: JamminR on April 22, 2007, 03:32:30 PM
"sv_voiceenable 0" in your server.cfg will disable mic for all clients. I personally recommend that. I hate the voice quality of Source.

If you don't want disabled for all players, from your console;
ulx cexec "<player>" "voice_enable 0"
will turn off the players ability to use mic ON THEIR END, until they go and turn it on again through their console or options screen.

Title: Re: Gag
Post by: Megiddo on April 22, 2007, 03:34:59 PM
Hehe, nice idea JamminR!
Title: Re: Gag
Post by: Golden-Death on April 22, 2007, 05:01:27 PM
"sv_voiceenable 0" in your server.cfg will disable mic for all clients. I personally recommend that. I hate the voice quality of Source.

If you don't want disabled for all players, from your console;
ulx cexec "<player>" "voice_enable 0"
will turn off the players ability to use mic ON THEIR END, until they go and turn it on again through their console or options screen.


You can change the quality of the sound by changing the codec it uses. At least in HL I know you can.
Title: Re: Gag
Post by: Megiddo on April 22, 2007, 05:04:01 PM
They don't have the speex codec in HL2 though, only one is included...
Title: Re: Gag
Post by: JamminR on April 22, 2007, 05:13:29 PM
Hehe, nice idea JamminR!

Indirectly, slightly off topic, might be a good enhancement for mute, and a good idea for a new command.

!gag <player> would turn off the mic capability, and like cloak, would check every few seconds to make sure it hadn't been re-enabled?
!mute <player> would mute text as it does now, and additionally, voice.

Title: Re: Gag
Post by: Golden-Death on April 22, 2007, 05:54:01 PM
They don't have the speex codec in HL2 though, only one is included...
Then copy and paste it, gal darnit!
 :o
Title: Re: Gag
Post by: spbogie on April 22, 2007, 07:47:34 PM
Actually I believe the default codec for HL2 is speex.
Title: Re: Gag
Post by: Avien on April 26, 2007, 08:02:20 PM
Indirectly, slightly off topic, might be a good enhancement for mute, and a good idea for a new command.

!gag <player> would turn off the mic capability, and like cloak, would check every few seconds to make sure it hadn't been re-enabled?
!mute <player> would mute text as it does now, and additionally, voice.



That is what i was going for in the end.  Any chance this might be included in the new ULX, or a release before then?
Title: Re: Gag
Post by: Megiddo on April 26, 2007, 10:37:21 PM
Voice can't be controlled from lua... maybe from a plugin though.
Title: Re: Gag
Post by: Megiddo on May 01, 2007, 12:15:48 AM
Scratch what I said, found something that will help here. :)
Title: Re: Gag
Post by: Avien on May 02, 2007, 03:44:22 PM
Yay!  I used the command today to mute an 8yr who kept screaming.  Luckily he was not smart enough to reenable his mic.