-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
CMiscHacks vuoto :: FakeWalk (CUserCmd * PCMD, bool & bSendPacket)
{
Auto clientstate = g_csgo.m_cl;
Auto netchannelinfo = g_csgo.m_nci;
Auto netchannelhandler = g_csgo.m_nch;
Auto NetClient = g_csgo.m_nc;
choked_ticks auto = netchannelinfo-> m_choked_commands + time2ticks (netchannelinfo-> GetAvgLatency (FLOW_INCOMING) + netchannelinfo-> GetAvgLatency (FLOW_OUTGOING));
if (GetAsyncKeyState (VK_MENU)) {
if (netchannelinfo-> Transmit () && clientstate-> m_last_outgoing_command> clientstate-> m_last_command_ack + choked_ticks) {
while (clientstate-> m_frame_time> g_csgo.m_globals-> m_abs_frametime) {
clientstate-> m_frame_time * = (. choked_ticks * g_cl.m_local-> m_vecVelocity () length_2d ()) / 1.f;
netchannelhandler-> PacketEnd ();
}
}
else {
if (time2ticks (std :: sqrt (clientstate-> m_frame_time + ticks2time (clientstate-> m_delta_tick))) <= clientstate-> m_server_tick) {
g_cl.m_cmd-> m_tick_count + = 10;
g_cl.m_cmd-> m_command_number + = 7 + g_cl.m_cmd-> m_tick_count% 2? 0: 1;
g_cl.m_cmd-> m_buttons | = button_flags_t :: IN_FORWARD;
g_cl.m_cmd-> m_forward_move = g_cl.m_cmd-> m_side_move = 0.f;
g_cl.m_send_packet = falso;
netclient-> SendUpdate ();
}
}
}
}