2004-07-28 03:14:07 +00:00
# include "fakemeta_amxx.h"
2004-08-05 20:57:03 +00:00
edict_t * g_player_edicts [ 33 ] ; // Used for INDEXENT() forward.
2004-07-28 03:14:07 +00:00
void OnAmxxAttach ( )
{
MF_AddNatives ( engfunc_natives ) ;
MF_AddNatives ( dllfunc_natives ) ;
2004-08-05 20:57:03 +00:00
MF_AddNatives ( pev_natives ) ;
2004-08-06 00:56:48 +00:00
MF_AddNatives ( forward_natives ) ;
2004-08-05 20:57:03 +00:00
}
// 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 ) ;
}