How FM_Voice_SetClientListening work ?
Hi everybody.
Can somebody tell me detalied how exactly FM_Voice_SetClientListening work? When is called, who is Receiver, who is Sender and when the third param is true and when is false ? Thanks anticipated. |
Re: How FM_Voice_SetClientListening work ?
|
Re: How FM_Voice_SetClientListening work ?
I want to know how this forward exactly work.
Code:
When is called, who is Receiver, who is Sender and when the third param is true and when is false ? |
Re: How FM_Voice_SetClientListening work ?
Look at existing plugins to see how you use them. To see when they are called (and the value of the parameters), hook the forward and look for yourself.
|
Re: How FM_Voice_SetClientListening work ?
Quote:
From amxmodx func wiki:
Spoiler
iReceiver is who is listening. iSender is who is sending voice. Listen - true if listening, false if not (like iSender don't sending voice). |
Re: How FM_Voice_SetClientListening work ?
iSender // is the PlayerID who is talking
iReceiver // is the PlayerID who is listening bool Listen // should listener hear what talker is saying or no |
Re: How FM_Voice_SetClientListening work ?
Every 0.3 seconds, this function is called playersNum * maxPlayers times.
3rd arguments notifies the engine if receiver can hear sender. If receiver is not connected, function is not called, receiver status doesn't seem to be taken in account. Return value is not used by game dll but engine returns 0 if sender or receiver is not in range (1 to maxplayer). |
Re: How FM_Voice_SetClientListening work ?
Thank you Connor. This help me a lot.
One more question if I can: Which is difference between FM_Voice_SetClientListening and FM_Voice_GetClientListening, also when FM_Voice_GetClientListening is called? |
Re: How FM_Voice_SetClientListening work ?
Get returns the actual status taken in account by the engine, i don't think it is used.
|
Re: How FM_Voice_SetClientListening work ?
Thank you very much Connor. :)
|
| All times are GMT -4. The time now is 23:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.