Adding Proximity Voice: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Preparing page for move. This action was perfomed by a bot under supervision.)
Line 1: Line 1:
{{lang|Adding Proximity Voice}}
{{langsp}}
 


This tutorial is going to show how to create a proximity chat for a HL2MP mod or equivalent.
This tutorial is going to show how to create a proximity chat for a HL2MP mod or equivalent.
Line 34: Line 35:
Source:
Source:
http://t-plusplus.com/creating-proximity-chat-in-the-source-engine-sdk/
http://t-plusplus.com/creating-proximity-chat-in-the-source-engine-sdk/
[[Category:Programming]][[Category:Tutorials]]

Revision as of 08:51, 12 January 2024

English (en)Português do Brasil (pt-br)Русский (ru)Translate (Translate)


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/