Raised This Month: $ Target: $400
 0% 

To hear own voice


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-13-2015 , 15:47   Re: To hear own voice
Reply With Quote #8

Quote:
Originally Posted by Jhob94 View Post
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(receiversenderbool:bListen)
{
    if(
receiver == sender && is_user_connected(receiver))
    {
        
engfunc(EngFunc_SetClientListeningreceiversendertrue);
        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.
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode