fix target highlight
This commit is contained in:
parent
e8c099dadf
commit
2948d762ef
@ -123,7 +123,7 @@ void CreateMove() {
|
|||||||
if (!enabled) return;
|
if (!enabled) return;
|
||||||
|
|
||||||
// Check if player can aim
|
// Check if player can aim
|
||||||
if (!ShouldAim()) return;
|
bool shouldAim = ShouldAim();
|
||||||
|
|
||||||
// Refresh projectile info
|
// Refresh projectile info
|
||||||
int huntsman_ticks = 0;
|
int huntsman_ticks = 0;
|
||||||
@ -152,7 +152,7 @@ void CreateMove() {
|
|||||||
|
|
||||||
// Only allow aimbot to work with aimkey
|
// Only allow aimbot to work with aimkey
|
||||||
// We also preform a CanShoot check here per the old canshoot method
|
// We also preform a CanShoot check here per the old canshoot method
|
||||||
if (UpdateAimkey() && ShouldAimLeg()) {
|
if (shouldAim && UpdateAimkey() && ShouldAimLeg()) {
|
||||||
|
|
||||||
// Check if player isnt using a huntsman
|
// Check if player isnt using a huntsman
|
||||||
if (g_pLocalPlayer->weapon()->m_iClassID != CL_CLASS(CTFCompoundBow)) {
|
if (g_pLocalPlayer->weapon()->m_iClassID != CL_CLASS(CTFCompoundBow)) {
|
||||||
|
Reference in New Issue
Block a user