CSGO Aimbot

Posts 112 of 12 · Page 1 of 1
CSGO Aimbot
So i found this source code for CSGO Aimbot! Credits to Kevinho171!

Source Code:
[HTML] 

if (pCmd->buttons & IN_ATTACK)
{
float radius = 512.0f;
C_BasePlayer *lp = UTIL_PlayerByIndex(1);
C_BaseEntity *ents[256];
int ent_count = UTIL_EntitiesInSphere(ents, 256, lp->GetAbsOrigin(), radius, 0);
int i = 0;
for (i = 0; i < ent_count; i++)
{
if (ents[i] == NULL) continue;
if (!ents[i]->IsAlive()) continue;
if (!ents[i]->IsNPC()) continue;
if (!ents[i]->IsVisible()) continue;
if (ents[i]->IsDormant()) continue;
if (ents[i]->GetMoveType() == MOVETYPE_NONE) continue;
if (ents[i]->GetMoveType() == MOVETYPE_OBSERVER) continue;

Vector aimpos; aimpos.Init();
aimpos = ents[i]->GetAbsOrigin();
QAngle attchangles;

int attch = ents[i]->LookupAttachment("ValveBiped.Bip01_Head1");
if (attch > 0) ents[i]->GetAttachment(attch, aimpos, attchangles);

QAngle aimang; aimang.Init();
aimpos = aimpos - EyePosition();
AngleVectors(aimang, &aimpos);

pCmd->viewangles = aimang;
}

&nbsp;[/HTML]
Moved to Coding.
Can u please tell me how to use ? Im bad at this
Good release man.
I'm Pretty sure you just make it into a dll using VS. and inject it I prefer using RemoteDll.
Or if you are doing it externally you can use SetViewAngle this is a function to calculate the yaw and pitch.

Code:
Vector3d CSMath::CalcAngles(Vector3d src, Vector3d dst) {

	double delta[3] = { (src.x - dst.x), (src.y - dst.y), (src.z - dst.z) };
	double hyp = sqrt(delta[0] * delta[0] + delta[1] * delta[1]);
	float angles[3];
	angles[0] = (float)(atan2f(delta[2], hyp) * 57.295779513082f);
	angles[1] = (float)(atanf(delta[1] / delta[0]) * 57.295779513082f);
	angles[2] = 0.0f;

	if (delta[0] >= 0.0)
	{
		angles[1] += 180.0f;
	}
	Vector3d ret = { angles[0], angles[1], angles[2] };
	ret = CSMath::normalizeAngle(ret);
	return ret;
}
Quote Originally Posted by Merccy2 View Post
Or if you are doing it externally you can use SetViewAngle this is a function to calculate the yaw and pitch.

Code:
Vector3d CSMath::CalcAngles(Vector3d src, Vector3d dst) {

	double delta[3] = { (src.x - dst.x), (src.y - dst.y), (src.z - dst.z) };
	double hyp = sqrt(delta[0] * delta[0] + delta[1] * delta[1]);
	float angles[3];
	angles[0] = (float)(atan2f(delta[2], hyp) * 57.295779513082f);
	angles[1] = (float)(atanf(delta[1] / delta[0]) * 57.295779513082f);
	angles[2] = 0.0f;

	if (delta[0] >= 0.0)
	{
		angles[1] += 180.0f;
	}
	Vector3d ret = { angles[0], angles[1], angles[2] };
	ret = CSMath::normalizeAngle(ret);
	return ret;
}
just btw. - a few offsets. if needed (lol)

Base and Cross
------------------
EntityList :: 0x04A133C4
LocalPlayer :: 0x00A70A44
RadarBase :: 0x04A47FEC
ServerBase :: 0x04A581E0
CrosshairIndex :: 0x000023F8

Console
------------------
moveleft :: 0x02E85310
moveright :: 0x02E85304
forward :: 0x02E85364
backward :: 0x02E85358
attack :: 0x02E85334
attack2 :: 0x02E85328
jump :: 0x04AA1F7C

Model and View
------------------
SetViewAngle :: 0x4CB8
ViewMatrix1 :: 0x4A08914
ViewMatrix2 :: 0x4A08A24
ViewMatrix3 :: 0x4A08D34
EnginePointer :: 0x55A094
EnginePosition :: 0x605CA4
BoneMatrix :: 0xA78
code it detected or outdated , dosent work.
Quote Originally Posted by pumpkinking View Post
code it detected or outdated , dosent work.
You're fucking retarded
How do I use it? idk how to compile the source code.
Quote Originally Posted by TheRealDeal1231 View Post
How do I use it? idk how to compile the source code.
Use an IDE (Visual Studio) will do.
Quote Originally Posted by TheRealDeal1231 View Post
How do I use it? idk how to compile the source code.
If you don't know how to use it is not for you.
Posts 112 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?