Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
else // keep up communication even when fakelagging.
{
const auto current_choke = net_channel->choked_packets;
net_channel->choked_packets = 0;
net_channel->send_datagram();
--net_channel->out_sequence_nr;
net_channel->choked_packets = current_choke;
}
about velocity modifier:
just netvar compression + in run cmd or phys_sim add smth like this:
else // keep up communication even when fakelagging.
{
const auto current_choke = net_channel->choked_packets;
net_channel->choked_packets = 0;
net_channel->send_datagram();
--net_channel->out_sequence_nr;
net_channel->choked_packets = current_choke;
}
about velocity modifier:
just netvar compression + in run cmd or phys_sim add smth like this:
i already do the createmove stuff but thats the problem it wont work properly but when i try it on supremacy it works just fine and i do the packet start stuff on both
i already do the createmove stuff but thats the problem it wont work properly but when i try it on supremacy it works just fine and i do the packet start stuff on both
bool allow_packet(int command) {
if (!g_local || !g_local->is_alive())
return true;
if (commands.empty())
return true;
for (int i = 0; i < commands.size(); ++i) {
int cmd = commands.at(i);
if (!cmd || cmd != command)
continue;
commands.erase(commands.begin() + i);
return true;
}
return false;
}
Код:
if (variables::m_packet) {
variables::m_angle = variables::m_cmd->viewangles;
engine_prediction::commands.emplace_back(variables::m_cmd->command_number);
while (engine_prediction::commands.size() > 64)
engine_prediction::commands.pop_front();
}
else {
INetChannel* nci = g_client_state->m_NetChannel;
if (nci) {
const int choke = nci->m_nChokedPackets;
nci->m_nChokedPackets = 0;
nci->send_datagram(nullptr);
--nci->m_nOutSequenceNr;
nci->m_nChokedPackets = choke;
}
}
there is nothing wrong with it cuz i tried it in other sources i had laying around and it did its job.
most likely some dumb ass hook i added while cride "helped" me.
also DONT ASK WHY I USE m_ on namespaces it looks cool:blush:
Код:
void __fastcall packets::packet_start::hook(void* ecx, void* edx, int incoming, int outgoing) {
if (engine_prediction::allow_packet(outgoing))
return original(ecx, edx, incoming, outgoing);
}
bool allow_packet(int command) {
if (!g_local || !g_local->is_alive())
return true;
if (commands.empty())
return true;
for (int i = 0; i < commands.size(); ++i) {
int cmd = commands.at(i);
if (!cmd || cmd != command)
continue;
commands.erase(commands.begin() + i);
return true;
}
return false;
}
Код:
if (variables::m_packet) {
variables::m_angle = variables::m_cmd->viewangles;
engine_prediction::commands.emplace_back(variables::m_cmd->command_number);
while (engine_prediction::commands.size() > 64)
engine_prediction::commands.pop_front();
}
else {
INetChannel* nci = g_client_state->m_NetChannel;
if (nci) {
const int choke = nci->m_nChokedPackets;
nci->m_nChokedPackets = 0;
nci->send_datagram(nullptr);
--nci->m_nOutSequenceNr;
nci->m_nChokedPackets = choke;
}
}
there is nothing wrong with it cuz i tried it in other sources i had laying around and it did its job.
most likely some dumb ass hook i added while cride "helped" me.
also DONT ASK WHY I USE m_ on namespaces it looks cool:blush:
Код:
void __fastcall packets::packet_start::hook(void* ecx, void* edx, int incoming, int outgoing) {
if (engine_prediction::allow_packet(outgoing))
return original(ecx, edx, incoming, outgoing);
}