local jump_hc = ui.add_slider_int("Jump hitchance", "ryukox_jumphc", 0, 100, 40)
local ground_hc = ui.add_slider_int("On-ground hitchance", "ryukox_groundhc", 0, 100, 70)
local hitchance = ui.get_slider_int("rage_scout_hitchance")
local flags_nv = se.get_netvar("DT_BasePlayer", "m_fFlags")
entity_t.onground = function(s) return bit32.band(s:get_prop_int(flags_nv), 1) == 1 end
client.register_callback('create_move', function()
if entitylist.get_local_player():onground() then
hitchance:set_value(ground_hc:get_value())
else
hitchance:set_value(jump_hc:get_value())
end
end)