
Originally Posted by
Skipss
I'm looking for a well commented trigger or aim assist source, I would prefer no aimbot.
I'm not looking to just compile and use it, I'm highly nooby at creating my own hacks, so anything that is well commented and/or if someone could maybe explain the code? Outdated is fine, I just want to learn.
Go to fleep's guides and download ProcMem.h/ProcMem.cpp and use that to read the memory.
Find the latest offsets in the coding section.
How to get current player data:
Code:
DWORD dwLocalPlayerBase = memory.Read<DWORD>(memory.Module("client.dll") + LocalPlayerOffset);
To get data of this entity for instance HP you use the following code
Code:
int myHP = memory.Read<int>(dwLocalPlayerBase + 0xFC); // 0xFC is the health offset as you can find in all the offset topics
To get all the other entities you need to use the entity base offset and it works like this.
Code:
DWORD entityArrayStart = memory.Module("client.dll") + EngineBaseOffset;
// Entity loop
for (int i = 1; i < 64; i++) {
DWORD entityBase = memory.Read<DWORD>(entityArrayStart + i * 0x10);
// Read stuff about the entity here
}
If you want to read the hp you can use
Code:
for (int i = 1; i < 64; i++) {
DWORD entityBase = memory.Read<DWORD>(entityArrayStart + i * 0x10);
// Read stuff about the entity here
int enemyHP = memory.Read<int>(entityBase + 0xFC);
}
This is all the knowledge you should have to make hacks
if you know how to program.
Extra info:
All the offsets beginning with vec are a vector (which is a struct of float x, y, z), all the offsets beginning with ang are angles which you can just read as a vector.
Bones and the view matrix are 3x4 float matrices (or a D3DXMATRIX 3_4).
To go from a position in the 3d world to a point on your screen you can use a WorldToScreen function and you can easily google that function.