Adding Proximity Voice: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(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 ...")
 
m (Nesciuse moved page Adding Proximity Voice/en to Adding Proximity Voice without leaving a redirect: Move en subpage to basepage)
 
(9 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Hello today I am going to be showing you how to create proximity chat for HL2MP mod or equivalent.
{{LanguageBar}}
First thing you are going to need to do is open game/shared/voice_gamemgr.cpp
{{Dead end|date=January 2024}}




Then go to around line 226...
This tutorial is going to show how to create a proximity chat for a HL2MP mod or equivalent.


<code>
This was implemented in the Source Mod Faceless by [http://www.moddb.com/mods/faceless Ethereal Entertainment].
 
Open game/shared/voice_gamemgr.cpp
 
Then go to around line 228...
 
<syntaxhighlight lang="cpp">
bool bProximity = false;
bool bProximity = false;
</code>
</syntaxhighlight>


Change that to...
Change that to...


<code>
<syntaxhighlight lang="cpp">
bool bProximity = true;
bool bProximity = true;
</code>
</syntaxhighlight>


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


<code>
<syntaxhighlight lang="cpp">
m_iProximityDistance = -1;
m_iProximityDistance = -1;
</code>
</syntaxhighlight>


To something like this...
To this...


<code>
<syntaxhighlight lang="cpp">
m_iProximityDistance = 10;
m_iProximityDistance = 10;
</code>
</syntaxhighlight>


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/
{{Uncategorized|date=January 2024}}
[[Category:Programming]]
[[Category:Tutorials]]

Latest revision as of 04:00, 12 July 2024

English (en)Português do Brasil (pt-br)Русский (ru)Translate (Translate)
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon 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 Wikipedia icon categories. Please help out by Wikipedia icon adding categories.
January 2024