What does this plugin do?
Prevents players from lagging other players by using the Pyro Airblast glitch.
I created this because I get very laggy whenever a player performs this glitch (FPS drop)
How does a player "activate" the glitch?
- Go Pyro with normal Flamethrower
- Hold down Primary Fire and QUICKLY press Alt Fire (air blast)
- If you see your ammo go down but don't see the flame particle then the glitch occurred.
sm_airblast_glitchfix_version Shows current version
sm_airblast_glitchfix_enable <0/1> Enable Airblast Glitch Fix
How it works:
It uses the OnPreThink hook to detect an attempted glitch and if the glitch is found then it just "disables" Primary Fire button.
Video of the Glitch:
Requires SDKHooks: http://forums.alliedmods.net/showthread.php?t=106748
-added check of current weapon to make sure that it is the Flamethrower
-corrected late load detection
-Removed weapon check on Pyro as it was unnecessary
-Corrected cvar to sm_airblast_glitchfix_version instead of airblast_glitchfix_version
if(TF2_GetPlayerClass(client) != TFClass_Pyro)
new iButtons = GetClientButtons(client);
if(prevButtonAttack2[client] && iButtons & IN_ATTACK && !(iButtons & IN_ATTACK2))
iButtons &= ~IN_ATTACK;
SetEntProp(client, Prop_Data, "m_nButtons", iButtons);
//PrintToChat(client, "Glitch detected!");
if(iButtons & IN_ATTACK && iButtons & IN_ATTACK2)
prevButtonAttack2[client] = true;
if(!(iButtons & IN_ATTACK2))
prevButtonAttack2[client] = false;