local ffi = require("ffi")
ffi.cdef[[
typedef uintptr_t (__thiscall* GetClientEntity_4242425_t)(void*, int);
]]
local function static_legs()
if not m_static_legs:GetBool() then return end
local lp_entity = g_EntityList:GetLocalPlayer()
if not lp_entity then return end
local ENTITY_LIST_POINTER = ffi.cast("void***", utils.CreateInterface("client.dll", "VClientEntityList003")) or error("Failed to find VClientEntityList003!")
local GET_CLIENT_ENTITY_FN = ffi.cast("GetClientEntity_4242425_t", ENTITY_LIST_POINTER[0][3])
ffi.cast("float*", GET_CLIENT_ENTITY_FN(ENTITY_LIST_POINTER, lp_entity:EntIndex()) + 10100)[0] = 0
cur = g_ClientState.m_choked_commands + 1;
if g_ClientState.m_choked_commands > 1 then
if g_ClientState.m_choked_commands % 2 == 0 then
cur = 2
else
cur = 1
end
end
g_Config:FindVar("Aimbot", "Anti Aim", "Misc", "Leg Movement"):SetInt(cur)
end
cheat.RegisterCallback("prediction", function(cmd)
static_legs()
end)