-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Credits To Inure:
Код:
void RotateMovement(CUserCmd* cmd, float rotation)
{
rotation = DEG2RAD(rotation);
float cosr, sinr;
cosr = cos(rotation);
sinr = sin(rotation);
float forwardmove, sidemove;
forwardmove = (cosr * cmd->forwardmove) - (sinr * cmd->sidemove);
sidemove = (sinr * cmd->forwardmove) - (cosr * cmd->sidemove);
cmd->forwardmove = forwardmove;
cmd->sidemove = sidemove;
}
void CMiscHacks::circlestrafer(CUserCmd * cmd, Vector& Originalview)
{
int CircleKey = (GetAsyncKeyState('C'));
IClientEntity* pLocal = hackManager.pLocal();
Vector View(cmd->viewangles);
float blackcock = 0;
if (GUI.GetKeyState(CircleKey))
{
cmd->forwardmove = 450.f;
int random = rand() % 100;
int random2 = rand() % 1000;
static bool dir;
static float current_y = View.y;
if (pLocal->GetVelocity().Length() > 50.f)
{
blackcock += 0.00007;
current_y += 3 - blackcock;
}
else
{
blackcock = 0;
}
View.y = current_y;
if (random == random2)
View.y += random;
// Clamp(View);
RotateMovement(cmd, current_y);
}
else
{
float blackcock = 0;
}
}