Solved CSGO - Triggerbot not working :(

  • CSGO recently moved logic from 'client_panorama.dll' to 'client.dll', you must update all code that uses 'client_panorama.dll' and replace it with 'client.dll' or the code will not work.
Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

cow

Newbie
Aug 4, 2014
4
122
0
So currently the program seems to open and run fine with no errors, however my player is not shooting when an enemy is in my crosshair. I have messed with it for a while now and just cannot figure it out.
C++:
#define _WIN32_WINNT 0x0400
#define CPPCONN_DONT_TYPEDEF_MS_TYPES_TO_C99_TYPES
#define _CRT_SECURE_NO_WARNINGS
#include <winsock.h>
#include "ProcMem.h"
#include <iostream>
#include <Windows.h>
#include <string>
#include <stdio.h>
#include <cstdarg>

ProcMem Mem;

using namespace std;

// OFFSETS
const DWORD playerBase = 0xA6E444;
const DWORD entityBase = 0x4A5C9C4;
const DWORD flagOffset = 0x00000100;
const DWORD crosshairOffset = 0xA940;
// DONT NEED TO CHANGE (BELOW)!
const DWORD teamOffset = 0xF0;
const DWORD healthOffset = 0xFC;
const DWORD EntLoopDist = 0x10;

// Client DLL
DWORD ClientDLL;


DWORD LocalPlayer = Mem.Read<DWORD>(ClientDLL + playerBase);

int LocalTeam = Mem.Read<int>(LocalPlayer + teamOffset);

int CrossHairID = Mem.Read<int>(LocalPlayer + crosshairOffset);

// Function Calling
void Trigger();

// MAIN
int main()
{
	Mem.Process("csgo.exe");
	ClientDLL = Mem.Module("client.dll");
		while (true)
		{
			Trigger();
		}
}


// FUNCTIONS
void Trigger()
{
	DWORD EnemyInCH = Mem.Read<DWORD>(ClientDLL + entityBase + ((CrossHairID - 1) * EntLoopDist));
	int EnemyHealth = Mem.Read<int>(EnemyInCH + healthOffset);
	int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset);
	if (LocalTeam != EnemyTeam && EnemyHealth > 0)
	{
		mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
		mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
	}
}
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,101
78,998
2,374
I have an issue where mine wont inject it just waits for process.

C++:
int main()
{
	Module Client, Engine;
	while (!debugger.Attach("csgo.exe")) {
		std::cout << ".";
		Sleep(500);
	}
	Client = debugger.GetModule("Client.dll");
	dwClient = Client.dwBase;
	Engine = debugger.GetModule("Engine.dll");
	dwEngine = Engine.dwBase;

	CreateThread(0, 0, &TriggerThread, 0, 0, 0);
	std::cout << "Trigger is running...";
		
		while (1)
		{
			if (GetAsyncKeyState(VK_F4)) {
				exit(0);
			}
		}

}
You didn't post all your source code so noone can help you, but I see your code in your other thread.

Here's your problem
C++:
!strcmp(ModEntry.szModule, (char*)ModuleName)
If your character set is set to Unicode this will fail. szModule is a wchar_t * while set to unicode, which is the default for visual studio.

I explain it in depth in this video at 57 minutes or ?t=3420 and you can download the source code as well

Also here is a tutorial on how to use the visual studio debugger, you can fix all your problems by stepping through every single line of code

do this tutorial also
 
Last edited:

mambda

headass
Escobar Tier VIP
Trump Tier Donator
Jun 25, 2014
2,298
37,938
269
read crosshair id every time Trigger is called otherwise it will always be an unknown value because you're only initializing it once. I'm fairly sure you can't call a function outside the scope of another function either ( i.e. how you're initializing it right now )
 

Broihon

edgy 12 y/o
Escobar Tier VIP
Fleep Tier Donator
Dec 22, 2013
1,745
40,528
316
I am very confused, if you could clarify I would appreciate
C++:
DWORD ClientDLL;
 
 
DWORD LocalPlayer = Mem.Read<DWORD>(ClientDLL + playerBase);
 
int LocalTeam = Mem.Read<int>(LocalPlayer + teamOffset);
 
int CrossHairID = Mem.Read<int>(LocalPlayer + crosshairOffset);
put it into the Trigger function.
 

cow

Newbie
Aug 4, 2014
4
122
0
Вroihon;40233 said:
C++:
DWORD ClientDLL;
 
 
DWORD LocalPlayer = Mem.Read<DWORD>(ClientDLL + playerBase);
 
int LocalTeam = Mem.Read<int>(LocalPlayer + teamOffset);
 
int CrossHairID = Mem.Read<int>(LocalPlayer + crosshairOffset);
put it into the Trigger function.

Doesn't seem to work :(

C++:
void Trigger()
{
	DWORD EnemyInCH = Mem.Read<DWORD>(ClientDLL + entityBase + ((CrossHairID - 1) * EntLoopDist));
	int EnemyHealth = Mem.Read<int>(EnemyInCH + healthOffset);
	int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset);


	DWORD LocalPlayer = Mem.Read<DWORD>(ClientDLL + playerBase);

	int LocalTeam = Mem.Read<int>(LocalPlayer + teamOffset);

	int CrossHairID = Mem.Read<int>(LocalPlayer + crosshairOffset);

	if (LocalTeam != EnemyTeam && EnemyHealth > 0)
	{
		mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
		mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
	}
}
 

cow

Newbie
Aug 4, 2014
4
122
0
Hey thanks guys. It seems to work now but on competitive/multiplayer servers it freezes my game once i put my crosshair on someone
 

mambda

headass
Escobar Tier VIP
Trump Tier Donator
Jun 25, 2014
2,298
37,938
269
well left down and left up immediately after each other wont register a shot iirc.
 

death111

Newbie
Full Member
Jul 10, 2016
5
82
0
I have an issue where mine wont inject it just waits for process.

C++:
int main()
{
	Module Client, Engine;
	while (!debugger.Attach("csgo.exe")) {
		std::cout << ".";
		Sleep(500);
	}
	Client = debugger.GetModule("Client.dll");
	dwClient = Client.dwBase;
	Engine = debugger.GetModule("Engine.dll");
	dwEngine = Engine.dwBase;

	CreateThread(0, 0, &TriggerThread, 0, 0, 0);
	std::cout << "Trigger is running...";
		
		while (1)
		{
			if (GetAsyncKeyState(VK_F4)) {
				exit(0);
			}
		}

}
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods