well I managed (under debugging) to get it to show the resolution properly but thats it for not knowing a single thing about C++ or even how to find the offset (played with Cheat Engine for the first time today) btw:
Code:
ReadProcessMemory(process,(PVOID)0x633B424,&resolution,8,NULL);
under debugging made the proper resolution show up, does that mean the code is good until that point, and its the other things I dont have right?
Code:
ReadProcessMemory(process,(PVOID)0x7F58C8,&IsInGame,4,NULL); //k
if(IsInGame)
{
ReadProcessMemory(process,(PVOID)(0x7F8C08),&localclientnum,4,NULL); //k
ReadProcessMemory(process,(PVOID)(0xB32AB0+0x10),&fov,8,NULL); //k
ReadProcessMemory(process,(PVOID)(0xB32AB0+0x18),&mypos,12,NULL); //k
ReadProcessMemory(process,(PVOID)(0xB32AB0+0x3F90),&viewangles,12,NULL); //k
for(int i = 0; i < 18; i++)
{
ReadProcessMemory(process,(PVOID)(0x8EC2C8+i*0x204+0xE0),&typ,4,NULL); //k
if(typ != 1)
continue;
ReadProcessMemory(process,(PVOID)(0x8EC2C8+i*0x204+0x2),&valid,4,NULL); //k
ReadProcessMemory(process,(PVOID)(0x8EC2C8+i*0x204+0x1DC),&alive,4,NULL); //k
ReadProcessMemory(process,(PVOID)(0x8EC2C8+i*0x204+0xDC),&clientnum,4,NULL); //k
if(valid && alive && (localclientnum != clientnum))
{
ReadProcessMemory(process,(PVOID)(0x8EB2E4+i*0x52C+0x1C),&team,4,NULL); //k
if(team == 1)
info.color = RGB(255,0,0);
else if(team == 2)
info.color = RGB(0,0,255);
else
info.color = RGB(255,255,255);
ReadProcessMemory(process,(PVOID)(0x56AC70+i*0x204+0x18),&info.pos,12,NULL); //k
ReadProcessMemory(process,(PVOID)(0x5707D0+i*0x52C+0xC),&info.name,16,NULL); //k
Im such a noob at this, and it would be so much better(and sooner) if someone who knew what they were doing (AT ALL) did this... how hard is it to take the 1.1.177 Kn4ck3r source and JUST update the offsets, and change the box to be *around* the size and area of his head?
alright so I got it to work (compiled using Dev-C++, thank you Sumo1) but there are a few things that I would like to do but I dont have a clue how to
how do I adjust the "base" y value in the calculations so that it doesn't completely mess everything up?
Im trying to move the origin of the box to somewhere near the head (doesn't have to be super perfect), and I was going to make a box or even an ellipse 100x100 as long as it was at head level (right now as I understand it doesnt compensate for what stance the player is in so I have the box drawing "1400" tall to have the very top of the box be right under his head if he is standing and you are aim down the sight. All this is new to me and Im still discovering the limits of kn4ck3r's original 1.1.177 source code (Im thinking of doing the Sumo1 thing and adding in my own stuff eg. copy/paste other people's stuff)
Code:
void ReadGame()
{
while(true)
{
ReadProcessMemory(process,(PVOID)0x7F58C8,&IsInGame,4,NULL); //k
if(IsInGame)
{
ReadProcessMemory(process,(PVOID)(0x7F59BC),&localclientnum,4,NULL); //k
ReadProcessMemory(process,(PVOID)(0x860030+0x10),&fov,8,NULL); //k
ReadProcessMemory(process,(PVOID)(0x860030+0x18),&mypos,12,NULL); //k
ReadProcessMemory(process,(PVOID)(0x860030+0x3F90),&viewangles,12,NULL); //k
for(int i = 0; i < 18; i++)
{
ReadProcessMemory(process,(PVOID)(0x8F8AF8+i*0x204+0xE0),&typ,4,NULL); //k
if(typ != 1)
continue;
ReadProcessMemory(process,(PVOID)(0x8F8AF8+i*0x204+0x2),&valid,4,NULL); //k
ReadProcessMemory(process,(PVOID)(0x8F8AF8+i*0x204+0x1DC),&alive,4,NULL); //k
ReadProcessMemory(process,(PVOID)(0x8F8AF8+i*0x204+0xDC),&clientnum,4,NULL); //k
if(valid && alive && (localclientnum != clientnum))
{
ReadProcessMemory(process,(PVOID)(0x8EC2C8+i*0x52C+0x1C),&team,4,NULL); //k
if(team == 1)
info.color = RGB(255,0,0);
else if(team == 2)
info.color = RGB(0,0,255);
else
info.color = RGB(255,255,255);
ReadProcessMemory(process,(PVOID)(0x8F8AF8+i*0x204+0x18),&info.pos,12,NULL); //k
ReadProcessMemory(process,(PVOID)(0x8EC2C8+i*0x52C+0xC),&info.name,16,NULL); //k
dist = (mypos-info.pos).length()/48;
if(WorldToScreen(info.pos,&ScreenX,&ScreenY))
{
drawx = 100.0/dist;
drawy = 1400.0/dist;
DrawBox(ScreenX-(drawx/2),ScreenY-drawy,drawx,drawy,info.color);
DrawString(ScreenX-(drawx/2),ScreenY,RGB(255,255,255),true,info.name);
}
}
}
}
Sleep(1);
}
}
oh btw THIS WORKS IN FULLSCREEN AND THERE IS NOBODY WITHOUT A BOX EVER!
uh yeah here is a tip... don't try out other source code you may think is external... listen to the advice here, it wasnt kn4ck3r's source it was some other "external" that got me banned, I was just VAC banned, but its ok, now Im going to try the hardcore ones