Raised This Month: $12 Target: $400
 3% 

[INFO] Fakemeta & Ham detailed function descriptions and examples


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #36

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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode