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:
Steve Dudenhoeffer
2004-08-05 20:57:03 +00:00
parent 5dd3fe742c
commit 7f41ac3410
6 changed files with 571 additions and 67 deletions

View File

@ -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);
}