Author Topic: Gag  (Read 4875 times)

0 Members and 1 Guest are viewing this topic.

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Gag
« 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?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Gag
« Reply #1 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.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Gag
« Reply #2 on: April 22, 2007, 03:34:59 PM »
Hehe, nice idea JamminR!
Experiencing God's grace one day at a time.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Gag
« Reply #3 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.


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Gag
« Reply #4 on: April 22, 2007, 05:04:01 PM »
They don't have the speex codec in HL2 though, only one is included...
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Gag
« Reply #5 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.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Gag
« Reply #6 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


Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Gag
« Reply #7 on: April 22, 2007, 07:47:34 PM »
Actually I believe the default codec for HL2 is speex.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: Gag
« Reply #8 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?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Gag
« Reply #9 on: April 26, 2007, 10:37:21 PM »
Voice can't be controlled from lua... maybe from a plugin though.
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Gag
« Reply #10 on: May 01, 2007, 12:15:48 AM »
Scratch what I said, found something that will help here. :)
Experiencing God's grace one day at a time.

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: Gag
« Reply #11 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.