fix melee aimbot

This commit is contained in:
BenCat07 2018-02-18 10:25:02 +01:00 committed by GitHub
parent 9fc2705689
commit a8902a3939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,6 +252,9 @@ void CreateMove()
// Not release type weapon // Not release type weapon
} }
else if (GetWeaponMode() == weapon_melee && (g_pUserCmd->buttons & IN_ATTACK)) {
Aim(target_entity);
}
else if (CanShoot() && (g_pUserCmd->buttons & IN_ATTACK) && else if (CanShoot() && (g_pUserCmd->buttons & IN_ATTACK) &&
CE_INT(g_pLocalPlayer->weapon(), netvar.m_iClip1) != 0) CE_INT(g_pLocalPlayer->weapon(), netvar.m_iClip1) != 0)
Aim(target_entity); Aim(target_entity);