Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Anti Aim changes #705

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/ATGUI/Tabs/hvhtab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
void HvH::RenderTab()
{
const char* yTypes[] = {
"SLOW SPIN", "FAST SPIN", "JITTER", "SIDE", "BACKWARDS", "FORWARDS", "LEFT", "RIGHT", "STATIC", "STATIC JITTER", "STATIC SMALL JITTER", // safe
"LISP", "LISP SIDE", "LISP JITTER", "ANGEL BACKWARDS", "ANGEL INVERSE", "ANGEL SPIN" // untrusted
"SLOW SPIN", "FAST SPIN", "JITTER", "SIDEJITTER", "BACKWARDS", "FORWARDS", "SIDEWAYS LEFT", "SIDEWAYS RIGHT", "STATIC", "STATIC JITTER", "STATIC SMALL JITTER", // safe
};

const char* xTypes[] = {
"UP", "DOWN", "DANCE", "FRONT", // safe
"FAKE UP", "FAKE DOWN", "LISP DOWN", "ANGEL DOWN", "ANGEL UP" // untrusted
"FAKE UP", "FAKE DOWN" // untrusted
};

ImGui::Columns(2, NULL, true);
Expand Down
79 changes: 3 additions & 76 deletions src/Hacks/antiaim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void DoAntiAimY(QAngle& angle, int command_number, bool bFlip, bool& clamp)
case AntiAimType_Y::JITTER:
yFlip ? angle.y -= 90.0f : angle.y -= 270.0f;
break;
case AntiAimType_Y::SIDE:
case AntiAimType_Y::SIDEJITTER:
yFlip ? angle.y += 90.f : angle.y -= 90.0f;
break;
case AntiAimType_Y::BACKWARDS:
Expand All @@ -114,10 +114,10 @@ void DoAntiAimY(QAngle& angle, int command_number, bool bFlip, bool& clamp)
case AntiAimType_Y::FORWARDS:
angle.y -= 0.0f;
break;
case AntiAimType_Y::LEFT:
case AntiAimType_Y::SIDEWAYS_LEFT:
angle.y += 90.0f;
break;
case AntiAimType_Y::RIGHT:
case AntiAimType_Y::SIDEWAYS_RIGHT:
angle.y -= 90.0f;
break;
case AntiAimType_Y::STATICAA:
Expand All @@ -137,58 +137,6 @@ void DoAntiAimY(QAngle& angle, int command_number, bool bFlip, bool& clamp)
if (trigger > 100.0f)
trigger = 0.0f;
break;
case AntiAimType_Y::LISP:
clamp = false;
yFlip ? angle.y += 323210000.0f : angle.y -= 323210000.0f;
break;
case AntiAimType_Y::LISP_SIDE:
clamp = false;
temp = angle.y + 90.0f;
temp_qangle = QAngle(0.0f, temp, 0.0f);
Math::NormalizeAngles(temp_qangle);
temp = temp_qangle.y;

if (temp > -45.0f)
temp < 0.0f ? temp = -90.0f : temp < 45.0f ? temp = 90.0f : temp = temp;

temp += 1800000.0f;
angle.y = temp;
break;
case AntiAimType_Y::LISP_JITTER:
clamp = false;
static int jittertimer = -1;
temp = angle.y - 155.0f;

if (jittertimer == 1)
{
temp = angle.y + 58.0f;
temp += 1800000.0f;
}

if (bSendPacket)
{
if (jittertimer >= 1)
jittertimer = -1;
jittertimer++;
}
angle.y = temp;
break;
case AntiAimType_Y::ANGEL_BACKWARD:
clamp = false;
angle.y += 36000180.0f;
break;
case AntiAimType_Y::ANGEL_INVERSE:
clamp = false;
angle.y = 36000180.0f;
break;
case AntiAimType_Y::ANGEL_SPIN:
clamp = false;
factor = (globalVars->curtime * 5000.0f);
angle.y = factor + 36000000.0f;
break;
default:
angle.y -= 0.0f;
break;
}
}

Expand Down Expand Up @@ -223,21 +171,6 @@ void DoAntiAimX(QAngle& angle, bool bFlip, bool& clamp)
case AntiAimType_X::STATIC_DOWN_FAKE:
angle.x = bFlip ? -89.0f : 89.0f;
break;
case AntiAimType_X::LISP_DOWN:
clamp = false;
angle.x = 1800089.0f;
break;
case AntiAimType_X::ANGEL_DOWN:
clamp = false;
angle.x = 36000088.0f;
break;
case AntiAimType_X::ANGEL_UP:
clamp = false;
angle.x = 35999912.0f;
break;
default:
angle.x -= 0.0f;
break;
}
}

Expand Down Expand Up @@ -297,12 +230,6 @@ void AntiAim::CreateMove(CUserCmd* cmd)

if (!ValveDSCheck::forceUT && (*csGameRules) && (*csGameRules)->IsValveDS())
{
if (Settings::AntiAim::Yaw::type >= AntiAimType_Y::LISP)
Settings::AntiAim::Yaw::type = AntiAimType_Y::SPIN_SLOW;

if (Settings::AntiAim::Yaw::typeFake >= AntiAimType_Y::LISP)
Settings::AntiAim::Yaw::typeFake = AntiAimType_Y::SPIN_SLOW;

if (Settings::AntiAim::Pitch::type >= AntiAimType_X::STATIC_UP_FAKE)
Settings::AntiAim::Pitch::type = AntiAimType_X::STATIC_UP;
}
Expand Down
19 changes: 5 additions & 14 deletions src/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,14 @@ enum class AntiAimType_Y : int
SPIN_SLOW,
SPIN_FAST,
JITTER,
SIDE,
SIDEJITTER,
BACKWARDS,
FORWARDS,
LEFT,
RIGHT,
SIDEWAYS_LEFT,
SIDEWAYS_RIGHT,
STATICAA,
STATICJITTER,
STATICSMALLJITTER,
LISP,
LISP_SIDE,
LISP_JITTER,
ANGEL_BACKWARD,
ANGEL_INVERSE,
ANGEL_SPIN
STATICSMALLJITTER
};

enum class AntiAimType_X : int
Expand All @@ -76,10 +70,7 @@ enum class AntiAimType_X : int
DANCE,
FRONT,
STATIC_UP_FAKE,
STATIC_DOWN_FAKE,
LISP_DOWN,
ANGEL_DOWN,
ANGEL_UP
STATIC_DOWN_FAKE
};

enum class ChamsType : int
Expand Down