General > Developers Corner

How does ulx gag work?

(1/3) > >>

EMB:
I wish to know how you made ulx gag work, as I have trawled through our nice corner and the whole of the ULX folder to no avail.

Sorry if this seems obvious,

EMB

JamminR:
Quite hackish, involving both client and server.
Server sends client "gagged" boolean using Umsg, client starts function that runs console command -voicerecord every (.3?) seconds.

We'd thought about using CanHearPLayersVoice, but, all talk has to be disabled, and we didn't want to yet again hack around that.

Megiddo:
There's supposed to be better functions to do this, but of course, garry broke them a while back and never fixed them.

EMB:
Would this work instead?
http://wiki.garrysmod.com/?title=Gamemode.PlayerStartVoice

jay209015:
Returning false doesn't do anything for that function. It's just to let you know when they start talking rather than controlling whether they can or not.

Navigation

[0] Message Index

[#] Next page

Go to full version