help me in finding bone matrix please

Posts 1–4 of 4 · Page 1 of 1
help me in finding bone matrix please
please help me
John Kittz
DWORD x=getpid("Counter-Strike: Global Offensive");
HANDLE y=gethproc(x);
int client=getmod(x,"client.dll");
int LocalPlayer=read<int>(y,client+oLocalPlayer);
int EntityList=read<int>(y,client+oEntityList+0x10);
int botbonebase=read<int>(y,EntityList+0x2698);

while(true){
cout<<"x-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0xC))<<endl;
cout<<"y-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0x1C))<<endl;
cout<<"z-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0x2C))<<endl;
Sleep(1000);
system("cls");
}



this is the code i am debuging i have 1 bot in my server whose entity list is (client+oEntityList+0x10 )so i created baseb******** (EntityList+0x2698)
now when i run this code this does not give bone position of that BOT please help me to find bone cord
Code:
while(true){
cout<<"x-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0xC))<<endl;
cout<<"y-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0x1C))<<endl;
cout<<"z-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0x2C))<<endl;
Sleep(1000);
system("cls");
}
WTF
use vectors
Code:
	Vector GetBonePosition(int boneId);

Code:
Vector Player::GetBonePosition(int boneId)
{
	Vector bone;
	DWORD boneMatrix = Mem->Read<DWORD>(BaseAddr + Offsets::boneMatrix);

	bone.x = Mem->Read<float>(boneMatrix + (0x30 * boneId) + 0x0C);
	bone.y = Mem->Read<float>(boneMatrix + (0x30 * boneId) + 0x1C);
	bone.z = Mem->Read<float>(boneMatrix + (0x30 * boneId) + 0x2C);
	return bone;
}
it's so fck easy to make bro
Quote Originally Posted by KMWTW View Post
Code:
while(true){
cout<<"x-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0xC))<<endl;
cout<<"y-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0x1C))<<endl;
cout<<"z-cord="<<read<float>(y,botbonebase + (0x30 * 10 + 0x2C))<<endl;
Sleep(1000);
system("cls");
}
WTF
use vectors
Code:
	Vector GetBonePosition(int boneId);

Code:
Vector Player::GetBonePosition(int boneId)
{
	Vector bone;
	DWORD boneMatrix = Mem->Read<DWORD>(BaseAddr + Offsets::boneMatrix);

	bone.x = Mem->Read<float>(boneMatrix + (0x30 * boneId) + 0x0C);
	bone.y = Mem->Read<float>(boneMatrix + (0x30 * boneId) + 0x1C);
	bone.z = Mem->Read<float>(boneMatrix + (0x30 * boneId) + 0x2C);
	return bone;
}
it's so fck easy to make bro
bad code, stop calling readprocessmemory too many times

Code:
struct BoneInfo_t
{
	char __pad0x0[0xA];
	float x;
	char __pad0x10[0xA];
	float y;
	char __pad0x20[0xA];
	float z;
};

BoneInfo_t bone_info = read(bonematrix + 0x30 * boneId);

bone.x = bone_info.x;
bone.y = bone_info.y;
bone_z = bone_info.z;
i assume this works
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us