Add Left 4 Dead support

Spectator client connections aren't tested yet - don't have the game
installed.
This commit is contained in:
Peace-Maker
2016-12-04 21:05:06 -07:00
parent cab2bc24ac
commit e622428037
6 changed files with 200 additions and 2 deletions
+10
View File
@@ -254,7 +254,12 @@ void HLTVServerWrapper::OnCGameClient_ClientPrintf_Post(const char* buf)
IClient *pClient = (IClient *)((intptr_t)pGameClient + 4);
HandleClientPrintf(pClient, buf);
#if SOURCE_ENGINE == SE_LEFT4DEAD
// Left4Dead doesn't check the netchan before using it
RETURN_META(MRES_SUPERCEDE);
#else
RETURN_META(MRES_IGNORED);
#endif
}
void HLTVServerWrapper::OnIClient_ClientPrintf_Post(const char* buf)
@@ -262,7 +267,12 @@ void HLTVServerWrapper::OnIClient_ClientPrintf_Post(const char* buf)
IClient *pClient = META_IFACEPTR(IClient);
HandleClientPrintf(pClient, buf);
#if SOURCE_ENGINE == SE_LEFT4DEAD
// Left4Dead doesn't check the netchan before using it
RETURN_META(MRES_SUPERCEDE);
#else
RETURN_META(MRES_IGNORED);
#endif
}
void HLTVServerWrapper::HandleClientPrintf(IClient *pClient, const char* buf)