added ClientUserInfoChanged forward

This commit is contained in:
David Anderson 2006-03-30 00:31:33 +00:00
parent ab443e8254
commit 8c2be55233
2 changed files with 17 additions and 0 deletions

View File

@ -80,6 +80,18 @@ SIMPLE_INT_HOOK_STRING(PrecacheModel);
// pfnPrecacheSound // pfnPrecacheSound
SIMPLE_INT_HOOK_STRING(PrecacheSound); 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) void SetModel(edict_t *e, const char *m)
{ {
FM_ENG_HANDLE(FM_SetModel, (Engine[FM_SetModel].at(i), ENTINDEX(e), 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); fId = MF_RegisterSPForwardByName(amx, funcname, FP_CELL, FP_CELL, FP_DONE);
NEWDLLHOOK(ShouldCollide); NEWDLLHOOK(ShouldCollide);
break; break;
case FM_ClientInfoChanged:
fId = MF_RegisterSPForwardByName(amx, funcname, FP_CELL, FP_DONE);
DLLHOOK(ClientUserInfoChanged);
break;
#if 0 #if 0
// I know this does not fit with DLLFUNC(), but I dont want another native just for it. // I know this does not fit with DLLFUNC(), but I dont want another native just for it.

View File

@ -156,6 +156,7 @@ enum {
FM_GameShutdown, FM_GameShutdown,
FM_ShouldCollide, FM_ShouldCollide,
// FM_CvarValue // FM_CvarValue
FM_ClientInfoChanged,
FM_LAST_DONT_USE_ME, FM_LAST_DONT_USE_ME,
}; };