Has anyone had any luck with this? (Is it possible to fix the Voice
(coming over the built in voice chat) to a specific place in the game
world? ).

I've just been messing around with the player's
GetSoundSpatialization, and have determined that voice comms come in
on channel CHAN_VOICE_BASE = 7, however when i modify the sound's
info.pOrigin to match that of the person talking, it still dosen't
spatialize. I even tried setting the following sound variables:

info.info.bIsAmbient = false;
info.type = SpatializationInfo_t::SI_INSPATIALIZATION;
info.info.nChannel = CHAN_VOICE;
info.info.vListenerOrigin

None seem to make this thing spatialize. If i can't get this working,
i'll hafta do something cheap, like figure out the distance between
the players and remap the volume accordingly..

Teddy
http://dystopia-mod.com/

On Thu, 2 Dec 2004 17:11:45 -0800, Yahn Bernier
<[EMAIL PROTECTED]> wrote:
>
>
> You should be able to tweak the spatialization of sounds from a player
> using:
>
> bool C_BaseEntity::GetSoundSpatialization( SpatializationInfo_t& info )
> .
>
> Just implement the virtual method for each player
> (C_BasePlayer::GetSoundSpatialization) and examine the info variable for
> CHAN_VOICE or the sfx name ( I think the voice playback has a special
> tag/name ).
>
> Yahn
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of <SB> Childe
> Roland
> Sent: Thursday, December 02, 2004 3:41 PM
> To: [email protected]
> Subject: [hlcoders] Fwd: Voice Chat related
>
> ---------- Forwarded message ----------
> From: <SB> Childe Roland <[EMAIL PROTECTED]>
> Date: Thu, 2 Dec 2004 17:37:33 -0600
> Subject: Voice Chat related
> To: [email protected]
>
> I do not yet have the SDK (getting HL2 for christmas), but I have a
>
> question about the possibilities with it.  If the developers or anyone
> who has looke the SDK over has an answer, I would be very grateful.
>
> Is it possible to fix the Voice (coming over the built in voice chat) to
> a specific place in the game world?  By this I mean, could I have a room
> where everyone's voice comes, and you just need to be nearby to hear it?
> Also, could I set this location to a player, so that it seams as if the
> voice is coming from their specific location and gets softer the farther
> away from them you are?
>
> --
> ====================
> <SB> Childe Roland
> "I will show you fear in a handful of jelly beans."
>
> --
> ====================
> <SB> Childe Roland
> "I will show you fear in a handful of jelly beans."
>
> _______________________________________________
> 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