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,5 +1,6 @@
|
||||
#include "fakemeta_amxx.h"
|
||||
|
||||
|
||||
CVector<int> Engine[ENGFUNC_NUM+10];
|
||||
CVector<int> EnginePost[ENGFUNC_NUM+10];
|
||||
cell mCellResult;
|
||||
@ -11,6 +12,8 @@ const char *mlStringResult;
|
||||
int retType = 0;
|
||||
int lastFmRes = FMRES_IGNORED;
|
||||
|
||||
|
||||
|
||||
#define ENGHOOK(pfnCall) \
|
||||
if (engtable->pfn##pfnCall == NULL) \
|
||||
engtable->pfn##pfnCall = pfnCall
|
||||
@ -89,6 +92,8 @@ static cell AMX_NATIVE_CALL fm_return(AMX *amx, cell *params)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int PrecacheModel(char *s)
|
||||
{
|
||||
FM_ENG_HANDLE(FM_PrecacheModel, (Engine[FM_PrecacheModel].at(i), s));
|
||||
@ -176,7 +181,7 @@ void ChangePitch(edict_t *ent)
|
||||
edict_t *FindEntityByString(edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue)
|
||||
{
|
||||
FM_ENG_HANDLE(FM_FindEntityByString, (Engine[FM_FindEntityByString].at(i), ENTINDEX(pEdictStartSearchAfter), pszField, pszValue));
|
||||
RETURN_META_VALUE(mswi(lastFmRes), INDEXENT((int)mlCellResult));
|
||||
RETURN_META_VALUE(mswi(lastFmRes), INDEXENT2((int)mlCellResult));
|
||||
}
|
||||
|
||||
int GetEntityIllum(edict_t *pent)
|
||||
|
Reference in New Issue
Block a user