From 6f9ec854dcd2d4c75e2b2498e13b4fae93d7d9b7 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 10 Sep 2004 16:05:21 +0000 Subject: [PATCH] Added DLLFunc_Clientinfo something or other --- dlls/fakemeta/dllfunc.cpp | 7 +++++++ dlls/fakemeta/dllfunc.h | 3 ++- dlls/fakemeta/engfunc.cpp | 1 - dlls/fakemeta/engfunc.h | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dlls/fakemeta/dllfunc.cpp b/dlls/fakemeta/dllfunc.cpp index 02b5c838..036a0198 100755 --- a/dlls/fakemeta/dllfunc.cpp +++ b/dlls/fakemeta/dllfunc.cpp @@ -211,6 +211,13 @@ static cell AMX_NATIVE_CALL dllfunc(AMX *amx,cell *params) CHECK_ENTITY(index); iparam1 = gpMetaUtilFuncs->pfnCallGameEntity(PLID,STRING(ALLOC_STRING(temp)),VARS(INDEXENT2(index))); return iparam1; + case DLLFunc_ClientUserInfoChanged: // void ) (edict_t *pEntity, char *infobuffer) + index = cRet[0]; + CHECK_ENTITY(index); + gpGamedllFuncs->dllapi_table->pfnClientUserInfoChanged(INDEXENT2(index),(*g_engfuncs.pfnGetInfoKeyBuffer)(INDEXENT2(index))); + return 1; + + default: MF_Log("Unknown dllfunc entry."); MF_RaiseAmxError(amx, AMX_ERR_NATIVE); diff --git a/dlls/fakemeta/dllfunc.h b/dlls/fakemeta/dllfunc.h index d3c6cdf4..eb6845b0 100755 --- a/dlls/fakemeta/dllfunc.h +++ b/dlls/fakemeta/dllfunc.h @@ -48,7 +48,8 @@ enum DLLFunc_CreateInstancedBaselines, // void ) ( void ); DLLFunc_pfnAllowLagCompensation, // int )( void ); // I know this does not fit with DLLFUNC(), but I dont want another native just for it. - MetaFunc_CallGameEntity // bool (plid_t plid, const char *entStr,entvars_t *pev); + MetaFunc_CallGameEntity, // bool (plid_t plid, const char *entStr,entvars_t *pev); + DLLFunc_ClientUserInfoChanged // void ) (edict_t *pEntity, char *infobuffer) }; #endif //_INCLUDE_DLLFUNC_H diff --git a/dlls/fakemeta/engfunc.cpp b/dlls/fakemeta/engfunc.cpp index 53fe1854..6aeb8cef 100755 --- a/dlls/fakemeta/engfunc.cpp +++ b/dlls/fakemeta/engfunc.cpp @@ -962,7 +962,6 @@ static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params) temp2 = MF_GetAmxString(amx,params[4],1,&len); (*g_engfuncs.pfnSetClientKeyValue)(index,(*g_engfuncs.pfnGetInfoKeyBuffer)(INDEXENT2(index)),temp,temp2); return 1; - default: LOG_CONSOLE(PLID,"[NS2AMX] Unknown engfunc type provided."); return 0; diff --git a/dlls/fakemeta/engfunc.h b/dlls/fakemeta/engfunc.h index 1262e285..76d8be69 100755 --- a/dlls/fakemeta/engfunc.h +++ b/dlls/fakemeta/engfunc.h @@ -77,7 +77,7 @@ enum { EngFunc_WriteAngle, // void (float) EngFunc_InfoKeyValue, // char* ) (char *infobuffer, char *key); EngFunc_SetKeyValue, // void ) (char *infobuffer, char *key, char *value); - EngFunc_SetClientKeyValue // void ) (int clientIndex, char *infobuffer, char *key, char *value); + EngFunc_SetClientKeyValue, // void ) (int clientIndex, char *infobuffer, char *key, char *value); }; #endif //_ENGFUNC_INCLUDE_H