From 1e78c58aa9780a648fe36abc3cf549e74b3afbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Fri, 12 Mar 2004 11:19:44 +0000 Subject: [PATCH] Removed botrelated code --- dlls/fun/fun.cpp | 12 +++++++----- dlls/fun/fun.h | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dlls/fun/fun.cpp b/dlls/fun/fun.cpp index 10de6cd8..dd9e6c8b 100755 --- a/dlls/fun/fun.cpp +++ b/dlls/fun/fun.cpp @@ -719,6 +719,7 @@ void PlayerPreThink(edict_t *pEntity) RETURN_META(MRES_IGNORED); } +/* <--- removed, only needed with akimbot int ClientConnect(edict_t *pPlayer, const char *pszName, const char *pszAddress, char szRejectReason[128]) { int index = ENTINDEX(pPlayer); @@ -755,6 +756,7 @@ void ClientDisconnect(edict_t *pEntity) RETURN_META(MRES_IGNORED); } +*/ DLL_FUNCTIONS gFunctionTable; /* = { NULL, // pfnGameInit @@ -831,8 +833,8 @@ C_DLLEXPORT int GetEntityAPI2(DLL_FUNCTIONS *pFunctionTable, int *interfaceVersi return(FALSE); } - gFunctionTable.pfnClientConnect = ClientConnect; - gFunctionTable.pfnClientDisconnect = ClientDisconnect; + //gFunctionTable.pfnClientConnect = ClientConnect; <--- removed, only needed with akimbot + //gFunctionTable.pfnClientDisconnect = ClientDisconnect; <--- removed, only needed with akimbot //gFunctionTable.pfnClientPutInServer = ClientPutInServer; gFunctionTable.pfnPlayerPreThink = PlayerPreThink; @@ -879,8 +881,8 @@ void TraceLine(const float *v1, const float *v2, int fNoMonsters, edict_t *pentT } TraceResult; */ - if (g_bot[ENTINDEX(pentToSkip)]) - RETURN_META(MRES_IGNORED); + /*if (g_bot[ENTINDEX(pentToSkip)]) <--- removed, only needed with akimbot + RETURN_META(MRES_IGNORED);*/ TRACE_LINE(v1, v2, fNoMonsters, pentToSkip, ptr); // pentToSkip gotta be the one that is shooting, so filter it @@ -956,7 +958,7 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, m g_zones_toHit[i] = (1<