add(aimbot): rocket and sticky jumper to ignored weapons (#1533)

This commit is contained in:
RC 2021-08-18 22:17:11 +08:00 committed by GitHub
parent b52b836ec6
commit ffc094ca60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -512,7 +512,7 @@ bool ShouldAim()
if (g_pLocalPlayer->using_action_slot_item)
return false;
// Using a forbidden weapon?
if (g_pLocalPlayer->weapon()->m_iClassID() == CL_CLASS(CTFKnife))
if (g_pLocalPlayer->weapon()->m_iClassID() == CL_CLASS(CTFKnife) || CE_INT(LOCAL_W, netvar.iItemDefinitionIndex) == 237 || CE_INT(LOCAL_W, netvar.iItemDefinitionIndex) == 265)
return false;
IF_GAME(IsTF2())