I don't know about your problems with voice not working, but once you fix it, look into CVoiceGameMgr::UpdateMasks() to change who can hear who. Where it calls g_pVoiceServer->SetClientListening is what counts. Also, you might be interested in CBasePlayer::CanHearAndReadChatFrom() for team chat.
Changing the volume will be a bit trickier. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Skyler Clark Sent: Monday, January 19, 2009 3:48 PM To: Discussion of Half-Life Programming Subject: [hlcoders] SDK +voicerecord not working I used the "from scratch" build, and I am having some problems with +voicerecord. When I press it, if I have voice_loopback set to 1, I can hear myself speak but no icon is displayed on screen to indicate it is recording. If someone else is on my team, even though I can hear myself through the loopback, they can't hear me. So my first question (or first two) is how do I make the voice communication work in the from scratch build? My second question: Once I have fixed voice communication, how could I scale the volume of someone's microphone by distance, and how could I make it so that nearby opponents can also hear them speak? e.g. I want Team 1 to only be able to hear Team 1, but Team 2 should be able to hear Team 2 as well as players on Team 1 who are within a set range. Thanks for any help! -Skyler _______________________________________________ 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

