Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Go to LegitBot.cpp and and paste this.
- void legitbot::LegitAA(CInput::CUserCmd* pCmd, bool& bSendPacket)
- {
- C_BaseEntity* local = g_EntityList->GetClientEntity(g_Engine->GetLocalPlayer());
- if ((pCmd->buttons & IN_USE) || local->GetMoveType() == MOVETYPE_LADDER || pCmd->buttons & IN_ATTACK || pCmd->buttons & IN_ATTACK2)
- return;
- CBaseCombatWeapon* pWeapon = (CBaseCombatWeapon*)g_EntityList->GetClientEntityFromHandle(local->GetActiveWeaponHandle());
- if (pWeapon)
- {
- CSWeaponInfo* pWeaponInfo = pWeapon->GetCSWpnData();
- // Knives or grenades
- CCSGrenade* csGrenade = (CCSGrenade*)pWeapon;
- if (MiscFunctions::IsGrenade(pWeapon))
- {
- if (csGrenade->GetThrowTime() > 0.f)
- return;
- }
- }
- //for the memes
- Vector oldAngle = pCmd->viewangles;
- float oldForward = pCmd->forwardmove;
- float oldSideMove = pCmd->sidemove;
- if (g_Options.Legitbot.LegitChoiceList>0)
- {
- switch (g_Options.Legitbot.LegitChoiceList)
- {
- case 1:
- {//you dont need brackets but for some shit you do like statics //wrapzii C++ class 101
- static bool kFlip = true;
- static int ChokedPackets = -1;
- static bool yFlip = true;
- if (1 > ChokedPackets)
- {
- bSendPacket = true;
- ChokedPackets++;
- }
- else
- {
- bSendPacket = false;
- //pCmd->viewangles.y += yFlip ? 90.f : -90.f;
- pCmd->viewangles.y += 180.f;
- ChokedPackets = -1;
- }
- }
- break;
- case 2:
- {
- static bool kFlip = true;
- static int ChokedPackets = -1;
- static bool yFlip = true;
- if (1 > ChokedPackets)
- {
- bSendPacket = true;
- ChokedPackets++;
- }
- else
- {
- bSendPacket = false;
- //pCmd->viewangles.y += yFlip ? 90.f : -90.f;
- pCmd->viewangles.y += 90.f;//to the right im pretty sure
- ChokedPackets = -1;
- }
- }
- break;
- case 3:
- //put my p ass vel check one
- //Sideways-switch
- {
- static int ChokedPackets = -1;//we choking 2 cuz 1 is too main stream
- if (1 > ChokedPackets) {
- bSendPacket = false;
- static bool dir = false;
- static bool dir2 = false;
- int i = 0; i < g_EntityList->GetHighestEntityIndex(); ++i;
- C_BaseEntity *entity = (C_BaseEntity*)g_EntityList->GetClientEntity(i);
- //if (pCmd->forwardmove > 1 || (IsVisible(pLocal, pEntity, 0) && pEntity->GetTeamNum() != pLocal->GetTeamNum()))// was trying to make a vis check to make it -180 if their visible //didnt seem to work
- //dir2 = true;
- //else {
- dir2 = false;
- if (pCmd->sidemove > 1) dir = true;
- else if (pCmd->sidemove < -1) dir = false;
- pCmd->viewangles.y = (dir) ? (pCmd->viewangles.y - 180) - 270.f : (pCmd->viewangles.y - 180) - 90.f;
- //}
- //if (dir2 = true)
- //pCmd->viewangles.y = pCmd->viewangles.y - 180;
- ChokedPackets++;
- }
- else
- {
- bSendPacket = true;
- ChokedPackets = -1;
- }
- }
- break;
- }
- }
- else
- pCmd->viewangles.y += 0;
- }
- 2. Ctrl+F and search for OnCreateMove and paste it.
- if (local->GetLifeState() == LIFE_ALIVE)
- {
- LegitAA(pCmd, bSendPacket);
- }
- if (!g_Options.Legitbot.MainSwitch) // if you have this, delete this paste. i cant remember this is by me or not.
- return;
- 3. Go to legitbot.h and under public edit OnCreateMove if necessary.
- void OnCreateMove(CInput::CUserCmd *pCmd, bool& bSendPacket, C_BaseEntity* local);
- 3.1 add this under private. (legitbot.h)
- void legitbot::LegitAA(CInput::CUserCmd *pCmd, bool& bSendPacket);
- 3.2 add this if you don't have it. it is for better nade check in future. (legitbot.h)
- void weapon_settings(CBaseCombatWeapon* weapon);
- 4. go to Variables.h and CTRL+f for autopistol. below this add these lines.
- int LegitChoiceList;
- bool LegitAA;
- 5. go to tabs.h n look for RenderLegit (or whereever u want it) and add this lines. i added under mainswitch aimbot
- ImGui::Checkbox(("LegitAA"), &g_Options.Legitbot.LegitAA);
- ImGui::Combo(("Legit AA Choice"), &g_Options.Legitbot.LegitChoiceList, LegitChoices, _ARRAYSIZE(LegitChoices));
- 6. go to dropboxes.h and add this
- const char* LegitChoices[] =
- {
- "None",
- "Backwards",
- "Sideaways",
- "AdaptiveSide"
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement