added ClientUserInfoChanged forward
This commit is contained in:
parent
ab443e8254
commit
8c2be55233
|
@ -80,6 +80,18 @@ SIMPLE_INT_HOOK_STRING(PrecacheModel);
|
|||
// pfnPrecacheSound
|
||||
SIMPLE_INT_HOOK_STRING(PrecacheSound);
|
||||
|
||||
void ClientUserInfoChanged(edict_t *e, char *infobuffer)
|
||||
{
|
||||
FM_ENG_HANDLE(FM_ClientInfoChanged, ((cell)ENTINDEX(e)));
|
||||
RETURN_META(mswi(lastFmRes));
|
||||
}
|
||||
|
||||
void ClientUserInfoChanged_post(edict_t *e, char *infobuffer)
|
||||
{
|
||||
FM_ENG_HANDLE_POST(FM_ClientInfoChanged, ((cell)ENTINDEX(e)));
|
||||
RETURN_META(mswi(lastFmRes));
|
||||
}
|
||||
|
||||
void SetModel(edict_t *e, const char *m)
|
||||
{
|
||||
FM_ENG_HANDLE(FM_SetModel, (Engine[FM_SetModel].at(i), ENTINDEX(e), m));
|
||||
|
@ -1128,6 +1140,10 @@ static cell AMX_NATIVE_CALL register_forward(AMX *amx, cell *params)
|
|||
fId = MF_RegisterSPForwardByName(amx, funcname, FP_CELL, FP_CELL, FP_DONE);
|
||||
NEWDLLHOOK(ShouldCollide);
|
||||
break;
|
||||
case FM_ClientInfoChanged:
|
||||
fId = MF_RegisterSPForwardByName(amx, funcname, FP_CELL, FP_DONE);
|
||||
DLLHOOK(ClientUserInfoChanged);
|
||||
break;
|
||||
#if 0
|
||||
|
||||
// I know this does not fit with DLLFUNC(), but I dont want another native just for it.
|
||||
|
|
|
@ -156,6 +156,7 @@ enum {
|
|||
FM_GameShutdown,
|
||||
FM_ShouldCollide,
|
||||
// FM_CvarValue
|
||||
FM_ClientInfoChanged,
|
||||
FM_LAST_DONT_USE_ME,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user