* first open client.cpp and search for that USER_MSG_INTERCEPT(TeamInfo)
over it u add this
Code:
USER_MSG_INTERCEPT(Health)
{
BEGIN_READ(pbuf,iSize)
me.iHealth = READ_BYTE()
return USER_MSG_CALL(Health)
}
* then we search for int HookUserMsg (char *szMsgName, pfnUserMsgHook pfn)
and add this
Code:
REDIRECT_MESSAGE( Health )
*k now we have the health registered and can read it out i stop this hear know cuz i must thanks panzer and w00t.nl that they helped me with it first time!
*ok now we go to int HUD_Redraw (float x, int y) and packing this draw code in it
Code:
标签:
USER_MSG_INTERCEPT
TeamInfo
client
search
上传时间:
2016-01-22
上传用户:ynzfm