Fix fakelag misses

This commit is contained in:
BenCat07 2020-06-10 21:19:25 +02:00
parent 75a4e22b66
commit 14d7888cdb
2 changed files with 3 additions and 1 deletions

View File

@ -307,7 +307,6 @@ static void CreateMove()
// target_eid = target_entity->m_IDX;
if (only_can_shoot && g_pLocalPlayer->weapon()->m_iClassID() != CL_CLASS(CTFMinigun) && g_pLocalPlayer->weapon()->m_iClassID() != CL_CLASS(CTFLaserPointer))
{
// Handle Compound bow
if (g_pLocalPlayer->weapon()->m_iClassID() == CL_CLASS(CTFCompoundBow))
{
@ -1060,6 +1059,7 @@ void DoAutoshoot(CachedEntity *target_entity)
auto hitbox = calculated_data_array[target_entity->m_IDX].hitbox;
hitrate::AimbotShot(target_entity->m_IDX, hitbox != head);
}
*bSendPackets = true;
}
if (LOCAL_W->m_iClassID() == CL_CLASS(CTFLaserPointer))
current_user_cmd->buttons |= IN_ATTACK2;

View File

@ -145,12 +145,14 @@ void CreateMove()
if (g_GlobalVars->curtime - float(delay) >= target_time)
{
current_user_cmd->buttons |= IN_ATTACK;
*bSendPackets = true;
}
}
}
else
{
current_user_cmd->buttons |= IN_ATTACK;
*bSendPackets = true;
}
}
}