ESP

Mr House

Moderator
Experienced
Moderator
Experienced
Status
Offline
Joined
Mar 27, 2019
Messages
313
Reaction score
863
I am using python 3 to code CS:GO Hacks. I was wondering how can I implement ESP boxes to the python script. Any module I can use for such matter?
 

DREDD

Administrator
Administrator
Administrator
Administrator
Status
Offline
Joined
Apr 18, 2019
Messages
147
Reaction score
249
Code:
# glowESP: Enables glow around each entity
def glowESP(process, client):
    glowLocalBase = Address((client + localPlayerOffset), process).read() # Get the localPlayer
    glowPointer = Address((client + glowObjectOffset), process).read() # Get the glow Pointer
    myTeamID = Address((glowLocalBase + teamNumOffset), process).read('int') # Get the localPlayer team ID
 
    playerCount = Address((client + glowObjectOffset + 0x4), process).read('int')
    for i in range(1, playerCount): # For each player until the max players available
        glowCurrentPlayer = Address((client + entityListOffset + ((i - 1) * 0x10)), process).read() # Get current entity based on for-loop variable i
 
        if glowCurrentPlayer == 0x0: # If the entity is invalid
            break # Break out of the for loop, we have reached the current max players
 
        glowCurrentPlayerDormant = Address((glowCurrentPlayer + dormantOffset), process).read('int') # Get boolean that states whether glowCurrentPlayer entity is dormant or not
        glowCurrentPlayerGlowIndex = Address((glowCurrentPlayer + glowIndexOffset), process).read('int') # Get the glowIndex of the glowCurrentPlayer entity
 
        entityBaseTeamID = Address((glowCurrentPlayer + teamNumOffset), process).read('int') # Get the team ID of the glowCurrentPlayer entity
 
        if entityBaseTeamID == 0 or glowCurrentPlayerDormant != 0: # If the glowCurrentPlayer entity is on an irrelevant team (0) or if the glowCurrentPlayer entity is dormant
            continue # Continue the for-loop
        else:
            if myTeamID != entityBaseTeamID: # If localPlayer team is not glowCurrentPlayer entity team
                Address((glowCurrentPlayer + bSpottedOffset), process).write(1, 'int')  # Set glowCurrentPlayer bspotted to True
 
            # fucking [censored] python with no switch statements kill me
            if entityBaseTeamID == 2: # If glowCurrentPlayer entity is a terrorist
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x4)), process).write(1.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x8)), process).write(0.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0xC)), process).write(0.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x10)), process).write(1.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x24)), process).write(1, 'int')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x25)), process).write(0, 'int')
            elif entityBaseTeamID == 3: # else if glowCurrentPlayer entity is a counter-terrorist
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x4)), process).write(0.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x8)), process).write(0.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0xC)), process).write(1.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x10)), process).write(1.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x24)), process).write(1, 'int')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x25)), process).write(0, 'int')
            else:
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x4)), process).write(0.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x8)), process).write(1.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0xC)), process).write(0.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x10)), process).write(1.0, 'float')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x24)), process).write(1, 'int')
                Address((glowPointer + ((glowCurrentPlayerGlowIndex * 0x38) + 0x25)), process).write(0, 'int')
 

Mr House

Moderator
Experienced
Moderator
Experienced
Status
Offline
Joined
Mar 27, 2019
Messages
313
Reaction score
863
Thanks DREDD but I didn't mean glowing entities (I already did that). I meant drawing boxes likes these:
79
 

Mr House

Moderator
Experienced
Moderator
Experienced
Status
Offline
Joined
Mar 27, 2019
Messages
313
Reaction score
863
Top