Peer to peer ingame voice chat for Just Cause 3 Multiplayer
- Drop it in your packages directory.
- Run
npm install
inside the package to install the required node module.
There's a little bit of configuration you need to do before you can use voice chat.
- Replace
MY SERVER IP
with your server's IP address inconfig.js
- (optional) Change the port in
config.js
to a different port. - (optional) Adjust
max_distance
andmin_distance
to your liking inconfig.js
- (optional) Change the
talk_key
to whatever key you want inconfig.js
- This voice chat is peer to peer, which means all voice data is transferred directly between clients and not through the server. This means that no strain is put on the server when you run this package.
- The maximum distance is capped to a player's streaming range, so it cannot be global. I may add an option for global voice later.
- Players have a red speaker icon next to their head when they talk.
- The port in
config.js
must be open to allow voice chat to work.
- Media Access Request popup doesn't work quite right, and this will be fixed in a later update by nanos. See here.
- Not recommended for production use yet because sometimes microphone streams don't stop when you stop holding down the push to talk key. This makes voices global and no longer push to talk. I am investigating this issue.
- Add a small UI so that players can mute other players, adjust volume, or disable entirely.