Raised This Month: $51 Target: $400
 12% 

To hear own voice


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 05-13-2015 , 09:53   To hear own voice
Reply With Quote #1

In SV_ParseVoiceData have this check
PHP Code:
if (== iClient && !pDestClient->m_bLoopback)
            
nSendLength 0
How with using Orpheu/Okapi/Rage I can hear my voice?
FromTheFuture is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-13-2015 , 10:52   Re: To hear own voice
Reply With Quote #2

you don't need all this stuff, i guess all you need is to "voice_loopback 1" in your client console and you will be able to hear your voice prefectly.
JusTGo is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 05-13-2015 , 11:26   Re: To hear own voice
Reply With Quote #3

Quote:
Originally Posted by JusTGo View Post
you don't need all this stuff, i guess all you need is to "voice_loopback 1" in your client console and you will be able to hear your voice prefectly.
Yes, but I need a way without cvar re-setting ;)
FromTheFuture is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 05-13-2015 , 11:42   Re: To hear own voice
Reply With Quote #4

I think I must change boolean value ( m_bLoopback ) but don't know him offset.
FromTheFuture is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-13-2015 , 12:25   Re: To hear own voice
Reply With Quote #5

why ? its easier to just do client_cmd(id,"voice_loopback 1")
JusTGo is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 05-13-2015 , 12:33   Re: To hear own voice
Reply With Quote #6

Quote:
Originally Posted by JusTGo View Post
why ? its easier to just do client_cmd(id,"voice_loopback 1")
No. I no wanna change client cvar : )
FromTheFuture is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-13-2015 , 13:00   Re: To hear own voice
Reply With Quote #7

Quote:
Originally Posted by JusTGo View Post
why ? its easier to just do client_cmd(id,"voice_loopback 1")
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;

__________________
Jhob94 is offline
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
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-13-2015 , 17:53   Re: To hear own voice
Reply With Quote #9

Maybe you're right.

Also tried:
if(is_user_connected(sender))
engfunc(EngFunc_SetClientListening, sender, sender, true)
And it didn't worked.

I will try to take a look at cssdk, maybe there is the answer about this.
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2015 , 20:29   Re: To hear own voice
Reply With Quote #10

I'm certainly glad it's not possible. There is no good reason to have the server force a person to hear themselves talk. It would be an instant "never go back to this server" feature.
__________________
fysiks is offline
Reply



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 17:25.


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