|
|
|
@ -43,7 +43,7 @@ extern int g_teamplay;
@@ -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;
@@ -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()
@@ -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;
@@ -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
@@ -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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|