Adding Proximity Voice

From Valve Developer Community
Revision as of 13:21, 6 January 2019 by Soer4769 (talk | contribs) (Added categories to the page, removed some first person perspectives)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This tutorial is going to show how to create a proximity chat for a HL2MP mod or equivalent.

This was implemented in the Source Mod Faceless by Ethereal Entertainment.

Open game/shared/voice_gamemgr.cpp

Then go to around line 228...

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 106 and change...

m_iProximityDistance = -1;

To this...

m_iProximityDistance = 10;