Results 1 to 5 of 5
  1. #1
    Skips's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    363
    Reputation
    23
    Thanks
    193

    Trigger Bot Base?

    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.

  2. #2
    gtaplayer2's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Dancing with my kawaii friend
    Posts
    588
    Reputation
    22
    Thanks
    1,984

  3. #3
    Merccy2's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    886
    Reputation
    310
    Thanks
    19,668
    My Mood
    Cool
    Quote Originally Posted by Skipss View Post
    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.
    If you have any questions regarding my hacks, add me on Discord: Merccy#8314

  4. The Following User Says Thank You to Merccy2 For This Useful Post:

    WhiteRenard (02-11-2015)

  5. #4
    Skips's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    363
    Reputation
    23
    Thanks
    193
    Quote Originally Posted by Merccy2 View Post
    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.
    I highly appreciate your post, thanks!

  6. #5
    Merccy2's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    886
    Reputation
    310
    Thanks
    19,668
    My Mood
    Cool
    Quote Originally Posted by Skipss View Post
    I highly appreciate your post, thanks!
    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:
    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
    SetViewAngle is also used to get the view angle.
    Pseudo code:
    Code:
    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 are writing angles don't forget to normalize them (if you write an invalid angle you will get insta banned) google cs go normalize angles

    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

  7. The Following 2 Users Say Thank You to Merccy2 For This Useful Post:

    WhiteRenard (02-11-2015),Yemiez (04-26-2015)

Similar Threads

  1. My 5th trigger bot
    By dark_byte70 in forum General Hacking
    Replies: 7
    Last Post: 10-26-2012, 02:15 PM
  2. [Bot Release] Simple Trigger Bot
    By blah in forum Combat Arms Hacks & Cheats
    Replies: 57
    Last Post: 08-20-2008, 10:05 AM
  3. Whats trigger bot?
    By apeguy in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-14-2008, 07:22 PM
  4. Trigger Bot
    By thiag00 in forum Visual Basic Programming
    Replies: 0
    Last Post: 05-01-2008, 07:15 PM
  5. Fucken Trigger Bot!
    By nukeist_ in forum Flaming & Rage
    Replies: 4
    Last Post: 01-19-2008, 12:23 PM