View Single Post
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 11-24-2020 , 19:09   Re: [L4D2] Airstuck teleportation patch
Reply With Quote #5

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);
    }

__________________
cry

Last edited by BHaType; 11-24-2020 at 19:17.
BHaType is offline
Send a message via AIM to BHaType