mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2025-01-10 18:35:25 +01:00
engine: server: added support for variable voice chat quality
This commit is contained in:
parent
279894cfd4
commit
8d0209b122
@ -395,7 +395,7 @@ void SV_WriteVoiceCodec( sizebuf_t *msg )
|
||||
{
|
||||
MSG_BeginServerCmd( msg, svc_voiceinit );
|
||||
MSG_WriteString( msg, "opus" );
|
||||
MSG_WriteByte( msg, 0 );
|
||||
MSG_WriteByte( msg, Cvar_VariableInteger( "sv_voicequality" ));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -114,6 +114,7 @@ CVAR_DEFINE_AUTO( violence_agibs, "1", 0, "show alien gib entities" );
|
||||
|
||||
// voice chat
|
||||
CVAR_DEFINE_AUTO( sv_voiceenable, "1", FCVAR_ARCHIVE|FCVAR_SERVER, "enable voice support" );
|
||||
CVAR_DEFINE_AUTO( sv_voicequality, "3", FCVAR_ARCHIVE|FCVAR_SERVER, "voice chat quality level, from 0 to 5, higher is better" );
|
||||
|
||||
convar_t *sv_novis; // disable server culling entities by vis
|
||||
convar_t *sv_pausable;
|
||||
@ -978,6 +979,7 @@ void SV_Init( void )
|
||||
Cvar_RegisterVariable( &mapchangecfgfile );
|
||||
|
||||
Cvar_RegisterVariable( &sv_voiceenable );
|
||||
Cvar_RegisterVariable( &sv_voicequality );
|
||||
Cvar_RegisterVariable( &sv_trace_messages );
|
||||
|
||||
sv_allow_joystick = Cvar_Get( "sv_allow_joystick", "1", FCVAR_ARCHIVE, "allow connect with joystick enabled" );
|
||||
|
Loading…
Reference in New Issue
Block a user