View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-26-2014 , 19:40   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #191

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.

If client haves cl_lw cvar enabled, it means that haves weapon prediction enabled = no need to send weapons animations.
Usage:

PHP Code:
if(engfunc(EngFunc_CanSkipPlayer(index))
{
    
// client has weapon prediction enabled
}
else
{
    
// client has weapon prediction disabled, server will sent him everything from his weapons.

Parameters:
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.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 07-26-2014 at 19:41.
meTaLiCroSS is offline