PDA

View Full Version : g_EngineFuncs.Voice_SetClientListening is broken.



de_inferno
30-01-2016, 03:08 AM
Title says all.
Trying to gag player with entindex,authid.
Nothing works.
Please help...:confused:
Example of usage in my admin plugin SvenAdmin

Solokiller
30-01-2016, 05:42 AM
You're supposed to pass in 2 entity indices: The player whose listening settings will be affected, and the player to change the settings of.

So let's say you have 2 players, player 1 and player 2. You want player 1 to longer hear player 2, so you should do this:



CBasePlayer@ pPlayer1 = ...;
CBasePlayer@ pPlayer2 = ...;

g_EngineFuncs.Voice_SetClientListening( pPlayer1.entindex(), pPlayer2.entindex(), false );

de_inferno
30-01-2016, 09:20 AM
Still don't work for me. Players can hear gaged one.
I checked everthing in script structure and it's ok.

Solokiller
30-01-2016, 09:25 AM
We'll check the engine and see if anything is going wrong there.

Solokiller
01-02-2016, 06:24 PM
Looks like our own game code is resetting the changes made using the methods we've exposed. We'll have to expose the object that handles this instead.