-
Автор темы
- #1
Не работает PitchAA(AntiAim) в ayyware, объясните в чем трабла?
Код:
// Anti-Aim Pitch
switch (Menu::Window.RageBotTab.AntiAimPitch.GetIndex())
{
case 0:
// No Pitch AA
break;
case 1:
// Down
AntiAims::StaticPitch(pCmd, false);
break;
case 2:
// Angel Down
pCmd->viewangles.x = 1800089;
break;
case 3:
// Jitter
static bool bSwitch = false;
if (bSwitch) {
pCmd->viewangles.x = 89;
bSwitch = false;
}
else {
pCmd->viewangles.x = -89;
bSwitch = true;
}
}
Код:
namespace AntiAims
{
// Pitches
void StaticPitch(CUserCmd *pCmd, bool up)
{
pCmd->viewangles.x = 89;
}
void JitterPitch(CUserCmd *pCmd)
{
static bool up = true;
if (up) pCmd->viewangles.x = -88;
else pCmd->viewangles.x = 88;
up = !up;
}
void FakeDown(CUserCmd *pCmd)
{
pCmd->viewangles.x = -179.9995;
}
void Jitter(CUserCmd *pCmd)
{
static int jitterangle = 0;
if (jitterangle <= 2)
{
pCmd->viewangles.x = 89;
jitterangle += 1;
}
else if (jitterangle > 2 && jitterangle <= 4)
{
pCmd->viewangles.x = 70;
jitterangle += 1;
}
else
{
jitterangle = 0;
}
}
void SilentXSpin(CUserCmd* pCmd)
{
int iSpinx = 0;
iSpinx++;
if (iSpinx > 1) {
iSpinx = 0;
}
if (iSpinx == 1) {
pCmd->viewangles.x = 89;
}
}
void TerrorDown(CUserCmd *pCmd)
{
pCmd->viewangles.x = 180000089;
}
void Sleep(CUserCmd *pCmd)
{
pCmd->viewangles.z = 30000030000130 + INT_MAX;
}
void CorrectLisp(CUserCmd* pCmd) {
if (GetAsyncKeyState('W'))
pCmd->forwardmove = 450.f;
if (GetAsyncKeyState('S'))
pCmd->forwardmove = -450.f;
}
void CorrectFakeDown(CUserCmd* pCmd) {
if (GetAsyncKeyState('W'))
pCmd->forwardmove = -450.f;
if (GetAsyncKeyState('S'))
pCmd->forwardmove = 450.f;
}
void FakeBody(CUserCmd *pCmd)
{
static int iChoked = -1;
iChoked++;
static bool baim;
if (baim)
{
//*sendpacket->bSendPacket = 0;
pCmd->viewangles.y -= 92;
}
else
{
//*sendpacket->bSendPacket = 1;
pCmd->viewangles.y += 92;
iChoked = -1;
}
}