Hey guys,
I'm trying to convert my nooby incross triggerbot to a World2Screen based one, but I'm having some problems. It results in screen coordinates like {5.55555e-40, 4.4444e-38} every time. I've tried various C&P world2screen functions, and I think that the player locations I'm reading are correct. I'm fairly certain that my ViewMatrix is wrong somehow. When I print it, I get values like
-4.1231e-41 3.21232e-38 2.1121e-37 2.2222e-10
0 0 7.554e-40 -3.3141e-41
0 0 0 0
-2.3213e-40 3.44444e-39 2.2313e-30 1.34232e-40
...which looks KIND OF right since the third row is empty but I'm pretty sure those values are kinda wild. The offset I'm using is from the offset thread:
EngineRender -> m_dwViewMatrix: ________________ 0x04A4E584
(Is that the correct one?)
Here's the code I'm using to read from that location in memory:
typedef struct{
float view[4][4];
}Matrix;
struct Person{
...
Matrix matrix;
};
me.matrix = mem.Read<Matrix>(client + dwMatrix);
//"me" is a Person, mem is a ProcMem-like object, client is the handle of the CSGO client (it's correct), and dwMatrix is the offset shown above.
I can show some of the World2Screen functions I've tried, but I really don't think that's where my problem is stemming from. In any event, I am an experienced programmer but right now I am at a total loss as to what to look at next. Any help would be appreciated!