View Single Post
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 11-24-2020 , 20:41   Re: [L4D2] Airstuck teleportation patch
Reply With Quote #6

Quote:
Originally Posted by BHaType View Post
Airstuck appears if the player in the CreateMove function has set velocity/angles to FLT_MAX;

You can easily track this

PHP Code:
#define IS_NAN(%1) ( (%1) != (%1) )

public Action OnPlayerRunCmd (int clientint &buttonsint &impulsefloat vel[3], float angles[3], intweaponint &subtypeint &cmdnumint &tickcountint &seed)
{
    if ( 
IsFakeClient(client) )
        return;
    
    if ( 
IS_NAN(vel[0]) || IS_NAN(angles[0]) ) 
    {
        
LogMessage("%N is suspected of using airstuck (NAN value!!)"client);
    }

I will try it first, but do you think it will be safe to enable automatic ban ?
JLmelenchon is offline