Adding Proximity Voice: Difference between revisions
Jump to navigation
Jump to search
CRACKbomber (talk | contribs) (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 ...") |
CRACKbomber (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
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]. | |||
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 | ||
Line 5: | Line 8: | ||
Then go to around line 226... | Then go to around line 226... | ||
< | <syntaxhighlight lang="cpp"> | ||
bool bProximity = false; | bool bProximity = false; | ||
</ | </syntaxhighlight> | ||
Change that to... | Change that to... | ||
< | <syntaxhighlight lang="cpp"> | ||
bool bProximity = true; | bool bProximity = true; | ||
</ | </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 104 and change ... | Locate line 104 and change ... | ||
< | <syntaxhighlight lang="cpp"> | ||
m_iProximityDistance = -1; | m_iProximityDistance = -1; | ||
</ | </syntaxhighlight> | ||
To something like this... | To something like this... | ||
< | <syntaxhighlight lang="cpp"> | ||
m_iProximityDistance = 10; | m_iProximityDistance = 10; | ||
</ | </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/ |
Revision as of 18:06, 15 September 2012
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 226...
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 104 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/