catching player using voice
Hello. Is it possible, to catch, when player is speaking with his microphone?
I need to set time to pcvar, when he doing it. |
Re: catching player using voice
|
Re: catching player using voice
I knew about this, bus couldn't realise how to use it.
I need to get when player push speak button or speaking at the moment. That only checks players speak flags. |
Re: catching player using voice
http://forums.alliedmods.net/showthread.php?t=89409
if_it_can_help |
Re: catching player using voice
Same thread as #2, and doesn't help.
|
Re: catching player using voice
I was found a better tutorial about that, but this isn't what I need. I think it isn't possible to do.
Or maybe is possible to catch that icon, witch appear when player is talking ? |
Re: catching player using voice
You can't just catch it, because it's handled client-side. I needed this before and I searched a lot, but I found nothing that could easily solve this problem.
Since server is transmitting data to clients, then it must be possible to detect it, but it probably requires messing with memory. I found a way to detect when player press +voicerecord button (though it's not very good and clients can mess up results if they know how): client cvar "voice_modenable" is always set to 1 when client press +voicerecord, so you can constantly query it and set it to 0 whenever query returns 1 (client just pressed +voicerecord), but I have no idea how to detect when client stops using it. |
Re: catching player using voice
Thats strange. get_user_info always returns me "voice_modenable" 0, what ever i set it.
|
Re: catching player using voice
I guess the only way to do that is to force people to use a custom voicerecord command (+startvoice) and implement at FM_Voice_SetClientListening your own control.
You have to block every voice communication for users not using that command. PHP Code:
|
Re: catching player using voice
Quote:
|
| All times are GMT -4. The time now is 19:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.