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.
__________________