Here is some scrubs tutorial.
https://www.mpgh.net/forum/showthread.php?t=887645
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.
Here is some scrubs tutorial.
https://www.mpgh.net/forum/showthread.php?t=887645
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:
To get data of this entity for instance HP you use the following codeCode:DWORD dwLocalPlayerBase = memory.Read<DWORD>(memory.Module("client.dll") + LocalPlayerOffset);
To get all the other entities you need to use the entity base offset and it works like this.Code:int myHP = memory.Read<int>(dwLocalPlayerBase + 0xFC); // 0xFC is the health offset as you can find in all the offset topics
If you want to read the hp you can useCode: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 }
This is all the knowledge you should have to make hacks if you know how to program.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); }
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.
If you have any questions regarding my hacks, add me on Discord: Merccy#8314
WhiteRenard (02-11-2015)
I might have been a bit rude but most people posting here are just looking for copy pastable code but imo you should not make hacks if you cant even program.
These are the latest offsets:
SetViewAngle is also used to get the view angle.Code:Build Date : 5/2/2015 - 1:47:54 - - - - - - - - - - - - - Tool by Y3t1y3t(uc) - - - - - - - - - - - - - - - - - - - - - Entities' - - - - - - - - > LocalPlayer 0xA6B96C > EntityList 0x4A0E024 - - - - - - - - RadarBase - - - - - - - - > RadarBase 0x4A42C4C > RadarPointer 0x50 > RadarHealth 0x20 > RadarName 0x24 > RadarSize 0x1E0 - - - - - - - NetVars - - - - - - - > m_flNextPrimaryAttack 0x159C > m_hOwner 0x1594 > m_iState 0x15B4 > m_iClip1 0x15C0 > m_iClip2 0x15C4 > m_hActiveWeapon 0x12C0 > m_bSpotted 0x935 > m_hOwnerEntity 0x148 > m_vecOrigin 0x134 > m_iTeamNum 0xF0 > m_Local 0x136C > m_vecViewOffset 0x104 > m_nTickBase 0x17C0 > m_vecVelocity 0x110 > m_vecBaseVelocity 0x11C > m_lifestate 0x25B > m_fFlags 0x100 > m_iHealth 0xFC > m_iFOV 0x158C > m_iFOVStart 0x1590 > m_flFlashMaxAlpha 0x1D9C > m_flFlashDuration 0x1DA0 > m_angEyeAngles 0x239C > m_iAccount 0x238C > m_iCrossHairID 0x23F8 > m_fAccuracyPenalty 0x1668 > m_iWeaponID 0x1684 > m_vecPunch 0x13DC - - - - - - Other - - - - - - > BoneMatrix 0xA78 > GlobalVars 0x5580A0 > EnginePointer 0x558414 > EnginePosition 0x603624 > SetViewAngle 0x4CB8 > ViewMatrix1 0x4A03574 > ViewMatrix2 0x4A03684 > ViewMatrix3 0x4A03994
Pseudo code:
If you are writing angles don't forget to normalize them (if you write an invalid angle you will get insta banned) google cs go normalize anglesCode:DWORD dwEngineBase = memory.Read<DWORD>(memory.Module("engine.dll") + EnginePointerOffset); // Read D3DXVECTOR3 viewAngles = memory.Read<D3DXVECTOR3>(dwEngineBase + SetViewAngleOffset); // Write viewAngles.x = 0; viewAngles.y = 0; memory.Write<D3DXVECTOR3>(dwEngineBase + SetViewAngleOffset, viewAngles);
If you want to make an aimbot you can calculate the yaw (x viewangle) and pitch (y viewangle) using a function explained here https://stackoverflow.com/questions/1...unknown-points .
First location has to be your eye position and the second location is what you want to aim at.
Last edited by Merccy2; 02-08-2015 at 01:08 PM.
If you have any questions regarding my hacks, add me on Discord: Merccy#8314
WhiteRenard (02-11-2015),Yemiez (04-26-2015)