From ac2bf238b86045c4a731f536898e64e710dc3695 Mon Sep 17 00:00:00 2001 From: julianacat Date: Mon, 7 Aug 2017 17:47:31 -0500 Subject: [PATCH] Ignore bots + crouch with target --- src/hacks/FollowBot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hacks/FollowBot.cpp b/src/hacks/FollowBot.cpp index 878f0b32..ff89ba39 100644 --- a/src/hacks/FollowBot.cpp +++ b/src/hacks/FollowBot.cpp @@ -177,7 +177,8 @@ void DoWalking() { if (CE_BAD(ent)) continue; if (ent == LOCAL_E) continue; if (!ent->m_bAlivePlayer) continue; - + if (IsBot(ent)) continue; + if (ent->m_bEnemy) continue; if (g_pLocalPlayer->v_Origin.DistTo(ent->m_vecOrigin) > 3400.0F) continue; // Check activation distance @@ -406,15 +407,14 @@ void DoWalking() { } } - /* //Check if target is crouching - if () { + if (CE_INT(found_entity, netvar.iFlags) & FL_DUCKING) { // Check if local player isnt taunting if (!g_pUserCmd->buttons & IN_DUCK) { g_pUserCmd->buttons |= IN_DUCK; } - }*/ + } } }