Is this C#? If it is what's the equivalent of Vector3 in C++?
Originally Posted by Block4o
Is this C#? If it is what's the equivalent of Vector3 in C++?
This is C++.
It is a class that holds the data of 3 floats (x, y, z).
btw @Chris maybe u can help me, my code about the esp (glow) im calling it in other like void espglow( int a, int b, int c, int d, int e, int f, int g) // COLORS AND THICKNESS
but the colors only display which is in full like my r: 0 g: 255 b: 150, will show green, maybe it is because im using INT? should i use FLOAT??
yep nevermind, i took a close look at the code now and saw, thx
@PhY'z can you answer in skype? I added you. Sorry for the offtopic..
Originally Posted by Block4o
@PhY'z can you answer in skype? I added you. Sorry for the offtopic..
I can try, ask here, why not?
I need somebody to explain how to read these vectors from the game's memory. I have got no problems with int, float, etc.. but I don't know how to do it with vectors..
P.S. Is this Vector3 class ready, or I have to write my own? @adri208 @Chris
Originally Posted by Block4o
I need somebody to explain how to read these vectors from the game's memory. I have got no problems with int, float, etc.. but I don't know how to do it with vectors..
P.S. Is this Vector3 class ready, or I have to write my own? @adri208 @darkwrath505
When you read a float from the games memory you say which address to read from and the size to read (how much to read).
The size in the case of a float is 4 bytes.
Say you are reading m_vecOrigin, it has 3 floats of data (x, y, z) each is 4 bytes in size.
Instead of reading each piece of data, you can read all them in one call, by using a class/struct or whatever.
Code:
class Vector3{
public
float x, y, z;
};
This is a Vector3 class. It holds 3 floats (x, y, z), just like m_vecOrigin.
So think about size again, if each float is 4 bytes in size how big is this class going to be? 12 bytes (4 * 3).
This tells us that in order to read m_vecOrigin with one call we need to read 12 bytes into it, 4 bytes for each float.
So instead of reading 3 floats, you can read a single Vector3.
Code:
Memory.Read<Vector3>(entity + m_vecOrigin);
This reduces the amount of calls to readprocessmemory, helping with performance.
Have a look up how data is stored in memory to further understand it.
Someone can correct me if they feel I am wrong, this is just my interpretation of it.
@Chris thank you for your time, I really understood it