amxmodx/dlls/fakemeta/fakemeta_amxx.cpp

20 lines
600 B
C++
Raw Normal View History

2004-07-28 07:14:07 +04:00
#include "fakemeta_amxx.h"
edict_t *g_player_edicts[33]; // Used for INDEXENT() forward.
2004-07-28 07:14:07 +04:00
void OnAmxxAttach()
{
MF_AddNatives(engfunc_natives);
MF_AddNatives(dllfunc_natives);
MF_AddNatives(pev_natives);
MF_AddNatives(forward_natives);
}
// sawce: Do not null out the forward for ServerActivate. It's required for the INDEXENT() fix. (I don't think ServerActivate is planned on being forwarded anyway)
void ServerActivate(edict_t *pEdictList, int edictCount, int clientMax)
{
for(int i = 1; i <= gpGlobals->maxClients;i++)
g_player_edicts[i]=pEdictList + i;
RETURN_META(MRES_IGNORED);
}