Пользователь
-
Автор темы
- #1
gamesense indicators
ss
ss
C++:
void misc::indicators()
{
if (!g_cfg.misc.indicators)
return;
auto x = g_cfg.misc.indicator_x;
auto y = g_cfg.misc.indicator_y;
auto width = 197;
auto height = 47;
render::get().rect_filled(x + 44, y - 1, width + 2, height + 2, Color(0, 0, 0, 255));
render::get().rect_filled(x + 45, y, width, height, Color(34, 34, 34, 255));
render::get().rect_filled(x + 50, y + 7, width - 11, height - 12, Color(0, 0, 0, 255));
render::get().rect(x + 50, y + 5, width - 10, height - 9, Color(56, 56, 56, 255));
render::get().rect(x + 45, y, width, height, Color(56, 56, 56, 255));
width = 93;
render::get().gradient(x + 51, y + 6, width - 1, 1, Color(59, 175, 222, 255), Color(202, 70, 205, 255), GRADIENT_HORIZONTAL);
render::get().gradient(x + 51 + width, y + 6, width - 1, 1, Color(202, 70, 205, 255), Color(201, 227, 58, 255), GRADIENT_HORIZONTAL);
int lag = fakelag::get().max_choke;
int body_yaw = antiaim::get().desync_angle;
int final_yaw = body_yaw;
if (body_yaw < 0)
final_yaw = 0;
render::get().text(fonts[NAME], x + 56, y + 18, Color(255, 255, 255, 255), HFONT_CENTERED_Y, "Fake lag");
render::get().rect_filled(x + 130, y + 16, 100, 5, Color(50, 50, 50, 255));
render::get().rect_filled(x + 130, y + 16, lag * 6.25, 5, Color(236, 236, 236, 255));
render::get().text(fonts[NAME], x + 130 + lag * 6.25, y + 19, Color(255, 255, 255, 255), HFONT_CENTERED_Y, std::to_string(lag).c_str());
render::get().text(fonts[NAME], x + 56, y + 32, Color(255, 255, 255, 255), HFONT_CENTERED_Y, "Body yaw");
render::get().rect_filled(x + 130, y + 30, 100, 5, Color(50, 50, 50, 255));
render::get().rect_filled(x + 130, y + 30, final_yaw * 0.55, 5, Color(236, 236, 236, 255));
render::get().text(fonts[NAME], x + 130 + final_yaw * 0.55, y + 34, Color(255, 255, 255, 255), HFONT_CENTERED_Y, std::to_string(body_yaw).c_str());
y += 14;
if (misc::get().double_tap_enabled)
{
height += 14;
render::get().text(fonts[NAME], x + 56, y + 32, Color(255, 255, 255, 255), HFONT_CENTERED_Y, "Double tap");
render::get().text(fonts[NAME], x + 176, y + 32, Color(199, 234, 70, 255), HFONT_CENTERED_Y, "[Offensive]");
y += 14;
}
if (key_binds::get().get_key_bind_state(20))
{
height += 14;
render::get().text(fonts[NAME], x + 56, y + 32, Color(255, 255, 255, 255), HFONT_CENTERED_Y, "Duck peek assist");
render::get().text(fonts[NAME], x + 209, y + 32, Color(199, 234, 70, 255), HFONT_CENTERED_Y, "[On]");
y += 14;
}
if (misc::get().hide_shots_enabled)
{
height += 14;
render::get().text(fonts[NAME], x + 56, y + 32, Color(255, 255, 255, 255), HFONT_CENTERED_Y, "On shot antiaim");
render::get().text(fonts[NAME], x + 209, y + 32, Color(199, 234, 70, 255), HFONT_CENTERED_Y, "[On]");
y += 14;
}
if (key_binds::get().get_key_bind_state(3))
{
height += 14;
render::get().text(fonts[NAME], x + 56, y + 32, Color(255, 255, 255, 255), HFONT_CENTERED_Y, "Force body aim");
render::get().text(fonts[NAME], x + 209, y + 32, Color(199, 234, 70, 255), HFONT_CENTERED_Y, "[On]");
y += 14;
}
if (key_binds::get().get_key_bind_state(18))
{
height += 14;
render::get().text(fonts[NAME], x + 56, y + 32, Color(255, 255, 255, 255), HFONT_CENTERED_Y, "Quick peek");
render::get().text(fonts[NAME], x + 209, y + 32, Color(199, 234, 70, 255), HFONT_CENTERED_Y, "[On]");
y += 14;
}
}