qb-0 / pyMeow

Python Game Hacking Library
MIT License
355 stars 39 forks source link

Enhancement's (Examples CS2 Cheat) #35

Closed ImInTheICU closed 10 months ago

ImInTheICU commented 1 year ago
  1. Load offsets automatically, here's an example I quickly made.
    class Offsets:
    CS2Offsets = requests.get("https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/client.dll.json").json()
    dwEntityList = None
    dwViewMatrix = None
    dwLocalPlayerController = None
    m_iPawnHealth = int(CS2Offsets['CCSPlayerController']['data']['m_iPawnHealth']['value'])
    m_hPlayerPawn = int(CS2Offsets['CCSPlayerController']['data']['m_hPlayerPawn']['value'])
    m_iszPlayerName = int(CS2Offsets['CBasePlayerController']['data']['m_iszPlayerName']['value'])
    m_iTeamNum = int(CS2Offsets['C_BaseEntity']['data']['m_iTeamNum']['value'])
    m_vOldOrigin = int(CS2Offsets['C_BasePlayerPawn']['data']['m_vOldOrigin']['value'])
    m_pGameSceneNode = int(CS2Offsets['C_BaseEntity']['data']['m_pGameSceneNode']['value'])
    m_bPawnIsAlive = int(CS2Offsets['CCSPlayerController']['data']['m_bPawnIsAlive']['value'])
    m_pBoneArray = 480 
    1. Instead of checking health use the new offset m_bPawnIsAlive to check if their alive.
      @property
      def isalive(self):
      return pm.r_bool(self.proc, self.ptr + Offsets.m_bPawnIsAlive)
  2. Add a render distance to prevent heavy load ( i had major problems with running this on an RTX3060 barely reaching 60 FPS at some points )
  3. Add a health bar on the side of the ESP-box ( not possible with how pyMeow currently works, from my testing )
ImInTheICU commented 1 year ago

I'll create a PR

ImInTheICU commented 1 year ago

image

Disabling this fixed the overlay FPS drop.

g0ldyy commented 11 months ago

Author

in my tests, it does the opposite and lags my overlay effects are different on every machine, I suppose

g0ldyy commented 11 months ago

health bar is also possible