Armyw0w Posted March 19, 2014 Share Posted March 19, 2014 Hi i have a problem with geting position at Player. i have this: DWORD* pActor = (DWORD*)0xB6F5F0; DWORD* pMtrx1 = (DWORD*)((*pActor) + 0x14); float* xPos1 = (float*)((*pMtrx1) + 0x30); But my DLL get crash because are pointers at pActor, if i delete pointers at pActor the DLL is injected but xPos1 is 0.0 (i tested in a loop) can help me, please ? Link to comment Share on other sites More sharing options...
DK22Pac Posted March 19, 2014 Share Posted March 19, 2014 (edited) char output[64]; float *position = (*(DWORD *)0xB6F5F0)? (float *)(*(DWORD *)(*(DWORD *)0xB6F5F0 + 0x14) + 0x30) : NULL; if(position) sprintf(output, "x %f y %f z %f", position[0], position[1], position[2]); Edited March 19, 2014 by _DK Link to comment Share on other sites More sharing options...
fastman92 Posted March 19, 2014 Share Posted March 19, 2014 (edited) struct CVector { float x; float y; float z; }; char output[64]; CVector *position = (*(DWORD *)0xB6F5F0)? (CVector *)(*(DWORD *)(*(DWORD *)0xB6F5F0 + 0x14) + 0x30) : NULL; if(position) sprintf(output, "x %f y %f z %f", position -> x, position -> y, position -> z); Edited March 20, 2014 by fastman92 Link to comment Share on other sites More sharing options...
Armyw0w Posted March 20, 2014 Author Share Posted March 20, 2014 Thanks DK and fastman92 :* close . Link to comment Share on other sites More sharing options...
Recommended Posts