From 0adf4fc3878dbdf0b4109783d77f20eacb6e3719 Mon Sep 17 00:00:00 2001 From: bencat07 Date: Sat, 25 May 2019 18:18:47 +0200 Subject: [PATCH] tank aimbot --- src/hacks/Aimbot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index cd04f262..37614b4c 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -73,7 +73,7 @@ int GetSentry() CachedEntity *ent = ENTITY(i); if (CE_BAD(ent)) continue; - if (ent->m_Type() != ENTITY_BUILDING || ent->m_iClassID() != CL_CLASS(CObjectSentrygun)) + if ((ent->m_Type() != ENTITY_BUILDING && ent->m_iClassID() != CL_CLASS(CTFTankBoss)) || ent->m_iClassID() != CL_CLASS(CObjectSentrygun)) continue; if ((CE_INT(ent, netvar.m_hBuilder) & 0xFFF) != g_pLocalPlayer->entity_idx) continue; @@ -619,7 +619,7 @@ bool IsTargetStateGood(CachedEntity *entity) // Check for buildings } - else if (entity->m_Type() == ENTITY_BUILDING) + else if (entity->m_Type() == ENTITY_BUILDING || entity->m_iClassID() == CL_CLASS(CTFTankBoss)) { // Don't aim if holding sapper if (g_pLocalPlayer->holding_sapper) @@ -958,7 +958,7 @@ const Vector &PredictEntity(CachedEntity *entity) } // Buildings } - else if (entity->m_Type() == ENTITY_BUILDING) + else if (entity->m_Type() == ENTITY_BUILDING || entity->m_iClassID() != CL_CLASS(CTFTankBoss)) { if (cur_proj_grav || cur_proj_grav) result = BuildingPrediction(entity, GetBuildingPosition(entity), cur_proj_speed, cur_proj_grav);