Don't backstab ignored tf

This commit is contained in:
TotallyNotElite 2018-09-02 14:07:19 +02:00
parent 417efdd0d7
commit 3e484d7767
2 changed files with 10 additions and 3 deletions

View File

@ -11,6 +11,7 @@
#include "hacks/Aimbot.hpp" #include "hacks/Aimbot.hpp"
#include "hacks/Trigger.hpp" #include "hacks/Trigger.hpp"
#include "hacks/AntiAntiAim.hpp" #include "hacks/AntiAntiAim.hpp"
#include "PlayerTools.hpp"
namespace hacks::tf2::autobackstab namespace hacks::tf2::autobackstab
{ {
@ -147,6 +148,9 @@ void CreateMove()
if (target == LOCAL_E || target->m_iTeam() == LOCAL_E->m_iTeam() || if (target == LOCAL_E || target->m_iTeam() == LOCAL_E->m_iTeam() ||
!target->m_bAlivePlayer() || target->m_Type() != ENTITY_PLAYER) !target->m_bAlivePlayer() || target->m_Type() != ENTITY_PLAYER)
continue; continue;
if (player_tools::shouldTarget(target) !=
player_tools::IgnoreReason::DO_NOT_IGNORE)
continue;
if (target->hitboxes.GetHitbox(spine_3)->center.DistTo( if (target->hitboxes.GetHitbox(spine_3)->center.DistTo(
g_pLocalPlayer->v_Eye) <= 200.0f) g_pLocalPlayer->v_Eye) <= 200.0f)
{ {
@ -177,6 +181,9 @@ void CreateMove()
if (target == LOCAL_E || target->m_iTeam() == LOCAL_E->m_iTeam() || if (target == LOCAL_E || target->m_iTeam() == LOCAL_E->m_iTeam() ||
!target->m_bAlivePlayer() || target->m_Type() != ENTITY_PLAYER) !target->m_bAlivePlayer() || target->m_Type() != ENTITY_PLAYER)
return; return;
if (player_tools::shouldTarget(target) !=
player_tools::IgnoreReason::DO_NOT_IGNORE)
return;
// Check if besttick distance is < 200.0f // Check if besttick distance is < 200.0f
if (backtrack::headPositions[target->m_IDX][backtrack::BestTick] if (backtrack::headPositions[target->m_IDX][backtrack::BestTick]
.hitboxes.at(spine_3) .hitboxes.at(spine_3)

View File

@ -390,9 +390,9 @@ bool isActive()
} }
const std::vector<std::string> builtin_default = { const std::vector<std::string> builtin_default = {
"cathook - more fun than a ball of yarn!", "GNU/Linux is the best OS!", "Cathook - more fun than a ball of yarn!", "GNU/Linux is the best OS!",
"visit youtube.com/c/nullifiedcat for more information!", "Visit https://github.com/nullworks/cathook for more information!",
"cathook - free tf2 cheat!", "cathook - ca(n)t stop me meow!" "Cathook - Free and Open-Source tf2 cheat!", "Cathook - ca(n)t stop me meow!"
}; };
const std::vector<std::string> builtin_lennyfaces = { const std::vector<std::string> builtin_lennyfaces = {
"( ͡° ͜ʖ ͡°)", "( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°)ʖ ͡°) ͡°)", "( ͡° ͜ʖ ͡°)", "( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°)ʖ ͡°) ͡°)",