Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.

Adding Proximity Voice/pt-br

From Valve Developer Community
Jump to: navigation, search
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

Esse tutorial vai ensinar como você pode criar um chat de proximidade para HL2MP mod ou equivalente.

Abra game/shared/voice_gamemgr.cpp

E pela mais ou menos na linha 228...

bool bProximity = false;

E mude para....

bool bProximity = true;

Depois você precisa mudar a distancia que vai projetar a voz. Na linha 106 mude...

m_iProximityDistance = -1;

Para isso

m_iProximityDistance = 10;

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