Adding Proximity Voice

From Valve Developer Community
Revision as of 17:55, 15 September 2012 by CRACKbomber (talk | contribs) (Created page with "Hello today I am going to be showing you how to create proximity chat for HL2MP mod or equivalent. First thing you are going to need to do is open game/shared/voice_gamemgr.cpp ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hello today I am going to be showing you how to create proximity chat for HL2MP mod or equivalent. First thing you are going to need to do is open game/shared/voice_gamemgr.cpp


Then go to around line 226...

bool bProximity = false;

Change that to...

bool bProximity = true;

Next you need to change the distance at which it will project the voice. Locate line 104 and change ...

m_iProximityDistance = -1;

To something like this...

m_iProximityDistance = 10;

source: http://t-plusplus.com/creating-proximity-chat-in-the-source-engine-sdk/