Characters high?

Posts 1–5 of 5 · Page 1 of 1
Characters high?
Hey! How big a player if
-He is standing
-Ducking?

I am creating an aimbot. Now it's aiming between the legs. So I want to add a height to it.
Quote Originally Posted by britguy420 View Post
Hey! How big a player if
-He is standing
-Ducking?

I am creating an aimbot. Now it's aiming between the legs. So I want to add a height to it.
m_vecViewOffset = 0x104;
That's the head offset from the player's origin, you know, a player can duck and shit like that.

Read a vector from player + 0x104 to get the head height and add that to your target's origin.

Code:
Vector GetHeadPosition()
		{
			return *reinterpret_cast<Vector*>(this + Offsets::m_vecOrigin) + *reinterpret_cast<Vector*>(this + Offsets::m_vecViewOffset);
		}
I do however recommend that you use the bonematrix and read the location of bone 8 (head).
Quote Originally Posted by affe2626 View Post
m_vecViewOffset = 0x104;
That's the head offset from the player's origin, you know, a player can duck and shit like that.

Read a vector from player + 0x104 to get the head height and add that to your target's origin.

Code:
Vector GetHeadPosition()
		{
			return *reinterpret_cast<Vector*>(this + Offsets::m_vecOrigin) + *reinterpret_cast<Vector*>(this + Offsets::m_vecViewOffset);
		}
I do however recommend that you use the bonematrix and read the location of bone 8 (head).
Many thanks, man...
edit : i think i did something wrong...
GetEyePosition is GetHeadPosition.

aimangle = CalcAngle(local->GetAbsOrigin(), eye);
eye = entity->GetAbsOrigin() + entity->GetEyePosition();

i did something like this and then
cmd->viewangles.x = aimangle.x;
cmd->viewangles.y = aimangle.y;
and its now shooting the middle of aim_botz xD not the 0,0,0 point on the map xD
any tips?
Quote Originally Posted by britguy420 View Post
Many thanks, man...
edit : i think i did something wrong...
GetEyePosition is GetHeadPosition.

aimangle = CalcAngle(local->GetAbsOrigin(), eye);
eye = entity->GetAbsOrigin() + entity->GetEyePosition();

i did something like this and then
cmd->viewangles.x = aimangle.x;
cmd->viewangles.y = aimangle.y;
and its now shooting the middle of aim_botz xD not the 0,0,0 point on the map xD
any tips?
localHead = local->GetAbsOrigin() + local->GetEyePosition();
enemyHead = entity->GetAbsOrigin() + entity->GetEyePosition();

aimangle = CalcAngle(localHead, enemyHead);

try this
Quote Originally Posted by Zaczero View Post


localHead = local->GetAbsOrigin() + local->GetEyePosition();
enemyHead = entity->GetAbsOrigin() + entity->GetEyePosition();

aimangle = CalcAngle(localHead, enemyHead);

try this
oh thanks, but its still not the best... its aiming at the lower body but i think i can fix it thanks for every help Have a nice day
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us