PDA

View Full Version : question about microphone


milfrousse
07-05-2007, 11:55 PM
hey,

I need an information about the microphone for a coop mod in source engine.

For exemple, one player speak in his microphone and the other player can heard him if they are near the player who speak, the player who are far can't heard him.

It's possible or not ? if yes, this already exist or i need to create them ?

thank you for your reply.


PS: In the code of source, the management of microphone is easy or it's very difficult?

lodle
07-06-2007, 01:48 AM
Yes this can be done (and i think it is for hl2dm all ready). Each map is divided into portals (cant think of the proper name atm :|) and you can work out if two people are in the same portal or you could go by distance between two players.

milfrousse
07-06-2007, 04:03 AM
thanks for your reply

another question :
it's possible to collect the volume of the voice (or another solution)?

For exemple :

if the player shouts, the zone where the other players can hear is bigger than if the player speaks normally .

Thank you

vecima
07-06-2007, 06:14 AM
if you can code, it can (probably) be done.

sorry, but i don't really have more info than that