Added ClientPrintf engine function (request at30137)

This commit is contained in:
Scott Ehlert
2006-05-23 03:26:26 +00:00
parent 7e36a19590
commit ac1e3a9001
7 changed files with 37 additions and 4 deletions

View File

@ -117,7 +117,8 @@ enum {
// Returns pointer to info buffer that can be used with the infobuffer param of InfoKeyValue, SetKeyValue, and SetClientKeyValue
EngFunc_GetInfoKeyBuffer, // char*) (edict_t *e);
EngFunc_AlertMessage // void ) (ALERT_TYPE atype, char *szFmt, ...);
EngFunc_AlertMessage, // void ) (ALERT_TYPE atype, char *szFmt, ...);
EngFunc_ClientPrintf // void ) (edict_t* pEdict, PRINT_TYPE ptype, const char *szMsg);
};
/* Used with dllfunc()
@ -534,7 +535,8 @@ enum {
FM_CmdEnd,
FM_CreateInstBaseline,
FM_CreateBaseline,
FM_GetInfoKeyBuffer
FM_GetInfoKeyBuffer,
FM_ClientPrintf
};
enum TraceResult

View File

@ -190,6 +190,8 @@ stock EF_CreateInstBaseline(CLASSNAME, baseline)
// of EF_InfoKeyValue, EF_SetKeyValue, and EF_SetClientKeyValue
stock EF_GetInfoKeyBuffer(const ENTITY)
return engfunc(EngFunc_GetInfoKeyBuffer, ENTITY)
stock EF_ClientPrintf(const ENTITY, const printType, const MESSAGE[])
return engfunc(EngFunc_ClientPrintf, ENTITY, printType, MESSAGE)
// DLLFuncs
stock DF_GameInit()