Пользователь
-
Автор темы
- #1
otc3 keybinds
ss
ss
C++:
void misc::keybind_list()
{
if (!g_cfg.misc.keybind_list)
return;
static int width, height;
m_engine()->GetScreenSize(width, height);
int x{ 15 };
int offset = 1;
render::get().rect_filled(x + 10, height / 2 + 11, 200, 5 + 11, { 10, 10, 10, 150 });
render::get().text(fonts[NAME], x + 10 + 76, height / 2 + 12, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "keybinds");
render::get().gradient(x + 10, height / 2 + 10, 100, 2, Color(208, 167, 121), Color(247, 229, 181), GRADIENT_HORIZONTAL);
render::get().gradient(x + 110, height / 2 + 10, 100, 2, Color(247, 229, 181), Color(208, 167, 121), GRADIENT_HORIZONTAL);
if (misc::get().double_tap_key)
{
if (key_binds::get().get_key_bind_mode(2) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] double tap");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] double tap");
offset = offset + 1;
}
if (misc::get().hide_shots_key)
{
if (key_binds::get().get_key_bind_mode(12) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] hide shots");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] hide shots");
offset = offset + 1;
}
if (key_binds::get().get_key_bind_state(4 + g_ctx.globals.current_weapon))
{
if (key_binds::get().get_key_bind_mode(4 + g_ctx.globals.current_weapon) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] min damage override");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] min damage override");
offset = offset + 1;
}
if (key_binds::get().get_key_bind_state(22))
{
if (key_binds::get().get_key_bind_mode(22) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] body aim");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] body aim");
offset = offset + 1;
}
if (key_binds::get().get_key_bind_state(3))
{
if (key_binds::get().get_key_bind_mode(3) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] safe points");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] safe points");
offset = offset + 1;
}
if (key_binds::get().get_key_bind_state(21))
{
if (key_binds::get().get_key_bind_mode(21) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] slow walk");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] slow walk");
offset = offset + 1;
}
if (key_binds::get().get_key_bind_state(20))
{
if (key_binds::get().get_key_bind_mode(20) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] fake duck");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] fake duck");
offset = offset + 1;
}
if (key_binds::get().get_key_bind_state(19))
{
if (key_binds::get().get_key_bind_mode(19) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] edge jump");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] edge jump");
offset = offset + 1;
}
if (key_binds::get().get_key_bind_state(18))
{
if (key_binds::get().get_key_bind_mode(18) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] auto peek");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] auto peek");
offset = offset + 1;
}
if (key_binds::get().get_key_bind_state(16))
{
if (key_binds::get().get_key_bind_mode(16) == HOLD)
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[holding] anti-aim inverter");
else
render::get().text(fonts[NAME], x + 10 + 6, height / 2 + 15 + 13 * offset, { 255, 255, 255, 255 }, HFONT_CENTERED_NONE, "[toggled] anti-aim inverter");
offset = offset + 1;
}
}