Tutorial for Ayymemes
Search in legitbot.cpp
RecoilControl = Menu::Window.LegitBotTab.WeaponMainRecoil.GetValue();
Below add this line
Inacc = Menu::Window.LegitBotTab.WeaponMainInacc.GetValue();
Search this line
RecoilControl = Menu::Window.LegitBotTab.WeaponPistRecoil.GetValue();
And in below add this in all the lines of isRifle, IsAWP etc.
Inacc = Menu::Window.LegitBotTab.WeaponPistInacc.GetValue();
And then replace this CODE
bool CLegitBot::AimAtPoint(IClientEntity* pLocal, Vector point, CUserCmd *pCmd)
{
if (point.Length() == 0) return false;
Vector angles;
Vector src = pLocal->GetOrigin() + pLocal->GetViewOffset();
static clock_t start_t = clock();
double timeSoFar = (double)(clock() - start_t) / CLOCKS_PER_SEC;
static Vector Inaccuracy;
CalcAngle(src, point, angles);
GameUtils::NormaliseViewAngle(angles);
if (angles[0] != angles[0] || angles[1] != angles[1])
{
return false;
}
if (timeSoFar > 0.2)
{
Inaccuracy.Init(-50 + rand() % 100, -50 + rand() % 100, -50 + rand() % 100);
Inaccuracy.NormalizeInPlace();
Inaccuracy *= Inacc;
start_t = clock();
}
point += Inaccuracy;
CalcAngle(src, point, angles);
GameUtils::NormaliseViewAngle(angles);
if (angles[0] != angles[0] || angles[1] != angles[1])
{
return false;
}
if (RecoilControl > 0)
{
Vector AimPunch = pLocal->localPlayerExclusive()->GetAimPunchAngle();
if (AimPunch.Length2D() > 0 && AimPunch.Length2D() < 150)
{
angles -= AimPunch * RecoilControl;
GameUtils::NormaliseViewAngle(angles);
}
}
IsLocked = true;
Vector shit = angles - pCmd->viewangles;
bool v = false;
GameUtils::NormaliseViewAngle(shit);
if (shit.Length() > Speed)
{
Normalize(shit, shit);
shit *= Speed;
}
else
{
v = true;
}
pCmd->viewangles += shit;
Interfaces::Engine->SetViewAngles(pCmd->viewangles);
return v;
}
And theeeen go to menu.cpp and add CSliders Like a pro, for example if u gona add to pistol “humanize” add this
WeaponPistInacc.SetFileId("pist_inacc");
WeaponPistInacc.SetBoundaries(0.f, 10.f);
WeaponPistGroup.PlaceLabledControl("Humanize", this, &WeaponPistInacc);
REPLACETHIS.SetFileId("REPLACETHIS");
REPLACETHIS.SetBoundaries(0.f, 10.f);
REPLACETHIS.PlaceLabledControl("Humanize", this, &REPLACETHIS);
|