|
Senior Member
|
11-24-2020
, 20:41
Re: [L4D2] Airstuck teleportation patch
|
#6
|
Quote:
Originally Posted by BHaType
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 client, int &buttons, int &impulse, float vel[3], float angles[3], int& weapon, int &subtype, int &cmdnum, int &tickcount, int &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 ?
|
|
|
|