Quote:
Originally Posted by Jhob94
That's slowhack and is NOT allowed in this forum.
Not tested, but i guess it should work:
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_forward(FM_Voice_SetClientListening, "fwd_FM_Voice_SetClientListening");
}
public fwd_FM_Voice_SetClientListening(receiver, sender, bool:bListen)
{
if(receiver == sender && is_user_connected(receiver))
{
engfunc(EngFunc_SetClientListening, receiver, sender, true);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
|
I am also very curious if this method works, because my judgement tells me the "listening" value is true for every other case you don't set as false ; the data does actually reach the client (so talker->server->talker) but the voice loopback cvar blocks it.
The reason I think this works like this is because you can notice a delay with voice_loopback 1 that seems to be affected by ping.
__________________