notgoodusename / OsirisAndExtra

Other
127 stars 64 forks source link

skeet scope #382

Open gamesenseltdbase opened 1 year ago

gamesenseltdbase commented 1 year ago

can someone spoonfeed me simple scope lines please?

JannesBonk commented 1 year ago

can someone spoonfeed me simple scope lines please?

maybe learn some imgui and some c++ then start working by your own

voidzero666 commented 1 year ago

https://www.unknowncheats.me/forum/counterstrike-global-offensive/303542-dynamic-scope-lines.html

ptr1226 commented 1 year ago

can someone spoonfeed me simple scope lines please?

maybe learn some imgui and some c++ then start working by your own

what does drawing lines on the screen has to do with imgui? tf?

JannesBonk commented 1 year ago

can someone spoonfeed me simple scope lines please?

maybe learn some imgui and some c++ then start working by your own

what does drawing lines on the screen has to do with imgui? tf?

thats how i made my scope

ptr1226 commented 1 year ago

BRUH are you serious? do you even have iq? you dont do that with imgui xD

JannesBonk commented 1 year ago

BRUH are you serious? do you even have iq? you dont do that with imgui xD

prove me wrong image

JannesBonk commented 1 year ago

image

Wolfyyta commented 1 year ago

If you have ImGui implemented do like @JannesBonk did. If you dont have ImGui implemented (like me) use DirectX to render:

void CRender::rect_gradient(gradient_t type, color_t start, color_t end, float x, float y, float w, float h)
{
    vertex_t vertice[4] =
    {
        vertex_t(x, y, 1.0f, start),
        vertex_t(x + w, y, 1.0f, type == gradient_t::VERTICAL ? start : end),
        vertex_t(x, y + h, 1.0f, type == gradient_t::VERTICAL ? end : start),
        vertex_t(x + w, y + h, 1.0f, end),
    };

    m_device->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, &vertice, sizeof(vertex_t));
}
Wolfyyta commented 1 year ago

The logic is left to the user to understand on how to draw. Tip: g_csgo.m_engine->get_screen_size(&width, &height)