if (!valve::g_local_player)
return orig_write_user_cmd_delta_to_buffer(ecx, edx, slot, buffer, from, to, is_new_cmd);
if (hacks::g_exploits->type() == 4) {
// shift tickbase (hacks::g_exploits->ticks_allowed() в качестве шифт эмаунта)
}
const auto move_msg = reinterpret_cast<valve::move_msg_t*>(
[I]reinterpret_cast<std::uintptr_t[/I]>(
reinterpret_cast<std::uintptr_t>(_AddressOfReturnAddress()) - sizeof(std::uintptr_t)
) - 0x58u
);
if (hacks::g_exploits->cur_shift_amount()
|| valve::g_client_state->m_last_cmd_out == hacks::g_exploits->recharge_cmd()) {
if (from == -1) {
if (valve::g_client_state->m_last_cmd_out == hacks::g_exploits->recharge_cmd()) {
move_msg->m_new_cmds = 1;
move_msg->m_backup_cmds = 0;
const auto next_cmd_number = valve::g_client_state->m_choked_cmds + valve::g_client_state->m_last_cmd_out + 1;
for (to = next_cmd_number - move_msg->m_new_cmds + 1; to <= next_cmd_number; ++to) {
if (!orig_write_user_cmd_delta_to_buffer(ecx, edx, slot, buffer, from, to, true))
break;
from = to;
}
}
// default nemesis shift funct (handle_other_shift)
else
hacks::g_exploits->handle_tick_base_shift(ecx, edx, slot, buffer, from, to, move_msg);
}
return true;
}