NOOB (06-23-2011)
Now I have a basic menu happening in delphi and the basic memory hacks/ Console hacks, I would like to move on.. the next thing I need to learn about is the ESP stuff, Im still not 100% convinced this is actually useful while in game besides from killing a few FPS, but none the less I would like to learn about.. Anyone here would like to explain and discuss. I feel I have given some really good ideas to the C++ coders here, So I am hoping they will return the favour and teach me what I need to know to move on to the next level...
NOOB (06-23-2011)
NOOB (06-23-2011)
^ Basically drawing but theres more to it. You would need the enemy class so you know what to draw on and W2S. Im a noob so i wouldn't know :P
ESP is simple using a class (PlayerInfo) and Drawing lines, boxes, w/e toawrds them. Simply use D3dvectors to find the person position from the class and then use a world2screen function to get the players screen position
NOOB (06-23-2011)
PlayerInfo class dosent have positions in it that ive seen?
NOOB (06-23-2011)
NOOB (06-23-2011)
NOOB (06-23-2011)
NOOB (06-23-2011)
okay so basically, I need to get the coords for each player right? then draw what ever at those coords.. np
What does this word2screen function do your talking about? looks like I have code some of these functions also..
NOOB (06-23-2011)
You'"ll have to convert a W2S function to Delphi
Shouldn't be problem for you
Heres one in c++
Code:bool WorldToScreen( LPDIRECT3DDEVICE9 pDevice, D3DXVECTOR3 vWorldPos, D3DXVECTOR3 * pOut ) { CILTDrawPrim* pDrawPrim = *(CILTDrawPrim**)0x8024F8; D3DVIEWPORT9 viewPort = {0}; pDevice->GetViewport(&viewPort); D3DXVec3Project( pOut, &vWorldPos, &viewPort, &pDrawPrim->Projection, &pDrawPrim->View, &pDrawPrim->World ); return ( pOut->z < 1.0f ); }
Last edited by markoj; 05-21-2011 at 10:02 PM.
Dont ban me
NOOB (06-23-2011)
You can find the address for the pointer to the first ClientInfo in the linked list and then go through them like this :
Offsets :Code:CClientInfo *pClient = ....; //Pointer to the first ClientInfo in the list while(pClient != 0){ if(pClient->dwPlayerID != pSelf->dwPlayerID && pClient->iTeam != pSelf->iTeam){ D3DXVECTOR3 pScreen; if(WorldToScreen(pClient->hObject->Pos, &pScreen)) pFont->DrawText(pScreen.x, pScreen.y, pClient->cPlayerName); } pClient = pClient->pNext; }
iTeam = +0x70
dwPlayerID = +0x4
pNext = +0x264
cPlayerName = +0x10
hObject = +0x28