Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta function:
Code:
EngFunc_CanSkipPlayer Description: Returns 1 or 0 depending of client's cl_lw cvar value (if cl_lw different from 0, returns 1). This functions is used by the mod for checking if player has weapon prediction enabled. Mod uses CanSkipPlayer on weapons, directly on SendWeaponAnim function.Usage: PHP Code:
index = client's index (must be a player)Not really an important snippet, but it will be useful for someone. May this function be unknown for a lot of scripters. |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Fakemeta function:
Code:
EngFunc_Time Description: Returns time in seconds (float) since the game started. Rather the same as tickcount(). It seems to not be used by the mod (it's useless anyway).Usage: PHP Code:
PHP Code:
no params for this functionAnother not really important function, but as many others, it's unknown for many scripters. |
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
@meTaLiCroSS, from what I see EngFunc_Time acts like get_gametime. AFAIK the value returned by get_gametime is increased only in next frame. In your last example, if the execution of the 3 private functions happen in the same frame, it will print 0. Is this right ?
|
Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Quote:
|
All times are GMT -4. The time now is 09:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.