mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-26 22:54:39 +00:00
Disable voice manager
This commit is contained in:
parent
0559268c43
commit
fae0f3e1c0
@ -128,8 +128,8 @@ LOCAL_SRC_FILES := agrunt.cpp airtank.cpp \
|
||||
gravgun.cpp \
|
||||
../pm_shared/pm_debug.c \
|
||||
../pm_shared/pm_math.c \
|
||||
../pm_shared/pm_shared.c \
|
||||
../game_shared/voice_gamemgr.cpp
|
||||
../pm_shared/pm_shared.c
|
||||
# ../game_shared/voice_gamemgr.cpp
|
||||
|
||||
LOCAL_LDLIBS := -llog
|
||||
|
||||
|
@ -102,7 +102,7 @@ void ClientDisconnect( edict_t *pEntity )
|
||||
return;
|
||||
|
||||
char text[256] = "";
|
||||
if ( pEntity->v.netname )
|
||||
if ( pEntity->v.netname )
|
||||
snprintf( text, sizeof(text), "- %s has left the game\n", STRING(pEntity->v.netname) );
|
||||
MESSAGE_BEGIN( MSG_ALL, gmsgSayText, NULL );
|
||||
WRITE_BYTE( ENTINDEX(pEntity) );
|
||||
@ -198,14 +198,14 @@ void ClientPutInServer( edict_t *pEntity )
|
||||
|
||||
// Reset interpolation during first frame
|
||||
pPlayer->pev->effects |= EF_NOINTERP;
|
||||
|
||||
pPlayer->pev->iuser1 = 0;
|
||||
pPlayer->pev->iuser2 = 0;
|
||||
|
||||
|
||||
pPlayer->pev->iuser1 = 0;
|
||||
pPlayer->pev->iuser2 = 0;
|
||||
|
||||
}
|
||||
|
||||
#include "voice_gamemgr.h"
|
||||
extern CVoiceGameMgr g_VoiceGameMgr;
|
||||
//#include "voice_gamemgr.h"
|
||||
//extern CVoiceGameMgr g_VoiceGameMgr;
|
||||
|
||||
//// HOST_SAY
|
||||
// String comes in as
|
||||
@ -314,8 +314,8 @@ void Host_Say( edict_t *pEntity, int teamonly )
|
||||
continue;
|
||||
|
||||
// can the receiver hear the sender? or has he muted him?
|
||||
if ( g_VoiceGameMgr.PlayerHasBlockedPlayer( client, player ) )
|
||||
continue;
|
||||
//if ( g_VoiceGameMgr.PlayerHasBlockedPlayer( client, player ) )
|
||||
//continue;
|
||||
|
||||
if ( teamonly && g_pGameRules->PlayerRelationship(client, CBaseEntity::Instance(pEntity)) != GR_TEAMMATE )
|
||||
continue;
|
||||
|
@ -43,7 +43,7 @@ extern int g_teamplay;
|
||||
|
||||
float g_flIntermissionStartTime = 0;
|
||||
|
||||
CVoiceGameMgr g_VoiceGameMgr;
|
||||
//CVoiceGameMgr g_VoiceGameMgr;
|
||||
|
||||
class CMultiplayGameMgrHelper : public IVoiceGameMgrHelper
|
||||
{
|
||||
@ -69,7 +69,7 @@ static CMultiplayGameMgrHelper g_GameMgrHelper;
|
||||
|
||||
CHalfLifeMultiplay :: CHalfLifeMultiplay()
|
||||
{
|
||||
g_VoiceGameMgr.Init(&g_GameMgrHelper, gpGlobals->maxClients);
|
||||
//g_VoiceGameMgr.Init(&g_GameMgrHelper, gpGlobals->maxClients);
|
||||
|
||||
RefreshSkillData();
|
||||
m_flIntermissionEndTime = 0;
|
||||
@ -116,8 +116,8 @@ CHalfLifeMultiplay :: CHalfLifeMultiplay()
|
||||
|
||||
BOOL CHalfLifeMultiplay::ClientCommand( CBasePlayer *pPlayer, const char *pcmd )
|
||||
{
|
||||
if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd))
|
||||
return TRUE;
|
||||
//if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd))
|
||||
//return TRUE;
|
||||
|
||||
return CGameRules::ClientCommand(pPlayer, pcmd);
|
||||
}
|
||||
@ -186,7 +186,7 @@ extern cvar_t mp_chattime;
|
||||
//=========================================================
|
||||
void CHalfLifeMultiplay :: Think ( void )
|
||||
{
|
||||
g_VoiceGameMgr.Update(gpGlobals->frametime);
|
||||
//g_VoiceGameMgr.Update(gpGlobals->frametime);
|
||||
|
||||
///// Check game rules /////
|
||||
static int last_frags;
|
||||
@ -397,7 +397,7 @@ BOOL CHalfLifeMultiplay :: GetNextBestWeapon( CBasePlayer *pPlayer, CBasePlayerI
|
||||
//=========================================================
|
||||
BOOL CHalfLifeMultiplay :: ClientConnected( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] )
|
||||
{
|
||||
g_VoiceGameMgr.ClientConnected(pEntity);
|
||||
//g_VoiceGameMgr.ClientConnected(pEntity);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ CHalfLifeTeamplay :: CHalfLifeTeamplay()
|
||||
extern cvar_t timeleft, fragsleft;
|
||||
|
||||
#include "voice_gamemgr.h"
|
||||
extern CVoiceGameMgr g_VoiceGameMgr;
|
||||
//extern CVoiceGameMgr g_VoiceGameMgr;
|
||||
|
||||
void CHalfLifeTeamplay :: Think ( void )
|
||||
{
|
||||
@ -80,7 +80,7 @@ void CHalfLifeTeamplay :: Think ( void )
|
||||
int frags_remaining = 0;
|
||||
int time_remaining = 0;
|
||||
|
||||
g_VoiceGameMgr.Update(gpGlobals->frametime);
|
||||
//g_VoiceGameMgr.Update(gpGlobals->frametime);
|
||||
|
||||
if ( g_fGameOver ) // someone else quit the game already
|
||||
{
|
||||
@ -145,8 +145,8 @@ void CHalfLifeTeamplay :: Think ( void )
|
||||
//=========================================================
|
||||
BOOL CHalfLifeTeamplay :: ClientCommand( CBasePlayer *pPlayer, const char *pcmd )
|
||||
{
|
||||
if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd))
|
||||
return TRUE;
|
||||
//if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd))
|
||||
//return TRUE;
|
||||
|
||||
if ( FStrEq( pcmd, "menuselect" ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user