-
Автор темы
- #1
по последней своей теме я понял что никто мне не сможет помочь, и я решил перепастить другой даблтап.
вроде всё нормально но столкнулся с проблемой что речарджа и такого дабл тапа нету.
что делать не знаю, надеюсь на вашу помощь. заранее спасибо.
вроде всё нормально но столкнулся с проблемой что речарджа и такого дабл тапа нету.
что делать не знаю, надеюсь на вашу помощь. заранее спасибо.
misc.cpp:
bool aim::update_peek_state()
{
std::vector<int> allowed_hitbox;
//с пропуском в один хитбокс.
// allowed_hitbox.push_back(HITBOX_HEAD);
allowed_hitbox.push_back(HITBOX_PELVIS);
allowed_hitbox.push_back(HITBOX_LOWER_CHEST);
allowed_hitbox.push_back(HITBOX_UPPER_CHEST);
for (auto i = 1; i <= m_globals()->m_maxclients; i++)
{
auto e = static_cast<player_t*>(m_entitylist()->GetClientEntity(i));
if (!e->valid(true))
continue;
auto records = &player_records[i]; //-V826
if (records->empty())
continue;
auto record = &records->front();
record->adjust_player();
if (!record->valid())
continue;
for (auto choice_hitbox : allowed_hitbox)
{
auto hitbox_position = record->player->hitbox_position_matrix(choice_hitbox, record->matrixes_data.main);
aimbot_dlc.predicted_damage = autowall::get().wall_penetration(aimbot_dlc.predicted_eye_pos, hitbox_position, record->player).damage;
aimbot_dlc.unpredicted_damage = autowall::get().wall_penetration(g_ctx.globals.eye_pos, hitbox_position, record->player).damage;
//variables
m_debugoverlay()->AddBoxOverlay(aimbot_dlc.predicted_eye_pos, Vector(-0.7f, -0.7f, -0.7f), Vector(0.7f, 0.7f, 0.7f), Vector(0.f, 0.f, 0.f), 0, 128, 0, 100, m_globals()->m_intervalpertick * 2);
m_debugoverlay()->AddBoxOverlay(aimbot_dlc.unpredicted_eye_pos, Vector(-0.7f, -0.7f, -0.7f), Vector(0.7f, 0.7f, 0.7f), Vector(0.f, 0.f, 0.f), 255, 0, 0, 100, m_globals()->m_intervalpertick * 2);
if (aimbot_dlc.predicted_damage > 0.f && aimbot_dlc.unpredicted_damage <= 0.f)
{
g_ctx.globals.accepted_peek = true;
continue;
}
g_ctx.globals.accepted_peek = false;
}
}
return true;
}
void misc::double_tap_deffensive(CUserCmd* m_pcmd)
{
if (g_ctx.local()->m_hActiveWeapon().Get() || g_ctx.globals.weapon)
return;
if (c_config::get()->b["rage_dt"] || (!c_config::get()->b["rage_enabled"]) || (c_config::get()->i["rage_dt_key"] <= KEY_NONE || c_config::get()->i["rage_dt_key"] >= KEY_MAX))
{
if (aim::get().update_peek_state())
{
g_ctx.globals.accepted_peek = true;
g_ctx.globals.tickbase_shift = 13;
return;
}
else
g_ctx.globals.accepted_peek = false;
}
g_ctx.globals.tickbase_shift = 13;
}
bool misc::double_tap(CUserCmd* m_pcmd)
{
double_tap_enabled = true;
static auto recharge_double_tap = false;
static auto last_double_tap = 0;
if (recharge_double_tap)
{
recharge_double_tap = false;
recharging_double_tap = true;
g_ctx.globals.ticks_allowed = 0;
g_ctx.globals.next_tickbase_shift = 0;
return false;
}
if (recharging_double_tap)
{
if (!aim::get().should_stop && fabs(g_ctx.globals.fixed_tickbase - last_double_tap) > TIME_TO_TICKS(0.35f))
{
last_double_tap = 0;
recharging_double_tap = false;
double_tap_key = true;
}
else if (m_pcmd->m_buttons & IN_ATTACK)
last_double_tap = g_ctx.globals.fixed_tickbase;
}
if (c_config::get()->b["rage_dt"] && c_config::get()->auto_check(c_config::get()->i["rage_dt_key"], c_config::get()->i["rage_dt_key_style"]) != (!c_config::get()->auto_check(c_config::get()->i["hs_key"], c_config::get()->i["hs_key_style"])))
hide_shots_key = false;
if (c_config::get()->b["rage_dt"] || (!c_config::get()->b["rage_enabled"]) || (c_config::get()->i["rage_dt_key"] <= KEY_NONE || c_config::get()->i["rage_dt_key"] >= KEY_MAX) || !g_ctx.local()->is_alive())
{
double_tap_enabled = false;
double_tap_key = false;
g_ctx.globals.ticks_allowed = 0;
g_ctx.globals.next_tickbase_shift = 0;
return false;
}
if ((c_config::get()->i["rage_dt_key"]) || g_ctx.local()->m_bGunGameImmunity() || g_ctx.local()->m_fFlags() & FL_FROZEN || g_ctx.globals.fakeducking)
{
double_tap_enabled = false;
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 (antiaim::get().freeze_check)
return true;
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.weapon->m_iItemDefinitionIndex() != WEAPON_HEALTHSHOT && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_C4 && !g_ctx.globals.weapon->is_knife() && m_pcmd->m_buttons & IN_ATTACK) //-V648
{
auto next_command_number = m_pcmd->m_command_number + 1;
auto user_cmd = m_input()->GetUserCmdRet(next_command_number);
memcpy(user_cmd, m_pcmd, sizeof(CUserCmd)); //-V598
user_cmd->m_command_number = next_command_number;
util::copy_command(user_cmd, max_tickbase_shift);
if (double_tap_key)
double_tap_deffensive(m_pcmd);
if (g_ctx.globals.aimbot_working)
{
g_ctx.globals.double_tap_aim = true;
g_ctx.globals.double_tap_aim_check = true;
}
recharge_double_tap = true;
double_tap_enabled = false;
double_tap_key = false;
last_double_tap = g_ctx.globals.fixed_tickbase;
}
else if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_HEALTHSHOT && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_C4 && !g_ctx.globals.weapon->is_knife() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER)
g_ctx.globals.tickbase_shift = max_tickbase_shift;
return true;
}