I already told you this in IRC, but you are an awesome person, Tony Sergi.

For the benefit of any others that encounter the same problem:

Our gamerules class wasn't calling BaseClass::Think and I believe this
was preventing the voice from being transmit. Added that, and
everything started working.

To make the status icons show up I did this:
1. Added the appropriate things to scripts/HudLayout.res (extracted
from the hl2mp gcf)
2. Added a scripts/mod_textures.txt file with info about voice_self
and voice_player icons (extracted from the hl2mp gcf)
3. Added hud_voicestatus.cpp to the clientside project.

On Tue, Jan 20, 2009 at 9:22 PM, Tony Sergi <[email protected]> wrote:
> Add this to sdk_gamerules.cpp
>
> #ifdef GAME_DLL
> // 
> ---------------------------------------------------------------------------------------------------
>  //
> // Voice helper
> // 
> ---------------------------------------------------------------------------------------------------
>  //
>
> class CVoiceGameMgrHelper : public IVoiceGameMgrHelper
> {
> public:
>        virtual bool            CanPlayerHearPlayer( CBasePlayer *pListener, 
> CBasePlayer *pTalker, bool &bProximity )
>        {
>                // Dead players can only be heard by other dead team mates
>                if ( pTalker->IsAlive() == false )
>                {
>                        if ( pListener->IsAlive() == false )
>                                return ( pListener->InSameTeam( pTalker ) );
>
>                        return false;
>                }
>
>                return ( pListener->InSameTeam( pTalker ) );
>        }
> };
> CVoiceGameMgrHelper g_VoiceGameMgrHelper;
> IVoiceGameMgrHelper *g_pVoiceGameMgrHelper = &g_VoiceGameMgrHelper;
> #endif
>
> And make sure
> Void CSDKGameRules::Think()
> Calls BaseClass::Think()
>
>
>
> -Tony
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Skyler Clark
> Sent: January-20-09 8:35 PM
> To: Discussion of Half-Life Programming
> Subject: Re: [hlcoders] SDK +voicerecord not working
>
> Sorry, I don't really know what you mean. I can't seem to find
> anything useful in the HL2MP base. (Including HL2MPGameRules)
>
> I did try adding hud_voicestatus.cpp to my clientside project, but
> that has produced no visible effect.
>
> On Tue, Jan 20, 2009 at 7:24 PM, Tony Sergi <[email protected]> wrote:
>> Modify gamerules to do the voice stuff. Look at HL2MPGameRules to see it.
>> When we get the sdk up in beta, it'll work out of the box/.
>>
>>
>> -Tony
>>
>> -----Original Message-----
>> From: [email protected] 
>> [mailto:[email protected]] On Behalf Of Skyler Clark
>> Sent: January-20-09 12:56 PM
>> To: Discussion of Half-Life Programming
>> Subject: Re: [hlcoders] SDK +voicerecord not working
>>
>> Right, but it's not sending it over the network to other players nor
>> is it showing the icon (that indicates it is recording).
>>
>> Ioopback does work, it just seems nothing else does.
>>
>> On Tue, Jan 20, 2009 at 10:52 AM, Jorge Rodriguez <[email protected]> wrote:
>>> voice_enable 1
>>> voice_loopback 1
>>> bind v +voicerecord
>>>
>>> Press v and listen to yourself talk.
>>>
>>> --
>>> Jorge "Vino" Rodriguez
>>> _______________________________________________
>>> To unsubscribe, edit your list preferences, or view the list archives, 
>>> please visit:
>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>>
>>>
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to