Difference between revisions of "Adding Proximity Voice"

From Valve Developer Community
Jump to: navigation, search
m (Add Russian Lang)
(sdk 2013 new lines)
Line 5: Line 5:
 
Hello today I am going to be showing you how to create proximity chat for HL2MP mod or equivalent.
 
Hello today I am going to be showing you how to create proximity chat for HL2MP mod or equivalent.
  
This was implemented in the Source Mod [http://steamcommunity.com/sharedfiles/filedetails/?id=92917473 Faceless] [http://www.moddb.com/mods/faceless by Ethereal Entertainment].  
+
This was implemented in the Source Mod Faceless [http://www.moddb.com/mods/faceless by Ethereal Entertainment].  
  
 
First thing you are going to need to do is open game/shared/voice_gamemgr.cpp
 
First thing you are going to need to do is open game/shared/voice_gamemgr.cpp
  
  
Then go to around line 226...
+
Then go to around line 228...
  
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
Line 23: Line 23:
  
 
Next you need to change the distance at which it will project the voice.
 
Next you need to change the distance at which it will project the voice.
Locate line 104 and change ...
+
Locate line 106 and change ...
  
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">

Revision as of 15:19, 18 February 2018

Русский

Hello today I am going to be showing you how to create proximity chat for HL2MP mod or equivalent.

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

First thing you are going to need to do is 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 something like this...

m_iProximityDistance = 10;

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