Jump to content

[Client] mumble


KimiorV
 Share

Recommended Posts

Introduction

This module integrates the Mumble client with Gothic Online, allowing players to connect to your Mumble server and enjoy voice communication within the Gothic game!

Project link:
- Repository
- Download (will be added soon)
- Docs

How to use - mumble server configuration

Mumble server setup - https://www.unixmen.com/install-mumble-server-ubuntu/

How to use - join server and talk

enableEvent_Render(true);

addEventHandler("onInit", function() {
    mumble.openConnection("kyrmir.eu", 64738, "YOURPASSWORD");
});

addEventHandler("onPlayerCreate", function(playerId)
{
    if(playerId == heroId)
    {
      	// Wait 500ms for initialization
        setTimer(function() {
            mumble.toggleOutput(true);   
     	}, 500, 1);
    }
});

local voice = false;

addEventHandler("onRender", function()
{
    if(isKeyPressed(KEY_V))
    {
        if(voice == false)
        {
            mumble.toggleInput(true);
            voice = true;
        }
    } 
  	else 
    {
        if(voice == true) 
        {
            mumble.toggleInput(false);
            voice = false;
        }
    }
});

 

 

Edited by KimiorV
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...