Some engfunc questions
I wanna know what what function does and what are/mean there arguments.
PHP Code:
1. When I use EngFunc_ClientPrintf... And setting print_type to 1 it is a bit random (normal print in center / scroll print in center). Question is: why? 2. Is EngFunc_ClientPrintf the same as engclient_print native? 3. What is EngFunc_ServerPrint and in what cases it is fired? 4. Also never noticed before this function EngFunc_AlertMessage. How to use it/what it does/in what cases is fired? P.S. Mostly I'm interested in 4th question. |
Re: Some engfunc questions
1.
2. Yes. ( #define CLIENT_PRINT (*g_engfuncs.pfnClientPrintf) ) 3. Showing text in the server console ? Probably the same than server_print() except we can format with that. 4. Seems to be all related to log messages. ( see ALERT define in the HLSDK ). For alert type, see fakemeta_const.inc. I'm using the forward here or here. |
Re: Some engfunc questions
Actually I think server_print() calls EngFunc_ServerPrint internally, but always apends a newline to whatever text you passed to it. The only possible utility for EngFunc_ServerPrint is if you don't want to print a new line for some reason.
|
Re: Some engfunc questions
AlertMessage
from engine/eiface.h: void AlertMessage(ALERT_TYPE atype, char *szFmt, ...); ALERT() comments: Print an alert message. atype is one of:amxx hook this function with atype = "at_logged" to hook logevent |
| All times are GMT -4. The time now is 09:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.