-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Сам дт
сам кл мове
чего не будет хватать пишите
Код:
bool misc::double_tap(CUserCmd* m_pcmd)
{
double_tap_enabled = true;
static auto recharge_rapid_fire = false;
static bool firing_dt = false;
static int last_double_tap = 0;
if (recharge_rapid_fire)
{
recharge_rapid_fire = false;
recharging_double_tap = true;
g_ctx.globals.ticks_allowed = 0;
g_ctx.globals.next_tickbase_shift = 0;
return false;
}
auto max_tickbase_shift = g_ctx.globals.weapon->get_max_tickbase_shift();
if (recharging_double_tap)
{
bool in_attack = m_pcmd->m_buttons & IN_ATTACK;
bool can_recharge = g_ctx.globals.weapon->is_sniper() ? g_ctx.globals.weapon->can_fires(true, max_tickbase_shift) : fabs(g_ctx.globals.fixed_tickbase - last_double_tap) > TIME_TO_TICKS(0.75f);
if (!in_attack && !aim::get().should_stop && can_recharge)
{
recharging_double_tap = false;
double_tap_key = true;
firing_dt = false;
}
else if (in_attack)
{
firing_dt = true;
last_double_tap = g_ctx.globals.fixed_tickbase;
}
}
if (!g_cfg.ragebot.enable)
{
double_tap_enabled = false;
double_tap_key = false;
g_ctx.globals.ticks_allowed = 0;
g_ctx.globals.next_tickbase_shift = 0;
return false;
}
if (!g_cfg.ragebot.double_tap)
{
double_tap_enabled = false;
double_tap_key = false;
g_ctx.globals.ticks_allowed = 0;
g_ctx.globals.next_tickbase_shift = 0;
return false;
}
static bool was_in_dt = false;
if (g_cfg.ragebot.double_tap_key.key <= KEY_NONE || g_cfg.ragebot.double_tap_key.key >= KEY_MAX)
{
double_tap_enabled = false;
double_tap_key = false;
g_ctx.globals.ticks_allowed = 0;
g_ctx.globals.next_tickbase_shift = 0;
return false;
}
if (double_tap_key && g_cfg.ragebot.double_tap_key.key != g_cfg.antiaim.hide_shots_key.key)
hide_shots_key = false;
if (!double_tap_key || g_ctx.local()->m_bGunGameImmunity() || g_ctx.local()->m_fFlags() & FL_FROZEN || g_ctx.globals.fakeducking)
{
double_tap_enabled = false;
if (!firing_dt && was_in_dt)
{
g_ctx.globals.trigger_teleport = true;
g_ctx.globals.teleport_amount = 14;
was_in_dt = false;
}
g_ctx.globals.ticks_allowed = 0;
g_ctx.globals.next_tickbase_shift = 0;
return false;
}
if (m_gamerules()->m_bIsValveDS())
{
double_tap_enabled = false;
g_ctx.globals.ticks_allowed = 0;
g_ctx.globals.next_tickbase_shift = 0;
return false;
}
if (antiaim::get().freeze_check)
return true;
was_in_dt = true;
bool can_peek = !g_ctx.globals.weapon->is_non_aim() && key_binds::get().get_key_bind_state(18);
if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER
&& g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER
&& (m_pcmd->m_buttons & IN_ATTACK || m_pcmd->m_buttons & IN_ATTACK2 && g_ctx.globals.weapon->is_knife())) //-V648
{
auto next_command_number = m_pcmd->m_command_number + 1;
auto user_cmd = m_input()->GetUserCmd(next_command_number);
memcpy(user_cmd, m_pcmd, sizeof(CUserCmd));
user_cmd->m_command_number = next_command_number;
util::copy_command(user_cmd, max_tickbase_shift);
g_ctx.send_packet = true;
if (g_ctx.globals.aimbot_working)
{
g_ctx.globals.double_tap_aim = true;
g_ctx.globals.double_tap_aim_check = true;
}
recharge_rapid_fire = true;
double_tap_enabled = false;
double_tap_key = false;
last_double_tap = g_ctx.globals.fixed_tickbase;
firing_dt = true;
}
else if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER)
g_ctx.globals.tickbase_shift = max_tickbase_shift;
return true;
}
Код:
using CLMove_t = void(__vectorcall*)(float, bool);
void __vectorcall hooks::hooked_clmove(float accumulated_extra_samples, bool bFinalTick)
{
((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);
if (g_ctx.available() && g_ctx.local()->is_alive())
{
if (g_ctx.globals.trigger_teleport)
{
for (int i = 0; i < g_ctx.globals.teleport_amount; i++)
((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);
g_ctx.globals.teleport_amount = 0;
g_ctx.globals.trigger_teleport = false;
}
}
}