pitchexploit = ui.add_checbox("Enable")
pitchexploitkey = ui.add_cog("Bind", false, true)
local PreviousSimulationTime = 0
local DifferenceOfSimulation = 0
function SimulationDifference()
local LocalPlayer = entity_list.get_client_entity(engine.get_local_player())
local CurrentSimulationTime = LocalPlayer:get_prop("DT_BaseAnimating", "m_flSimulationTime"):get_int()
local Difference = CurrentSimulationTime - (PreviousSimulationTime + 0.75)
PreviousSimulationTime = CurrentSimulationTime
DifferenceOfSimulation = Difference
return DifferenceOfSimulation
end
local function DeffensivePitch()
local b = ui.get("Rage", "Anti-aim", "General", "Pitch")
if menu.misc.pitchexploit:get() then
if menu.misc.pitchexploitkey:get_key() == true then
if SimulationDifference() <= -1 then
b:set(2)
else
if math.floor(global_vars.curtime * 26) % 16 == 0 and client.choked_commands() < 2 then
b:set(2)
else
b:set(1)
end
end
else
b:set(1)
end
end
end
callbacks.register("paint", DeffensivePitch);