Adding Proximity Voice

From Valve Developer Community
Jump to: navigation, search
English (en)Português do Brasil (pt-br)
Edit
Dead End - Icon.png
This article has no links to other VDC articles. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024


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;

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

Wikipedia - Letter.png
This article has not been added to any content categories. Please help out by adding categories.
January 2024