local desync_func = function(cmd)
if not ui_get(ref.antiaim) then return end
if not (ui_get(lby_breaker) and ui_get(lby.key)) then return end
local local_player = entity_get_local_player()
local weapon = csgo_weapons[entity_get_prop(entity_get_player_weapon(local_player), "m_iItemDefinitionIndex")]
if ent_state.is_ladder(local_player) then return end
if weapon == nil or weapon.type == "grenade" then return end
micro_move(cmd)
--inverter
local body_side = ui_get(lby.body_inverter) and ui_get(lby.desync) or -ui_get(lby.desync)
if cmd.chokedcommands == 0 and cmd.in_attack ~= 1 then
cmd.yaw = cmd.yaw - body_side
cmd.allow_send_packet = false
end
--Spoofs Client to use Roll in MM
local is_mm_value = ffi_cast("bool*", game_rule[0] + 124)
if is_mm_value ~= nil then
if ui_get(lby.roll_enabled) then
ui_set(ref.roll, 0)
cmd.roll = ui_get(lby.roll_inverter) and ui_get(lby.roll) or -ui_get(lby.roll)
if is_mm_value[0] == true then
is_mm_value[0] = 0
is_mm_state = 1
end
else
if is_mm_value[0] == false and is_mm_state == 1 then
cmd.roll = 0
end
end
end
end