|
|
@ -43,7 +43,7 @@ extern int g_teamplay; |
|
|
|
|
|
|
|
|
|
|
|
float g_flIntermissionStartTime = 0; |
|
|
|
float g_flIntermissionStartTime = 0; |
|
|
|
|
|
|
|
|
|
|
|
CVoiceGameMgr g_VoiceGameMgr; |
|
|
|
//CVoiceGameMgr g_VoiceGameMgr;
|
|
|
|
|
|
|
|
|
|
|
|
class CMultiplayGameMgrHelper : public IVoiceGameMgrHelper |
|
|
|
class CMultiplayGameMgrHelper : public IVoiceGameMgrHelper |
|
|
|
{ |
|
|
|
{ |
|
|
@ -69,7 +69,7 @@ static CMultiplayGameMgrHelper g_GameMgrHelper; |
|
|
|
|
|
|
|
|
|
|
|
CHalfLifeMultiplay :: CHalfLifeMultiplay() |
|
|
|
CHalfLifeMultiplay :: CHalfLifeMultiplay() |
|
|
|
{ |
|
|
|
{ |
|
|
|
g_VoiceGameMgr.Init(&g_GameMgrHelper, gpGlobals->maxClients); |
|
|
|
//g_VoiceGameMgr.Init(&g_GameMgrHelper, gpGlobals->maxClients);
|
|
|
|
|
|
|
|
|
|
|
|
RefreshSkillData(); |
|
|
|
RefreshSkillData(); |
|
|
|
m_flIntermissionEndTime = 0; |
|
|
|
m_flIntermissionEndTime = 0; |
|
|
@ -116,8 +116,8 @@ CHalfLifeMultiplay :: CHalfLifeMultiplay() |
|
|
|
|
|
|
|
|
|
|
|
BOOL CHalfLifeMultiplay::ClientCommand( CBasePlayer *pPlayer, const char *pcmd ) |
|
|
|
BOOL CHalfLifeMultiplay::ClientCommand( CBasePlayer *pPlayer, const char *pcmd ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd)) |
|
|
|
//if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd))
|
|
|
|
return TRUE; |
|
|
|
//return TRUE;
|
|
|
|
|
|
|
|
|
|
|
|
return CGameRules::ClientCommand(pPlayer, pcmd); |
|
|
|
return CGameRules::ClientCommand(pPlayer, pcmd); |
|
|
|
} |
|
|
|
} |
|
|
@ -186,7 +186,7 @@ extern cvar_t mp_chattime; |
|
|
|
//=========================================================
|
|
|
|
//=========================================================
|
|
|
|
void CHalfLifeMultiplay :: Think ( void ) |
|
|
|
void CHalfLifeMultiplay :: Think ( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
g_VoiceGameMgr.Update(gpGlobals->frametime); |
|
|
|
//g_VoiceGameMgr.Update(gpGlobals->frametime);
|
|
|
|
|
|
|
|
|
|
|
|
///// Check game rules /////
|
|
|
|
///// Check game rules /////
|
|
|
|
static int last_frags; |
|
|
|
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 ] ) |
|
|
|
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; |
|
|
|
return TRUE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|