xhookLua
Game

3D hitboxes

Enemy head hitboxes drawn in the world, hidden by walls.

callbacks.register("on_draw_3d", function()
    for _, p in ipairs(world.get_players(true)) do
        if p:is_alive() then
            draw3d.obb(p:obb_min(0), p:obb_max(0), p:hitbox_matrix(0), { 255, 60, 60, 200 })
        end
    end
end)

Add draw3d.set_depth(false) at the top to see them through walls.

3D hitboxes ยท Lua API ยท xhook