const pitchZeroOnLand = function () {
if (!UI.GetValue("Script items", "Pitch 0 on land")) return;
if (!Entity.GetLocalPlayer()) return;
const localPlayer = Entity.GetLocalPlayer();
const localPlayerFlags = Entity.GetProp(localPlayer, "CBasePlayer", "m_fFlags");
if (localPlayerFlags == 256 || localPlayerFlags == 262) {
groundCounter = 0;
}
if (localPlayerFlags == 257 || localPlayerFlags == 261 || localPlayerFlags == 263) {
groundCounter = groundCounter + 4;
}
if (groundCounter > 45 && groundCounter < 250){
UI.SetValue("Anti-Aim", "Extra", "Pitch", 3);
} else {
UI.SetValue("Anti-Aim", "Extra", "Pitch", 1);
}
}
Cheat.RegisterCallback("Draw", "pitchZeroOnLand");