General > Developers Corner

How does ulx gag work?

<< < (3/3)

EMB:
The only thing they could do would be remove the hook which they would be banned for.
At least it is a little less crude than your current system.

BTW, like your sig Megiddo

--- Quote ---“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” -Brian W. Kernighan
"I love working on my crappy code. it is crappy, but it is mine. I guess I could love other people's code, but it's like loving other people's children -- not quite the same as your own" -- Jeff Atwood
--- End quote ---

And yours JamminR

--- Quote ---Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it - David Pogue
--- End quote ---

jay209015:
Hmm.. seems simple enough to just keep kicking them if we don't find the hook on the client side.

JamminR:
Re: Bypassing - yes. Relatively easy for people with half a lua brain cell. As EMB found previous discussion (good eye it seems!) , most of us feel banning would be appropriiate for those 'intelligent' enough to bypass. (Yes, intelligence is a relative term)

Gag, if I remember correctly, was an idea I threw in as a last minute to a release, Megiddo improved upon it's overall function, but we didn't spend large amounts of time on it after that. Overall it worked. We've never fully liked the way it work (both due to the somewhat necessary timer and possible explots)
As the post EM8 points out mentions, we'd somewhat recently looked into improving it, but so far no other ideas have seemed as "Simple" as the one we're currently using.
Simplicity is what we strive for.

But, back to original discussion question... EM8... have we answered  your question directly enough?
Do you have more questions? Need directions on where to find our code?

EMB:
I think you have answered well enough, I just wanted this so that I can make any client not a certain Group or Higher to be unable to use the mic. My own code I have created here, coupled with some stuff I have found while delving into our little corner, will suffice to my needs.

To finalise my ending post I think that you may benefit running something like this as a client Lua file within Ulx, which asks the server wether the player is muted or not and then acts correspondingly. I also think my file may help the community, and so shall release it here when completed and tested for a few weeks.

Note: Spell checker doesn't recognise the word "Lua" or "Ulx". Just to let you know in-case you weren't aware.

JamminR:

--- Quote from: EMB on May 14, 2010, 08:06:33 AM ---I think that you may benefit running something like this as a client Lua file within Ulx, which asks the server wether the player is muted or not and then acts correspondingly

--- End quote ---
Basically, we already do this.
Admin runs command on client player, client gets sent umsg, umsg = on = local gag or off = no gag.
Though we don't use the PlayerStartvoice command discussed above, it's still as you describe it.

Navigation

[0] Message Index

[*] Previous page

Go to full version