Removed botrelated code

This commit is contained in:
Johnny Bergström 2004-03-12 11:19:44 +00:00
parent d819a55802
commit 1e78c58aa9
2 changed files with 8 additions and 6 deletions

View File

@ -719,6 +719,7 @@ void PlayerPreThink(edict_t *pEntity)
RETURN_META(MRES_IGNORED); RETURN_META(MRES_IGNORED);
} }
/* <--- removed, only needed with akimbot
int ClientConnect(edict_t *pPlayer, const char *pszName, const char *pszAddress, char szRejectReason[128]) int ClientConnect(edict_t *pPlayer, const char *pszName, const char *pszAddress, char szRejectReason[128])
{ {
int index = ENTINDEX(pPlayer); int index = ENTINDEX(pPlayer);
@ -755,6 +756,7 @@ void ClientDisconnect(edict_t *pEntity)
RETURN_META(MRES_IGNORED); RETURN_META(MRES_IGNORED);
} }
*/
DLL_FUNCTIONS gFunctionTable; /* = { DLL_FUNCTIONS gFunctionTable; /* = {
NULL, // pfnGameInit NULL, // pfnGameInit
@ -831,8 +833,8 @@ C_DLLEXPORT int GetEntityAPI2(DLL_FUNCTIONS *pFunctionTable, int *interfaceVersi
return(FALSE); return(FALSE);
} }
gFunctionTable.pfnClientConnect = ClientConnect; //gFunctionTable.pfnClientConnect = ClientConnect; <--- removed, only needed with akimbot
gFunctionTable.pfnClientDisconnect = ClientDisconnect; //gFunctionTable.pfnClientDisconnect = ClientDisconnect; <--- removed, only needed with akimbot
//gFunctionTable.pfnClientPutInServer = ClientPutInServer; //gFunctionTable.pfnClientPutInServer = ClientPutInServer;
gFunctionTable.pfnPlayerPreThink = PlayerPreThink; gFunctionTable.pfnPlayerPreThink = PlayerPreThink;
@ -879,8 +881,8 @@ void TraceLine(const float *v1, const float *v2, int fNoMonsters, edict_t *pentT
} TraceResult; } TraceResult;
*/ */
if (g_bot[ENTINDEX(pentToSkip)]) /*if (g_bot[ENTINDEX(pentToSkip)]) <--- removed, only needed with akimbot
RETURN_META(MRES_IGNORED); RETURN_META(MRES_IGNORED);*/
TRACE_LINE(v1, v2, fNoMonsters, pentToSkip, ptr); // pentToSkip gotta be the one that is shooting, so filter it 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<<HITGROUP_GENERIC) | (1<<HITGROUP_HEAD) | (1<<HITGROUP_CHEST) | (1<<HITGROUP_STOMACH) | (1<<HITGROUP_LEFTARM) | (1<<HITGROUP_RIGHTARM)| (1<<HITGROUP_LEFTLEG) | (1<<HITGROUP_RIGHTLEG); g_zones_toHit[i] = (1<<HITGROUP_GENERIC) | (1<<HITGROUP_HEAD) | (1<<HITGROUP_CHEST) | (1<<HITGROUP_STOMACH) | (1<<HITGROUP_LEFTARM) | (1<<HITGROUP_RIGHTARM)| (1<<HITGROUP_LEFTLEG) | (1<<HITGROUP_RIGHTLEG);
g_zones_getHit[i] = (1<<HITGROUP_GENERIC) | (1<<HITGROUP_HEAD) | (1<<HITGROUP_CHEST) | (1<<HITGROUP_STOMACH) | (1<<HITGROUP_LEFTARM) | (1<<HITGROUP_RIGHTARM)| (1<<HITGROUP_LEFTLEG) | (1<<HITGROUP_RIGHTLEG); g_zones_getHit[i] = (1<<HITGROUP_GENERIC) | (1<<HITGROUP_HEAD) | (1<<HITGROUP_CHEST) | (1<<HITGROUP_STOMACH) | (1<<HITGROUP_LEFTARM) | (1<<HITGROUP_RIGHTARM)| (1<<HITGROUP_LEFTLEG) | (1<<HITGROUP_RIGHTLEG);
// Also set to be bot until proven not in ClientDisconnect (that seems to be only called by real players...) // Also set to be bot until proven not in ClientDisconnect (that seems to be only called by real players...)
g_bot[i] = true; // g_bot[i] = true; <--- removed, only needed with akimbot
} }
// JGHG added stuff above // JGHG added stuff above

View File

@ -108,5 +108,5 @@ cvar_t fun_version = {"fun_version", "0.1", FCVAR_EXTDLL};
int g_zones_toHit[33]; // where can people hit other people? int g_zones_toHit[33]; // where can people hit other people?
int g_zones_getHit[33]; // where can people get hit by other people? int g_zones_getHit[33]; // where can people get hit by other people?
bool g_silent[33]; // used for set_user_footsteps() bool g_silent[33]; // used for set_user_footsteps()
bool g_bot[33]; // is user bot? //bool g_bot[33]; // is user bot? <--- removed, only needed with akimbot
// Globals above // Globals above