Added set_pev
Added punchangle to pev/set_pev Added INDEXENT fix (fixed all occurances of INDEXENT as well) Added pev_natives on amxx_attach
This commit is contained in:
@ -1,7 +1,18 @@
|
||||
#include "fakemeta_amxx.h"
|
||||
|
||||
edict_t *g_player_edicts[33]; // Used for INDEXENT() forward.
|
||||
|
||||
void OnAmxxAttach()
|
||||
{
|
||||
MF_AddNatives(engfunc_natives);
|
||||
MF_AddNatives(dllfunc_natives);
|
||||
}
|
||||
MF_AddNatives(pev_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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user