Trigger Improvement

Posts 1–9 of 9 · Page 1 of 1
Trigger Improvement
Hello, I used a trigger bot by Merccy2 for some time now, but it's not good, does anyone know how to make it better?
Code:
#ifndef TRIGGERBOT_H
#define TRIGGERBOT_H

#include "Engine.h"
#include "Settings.h"
#include "Decrypt.h"

class Triggerbot {

public: 
	void run() {
		bool autoAttacking = false;
		while (true) {
			if (autoAttacking && !GetAsyncKeyState(VK_LBUTTON)) {
                Engine()->Memory()->Write<int>(Engine()->getClientModule()->dwBase + Engine()->Offsets()->dwAttack, 4);
                autoAttacking = false;
			}
			if (Engine()->me.team == 2 || Engine()->me.team == 3) {
				if (Settings()->triggerEnabled || GetAsyncKeyState(Settings()->trigger_holdkey)) {
					Entity* inX = inCrosshair();
					if (inX != nullptr && Engine()->me.weapon_ammo > 0 && inX->hp > 0) {
						Engine()->Memory()->Write<int>(Engine()->getClientModule()->dwBase + Engine()->Offsets()->dwAttack, 5);
						autoAttacking = true;
						Sleep(35);
					}
				}
			}
			Sleep(1);
		}
	}
private:
	Entity* inCrosshair() {
		int idInX = Engine()->Memory()->Read<int>(Engine()->me.dwBase + Engine()->Offsets()->dwInCross);
		if (idInX != 0) {
			for (int i = 0; i < Engine()->iEnemies; i++) {
				if (Engine()->entEnemies[i].id == idInX) {
					return &Engine()->entEnemies[i];
				}
			}
		}
		return nullptr;
	}
};
#endif
Thank you in advance!
Moved to the correct section
add a hitbox filter, its not that hard and will improve the triggerbot
Is there anyone who would add this hitbox filter for me?
Quote Originally Posted by ImYourFatherx View Post
Is there anyone who would add this hitbox filter for me?
xd no
theres no way to add hitbox filter to your triggerbot
learncpp.com
I can pay somebody a little if it works well
This sauce looks horrible x.x
you cant improve it, period.
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us