From 5c6484a0949bd0f9626a2f1384d67d0b5c8648bb Mon Sep 17 00:00:00 2001 From: Julian Rowe Date: Fri, 5 May 2017 14:35:27 -0500 Subject: [PATCH 1/5] Small but powerful hitbox selection changes --- src/hacks/Aimbot.cpp | 5 ++++- src/hacks/AntiAim.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index 9120bd00..3ee79b04 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -29,6 +29,8 @@ bool silent_huntsman { false }; static CatVar ignore_hoovy(CV_SWITCH, "aimbot_ignore_hoovy", "0", "Ignore Hoovies", "Aimbot won't attack hoovies"); int ClosestHitbox(CachedEntity* target) { + //If you can see the spine, no need to check for another hitbox + if (target->m_pHitboxCache->VisibilityCheck(hitbox_t::spine_3)) return hitbox_t::spine_3; int closest = -1; float closest_fov = 256; for (int i = 0; i < target->m_pHitboxCache->GetNumHitboxes(); i++) { @@ -584,11 +586,12 @@ int BestHitbox(CachedEntity* target) { } if (LOCAL_W->m_iClassID == g_pClassID->CTFSniperRifle || LOCAL_W->m_iClassID == g_pClassID->CTFSniperRifleDecap) { float cdmg = CE_FLOAT(LOCAL_W, netvar.flChargedDamage); - if (CanHeadshot() && cdmg > target->m_iHealth) { + if (CanHeadshot() && cdmg > target->m_iHealth || IsPlayerCritBoosted(g_pLocalPlayer->entity) && target->m_iHealth <= 150 || !g_pLocalPlayer->bZoomed) { preferred = ClosestHitbox(target); headonly = false; } } + if (headonly) return hitbox_t::head; if (target->m_pHitboxCache->VisibilityCheck(preferred)) return preferred; for (int i = projectile_mode ? 1 : 0; i < target->m_pHitboxCache->GetNumHitboxes(); i++) { diff --git a/src/hacks/AntiAim.cpp b/src/hacks/AntiAim.cpp index 4a5bdaa6..79a80cca 100644 --- a/src/hacks/AntiAim.cpp +++ b/src/hacks/AntiAim.cpp @@ -142,7 +142,7 @@ float edgeDistance(float edgeRayYaw) { forward.x = cp * cy; forward.y = cp * sy; forward.z = -sp; - forward = forward * 8192.0f + g_pLocalPlayer->v_Eye; + forward = forward * 300.0f + g_pLocalPlayer->v_Eye; ray.Init(g_pLocalPlayer->v_Eye, forward); //trace::g_pFilterNoPlayer to only focus on the enviroment g_ITrace->TraceRay(ray, 0x4200400B, trace::g_pFilterNoPlayer, trace.get()); From f6666db65d3b6ba752f4751c310516235c36d0c2 Mon Sep 17 00:00:00 2001 From: Julian Rowe Date: Fri, 5 May 2017 15:58:43 -0500 Subject: [PATCH 2/5] Enhanced Auto-head and Auto-closest --- src/hacks/Aimbot.cpp | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index 3ee79b04..e6ba378a 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -30,7 +30,7 @@ static CatVar ignore_hoovy(CV_SWITCH, "aimbot_ignore_hoovy", "0", "Ignore Hoovie int ClosestHitbox(CachedEntity* target) { //If you can see the spine, no need to check for another hitbox - if (target->m_pHitboxCache->VisibilityCheck(hitbox_t::spine_3)) return hitbox_t::spine_3; + if (target->m_pHitboxCache->VisibilityCheck(hitbox_t::pelvis)) return hitbox_t::pelvis; int closest = -1; float closest_fov = 256; for (int i = 0; i < target->m_pHitboxCache->GetNumHitboxes(); i++) { @@ -586,7 +586,27 @@ int BestHitbox(CachedEntity* target) { } if (LOCAL_W->m_iClassID == g_pClassID->CTFSniperRifle || LOCAL_W->m_iClassID == g_pClassID->CTFSniperRifleDecap) { float cdmg = CE_FLOAT(LOCAL_W, netvar.flChargedDamage); - if (CanHeadshot() && cdmg > target->m_iHealth || IsPlayerCritBoosted(g_pLocalPlayer->entity) && target->m_iHealth <= 150 || !g_pLocalPlayer->bZoomed) { + int bdmg = 50; + //Darwins damage correction + if (target->m_iMaxHealth == 150 && target->m_iClassID == tf_sniper) { + bdmg = (bdmg / 1.15) - 1; + cdmg = (cdmg / 1.15) - 1; + } + //Vaccinator damage correction + if (HasCondition(target, TFCond_UberBulletResist)) { + bdmg = (bdmg / 1.75) - 1; + cdmg = (cdmg / 1.75) - 1; + } else if (HasCondition(target, TFCond_SmallBulletResist)) { + bdmg = (bdmg / 1.1) - 1; + cdmg = (cdmg / 1.1) - 1; + } + //Invis damage correction + if (IsPlayerInvisible(target)) { + bdmg = (bdmg / 1.20) - 1; + cdmg = (cdmg / 1.20) - 1; + } + //If can headshot and if bodyshot kill from charge damage, or if crit boosted and they have 150 health, or if player isnt zoomed, or if the enemy has less than 40, due to darwins, and only if they have less than 150 health will it try to bodyshot + if (CanHeadshot() && (cdmg > target->m_iHealth || IsPlayerCritBoosted(g_pLocalPlayer->entity) || !g_pLocalPlayer->bZoomed || target->m_iHealth < bdmg) && target->m_iHealth <= 150) { preferred = ClosestHitbox(target); headonly = false; } From 2f8dbb3c2adadac54543ddff7e46b31db2b11f4b Mon Sep 17 00:00:00 2001 From: Julian Rowe Date: Fri, 5 May 2017 16:20:17 -0500 Subject: [PATCH 3/5] Added My alts to Dev List --- src/playerlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playerlist.cpp b/src/playerlist.cpp index 145222a8..0e248199 100644 --- a/src/playerlist.cpp +++ b/src/playerlist.cpp @@ -96,7 +96,7 @@ void Load() { } void DoNotKillMe() { - constexpr unsigned developer_alts[] = { 306902159, 347272825, 401679596 }; + constexpr unsigned developer_alts[] = { 306902159, 347272825, 401679596, 416491033, 289921064, 175278337 }; for (int i = 0; i < sizeof(developer_alts) / sizeof(int); i++) AccessData(developer_alts[i]).state = k_EState::DEVELOPER; } From 5c18ff367589419551519943ab97c45efabd711b Mon Sep 17 00:00:00 2001 From: Julian Rowe Date: Fri, 5 May 2017 16:31:24 -0500 Subject: [PATCH 4/5] Fixed charged shots not body aiming --- src/hacks/Aimbot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index e6ba378a..aaca6454 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -606,7 +606,7 @@ int BestHitbox(CachedEntity* target) { cdmg = (cdmg / 1.20) - 1; } //If can headshot and if bodyshot kill from charge damage, or if crit boosted and they have 150 health, or if player isnt zoomed, or if the enemy has less than 40, due to darwins, and only if they have less than 150 health will it try to bodyshot - if (CanHeadshot() && (cdmg > target->m_iHealth || IsPlayerCritBoosted(g_pLocalPlayer->entity) || !g_pLocalPlayer->bZoomed || target->m_iHealth < bdmg) && target->m_iHealth <= 150) { + if (CanHeadshot() && (cdmg >= target->m_iHealth || IsPlayerCritBoosted(g_pLocalPlayer->entity) || !g_pLocalPlayer->bZoomed || target->m_iHealth <= bdmg) && target->m_iHealth <= 150) { preferred = ClosestHitbox(target); headonly = false; } From 73d1ea732f46fcd3ad1f84158db1f794908955d6 Mon Sep 17 00:00:00 2001 From: Julian Rowe Date: Fri, 5 May 2017 17:00:50 -0500 Subject: [PATCH 5/5] Corrected prefered hitbox --- src/hacks/Aimbot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index aaca6454..9d89d97b 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -30,7 +30,7 @@ static CatVar ignore_hoovy(CV_SWITCH, "aimbot_ignore_hoovy", "0", "Ignore Hoovie int ClosestHitbox(CachedEntity* target) { //If you can see the spine, no need to check for another hitbox - if (target->m_pHitboxCache->VisibilityCheck(hitbox_t::pelvis)) return hitbox_t::pelvis; + if (target->m_pHitboxCache->VisibilityCheck(hitbox_t::spine_1)) return hitbox_t::spine_1; int closest = -1; float closest_fov = 256; for (int i = 0; i < target->m_pHitboxCache->GetNumHitboxes(); i++) {