Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Offsets.h"
- #include "Memory.h"
- #include "readMemory.h"
- #include "Math.h"
- #include "Vector3.h"
- #include <iostream>
- #include <thread>
- #include <ctime>
- using namespace std;
- readMemory mod;
- Offsets off;
- LocalPlayer pl;
- Weapon wep;
- void antiBhop()
- {
- while (true)
- {
- srand(time(NULL));
- int randSleep = rand() % 30 + 1; // random value between 0 and 30
- int Flags = Memory::Read<int>(pl.Player + off.m_fFlags);
- if ((Flags & 0x1) == 1 && (GetAsyncKeyState(VK_SPACE) & 0x8000))
- {
- //Sleep(randSleep);
- Memory::Write<int>(mod.ClientDLL + off.jumpOff, 5);
- Sleep(20);
- Memory::Write<int>(mod.ClientDLL + off.jumpOff, 4);
- }
- Sleep(10);
- }
- }
- float chooseX()
- {
- while (true)
- {
- srand(GetTickCount());
- int num = rand() % 50 + 1;
- float randAngX = (rand() % 6000 + 1.0f) / 1000.0f; // pitch; random value between 0.000 and 6.000
- float negrandAngX = -randAngX; // random value between -6.0000 and 0.0
- if (num <= 25)
- return randAngX;
- else
- return negrandAngX;
- float randSleep = (rand() % 20 + 1.0f) / 10.0f;
- Sleep(randSleep);
- }
- }
- float chooseY()
- {
- while (true)
- {
- srand(time(NULL));
- int num = rand() % 50 + 1;
- float randAngY = (rand() % 1500 + 1.0f) / 1000.0f; // yaw; random value between 0.000 and 1.500
- float negrandAngY = -randAngY; // random value between -1.000 and 0.000
- if (num <= 25)
- return randAngY;
- else
- return negrandAngY;
- Sleep(5);
- }
- }
- void silver1Aim()
- {
- while (true)
- {
- DWORD currW = wep.currW;
- int WepAmmo = Memory::Read<int>(currW + off.m_iClip1);
- int ShotsFired = Memory::Read<int>(pl.Player + off.iShotsFired);
- if (ShotsFired > 1)
- {
- mouse_event(MOUSEEVENTF_MOVE, chooseX(), chooseY(), NULL, NULL);
- }
- Sleep(5);
- }
- }
- void rf()
- {
- while (true)
- {
- if ((GetAsyncKeyState(VK_MBUTTON) & 0x8000))
- {
- Memory::Write<int>(mod.ClientDLL + off.atkOff, 5);
- Sleep(20);
- Memory::Write<int>(mod.ClientDLL + off.atkOff, 4);
- }
- Sleep(5);
- }
- }
- void weaponStuffs()
- {
- while (true)
- {
- wep.currWep(pl.Player);
- int iWeaponID = Memory::Read<int>(wep.currW + off.m_iWeaponID);
- int WepAmmo = Memory::Read<int>(wep.currW + off.m_iClip1);
- int Health = Memory::Read<int>(pl.Player + off.iHealth);
- int ShotsFired = Memory::Read<int>(pl.Player + off.iShotsFired);
- cout << "Weapon ID: " << iWeaponID << endl;
- cout << "Weapon Ammo: " << WepAmmo << endl;
- cout << "Health: " << Health << endl;
- cout << "Shots Fired: " << ShotsFired << endl;
- Sleep(1000);
- }
- }
- int main()
- {
- Memory::Process("csgo.exe");
- mod.getClient();
- thread antiBhopT(antiBhop);
- thread chooseAngXT(chooseX);
- thread chooseAngYT(chooseY);
- thread silver1AimT(silver1Aim);
- thread rfT(rf);
- /*weaponStuffs();*/
- while (true)
- {
- int i = 1;
- Sleep(500);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment