Thanks you all! I got it somehow working! But esp boxes are not in place. They fly away! sometimes it show boxes at bottom or else too up. I got confused since many use various names to indicate vars in structs! Like Flag for pose and vorigin,etc... This made my work difficult! Soon I will make one even though it might be ugly port from mw2.
These are the thing i use in my program:
ReadProcessMemory(mw2_process,(PVOID)(VIEWANGLEY), &mw2_view,sizeof(mw2_view), NULL);
class MW2_View_Y
{
public:
Vector Recoil;
Vector viewAngles;//vOrigin
Vector DeltaOrigin;
float AngleY; //ReadViewAngleY
float AngleX; //ReadViewAngleX
char _0x0070[108];
float SetViewAngleY;
float SetViewAngleX;
};
Do I have the correct variables in usage? I didn't change the mw2 preffix before anything. I guess I went wrong here! In comments i have placed the original var names.