Add Left 4 Dead 2 support

This commit is contained in:
Peace-Maker
2016-12-04 21:41:07 -07:00
parent e622428037
commit 54b0a16219
6 changed files with 179 additions and 9 deletions
+2 -2
View File
@@ -254,7 +254,7 @@ void HLTVServerWrapper::OnCGameClient_ClientPrintf_Post(const char* buf)
IClient *pClient = (IClient *)((intptr_t)pGameClient + 4);
HandleClientPrintf(pClient, buf);
#if SOURCE_ENGINE == SE_LEFT4DEAD
#if SOURCE_ENGINE == SE_LEFT4DEAD || SOURCE_ENGINE == SE_LEFT4DEAD2
// Left4Dead doesn't check the netchan before using it
RETURN_META(MRES_SUPERCEDE);
#else
@@ -267,7 +267,7 @@ void HLTVServerWrapper::OnIClient_ClientPrintf_Post(const char* buf)
IClient *pClient = META_IFACEPTR(IClient);
HandleClientPrintf(pClient, buf);
#if SOURCE_ENGINE == SE_LEFT4DEAD
#if SOURCE_ENGINE == SE_LEFT4DEAD || SOURCE_ENGINE == SE_LEFT4DEAD2
// Left4Dead doesn't check the netchan before using it
RETURN_META(MRES_SUPERCEDE);
#else