Solved CSGO Triggerbot check if enemy

  • 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

koro35

Jr.Coder
Full Member
Nobleman
Oct 30, 2013
59
379
2
How does one check if your aiming at an enemy?, Currently i'm just checking if its aiming at something.
C++:
        if (isAiming > 0 && isAiming< 32)
        {
 
            mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
            Sleep(delay);
            mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
 
        }
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
C++:
if(PlayerList[isAiming-1].Team != MyPlayer.Team)
    Shoot();
 

Luciz

Coder
Dank Tier Donator
Nobleman
Jul 10, 2014
101
458
3
Or if you're like me and hate structures, you can use these functions:
C++:
int GetTeam(int player)
{
	Mem.Process("csgo.exe");
	DWORD dwClient = Mem.Module("client.dll");
	DWORD dwEngine = Mem.Module("engine.dll");

	DWORD CBaseEntity = Mem.Read<DWORD>(dwClient + dw_EntityBase + ((player - 1) * dw_EntityLoopDistance));
	int EnemyTeam = Mem.Read<int>(CBaseEntity + dw_teamOffset);
	return EnemyTeam;
}

int GetHealth(int player)
{
	Mem.Process("csgo.exe");
	DWORD dwClient = Mem.Module("client.dll");
	DWORD dwEngine = Mem.Module("engine.dll");

	DWORD CBaseEntity = Mem.Read<DWORD>(dwClient + dw_EntityBase + ((player - 1) * dw_EntityLoopDistance));
	int EnemyHealth = Mem.Read<int>(CBaseEntity + dw_healthOffset);
	return EnemyHealth;
}
And how to use it:
C++:
int enemyTeam = GetTeam(CrossHairEntityID);
int enemyHealth = GetHealth(CrossHairEntityID);
 

Heisa

Jr.Coder
Full Member
Nobleman
Jul 3, 2013
77
703
3
Or if you're like me and hate structures, you can use these functions:
C++:
int GetTeam(int player)
{
	Mem.Process("csgo.exe");
	DWORD dwClient = Mem.Module("client.dll");
	DWORD dwEngine = Mem.Module("engine.dll");

	DWORD CBaseEntity = Mem.Read<DWORD>(dwClient + dw_EntityBase + ((player - 1) * dw_EntityLoopDistance));
	int EnemyTeam = Mem.Read<int>(CBaseEntity + dw_teamOffset);
	return EnemyTeam;
}

int GetHealth(int player)
{
	Mem.Process("csgo.exe");
	DWORD dwClient = Mem.Module("client.dll");
	DWORD dwEngine = Mem.Module("engine.dll");

	DWORD CBaseEntity = Mem.Read<DWORD>(dwClient + dw_EntityBase + ((player - 1) * dw_EntityLoopDistance));
	int EnemyHealth = Mem.Read<int>(CBaseEntity + dw_healthOffset);
	return EnemyHealth;
}
And how to use it:
C++:
int enemyTeam = GetTeam(CrossHairEntityID);
int enemyHealth = GetHealth(CrossHairEntityID);

I'm pretty sure, declaring the same thing in a loop, will slow your hack
 

Nether

The Angel Of Verdun
Meme Tier VIP
Dank Tier Donator
Dec 11, 2013
293
3,738
16
It works just fine this way, some people even said the triggerbot was to fast ;)
you should declare the client and engine and the process out of that local scope, maybe have a header file, and you only need to initialize Process once not twice :)
 

Luciz

Coder
Dank Tier Donator
Nobleman
Jul 10, 2014
101
458
3
you should declare the client and engine and the process out of that local scope, maybe have a header file, and you only need to initialize Process once not twice :)
Good idea o_O
 

kaz

Coder
Full Member
Nobleman
Apr 3, 2013
160
1,183
7
if you will look at the thread CSGO triggerbot Works offline you can clearly see thats my code + Nethers mouse_event
There's not much to that piece of code, shouldn't really claim one line of basic code as yours. I don't understand why so many people go with that triggerbot method because it's not accurate and the only good use for it is determining the player you're targetting at, or visibility check for bone FOV triggerbot which is only good if your pc is fast or it's internal.
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Or if you're like me and hate structures, you can use these functions:
C++:
int GetTeam(int player)
{
	Mem.Process("csgo.exe");
	DWORD dwClient = Mem.Module("client.dll");
	DWORD dwEngine = Mem.Module("engine.dll");

	DWORD CBaseEntity = Mem.Read<DWORD>(dwClient + dw_EntityBase + ((player - 1) * dw_EntityLoopDistance));
	int EnemyTeam = Mem.Read<int>(CBaseEntity + dw_teamOffset);
	return EnemyTeam;
}

int GetHealth(int player)
{
	Mem.Process("csgo.exe");
	DWORD dwClient = Mem.Module("client.dll");
	DWORD dwEngine = Mem.Module("engine.dll");

	DWORD CBaseEntity = Mem.Read<DWORD>(dwClient + dw_EntityBase + ((player - 1) * dw_EntityLoopDistance));
	int EnemyHealth = Mem.Read<int>(CBaseEntity + dw_healthOffset);
	return EnemyHealth;
}
And how to use it:
C++:
int enemyTeam = GetTeam(CrossHairEntityID);
int enemyHealth = GetHealth(CrossHairEntityID);
Wtf how could you hate structures?
 
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