Advertisement
Guest User

hate niggers

a guest
Dec 10th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. import pymem
  2. import pymem.process
  3. import sys
  4. import json
  5.  
  6.  
  7. csgo = json.load(open("csgo.json"))
  8.  
  9.  
  10. pm = pymem.Pymem("csgo.exe")
  11. client = pymem.process.module_from_name(pm.process_handle, "client_panorama.dll").lpBaseOfDll
  12.  
  13. while True:
  14. if pm.read_int(client + csgo['signatures']['dwEntityList']) < 0:
  15. continue
  16.  
  17. try:
  18. glow_manager = pm.read_int(client + csgo['signatures']['dwGlowObjectManager'])
  19. print()
  20. player = pm.read_int(client + csgo['signatures']['dwLocalPlayer'])
  21.  
  22. for i in range(0, 32):
  23. entity = pm.read_int(client + csgo['signatures']['dwEntityList'] + i * 0x10)
  24. if not entity:
  25. continue
  26. #print( str(pm.read_int(entity + csgo['netvars']['m_szCustomName'])) + ": " + str(pm.read_int(entity + csgo['netvars']['m_iHealth'])), end=' ')
  27. print( str(pm.read_int(entity + csgo['netvars']['m_szCustomName'])) + ": " + str(pm.read_int(entity + csgo['netvars']['m_iHealth'])), end=' ')
  28.  
  29.  
  30.  
  31.  
  32. entity_team_id = pm.read_int(entity + csgo['netvars']['m_iTeamNum'])
  33. entity_glow = pm.read_int(entity + csgo['netvars']['m_iGlowIndex'])
  34.  
  35. if entity_team_id == 2:
  36. pm.write_float(glow_manager + entity_glow * 0x38 + 0x4, float(1)) # R
  37. pm.write_float(glow_manager + entity_glow * 0x38 + 0x8, float(0)) # G
  38. pm.write_float(glow_manager + entity_glow * 0x38 + 0xC, float(0)) # B
  39. pm.write_float(glow_manager + entity_glow * 0x38 + 0x10, float(1)) # Alpha
  40. pm.write_int(glow_manager + entity_glow * 0x38 + 0x24, 1) # Enable glow
  41.  
  42. elif entity_team_id == 3:
  43. pm.write_float(glow_manager + entity_glow * 0x38 + 0x4, float(0)) # R
  44. pm.write_float(glow_manager + entity_glow * 0x38 + 0x8, float(0)) # G
  45. pm.write_float(glow_manager + entity_glow * 0x38 + 0xC, float(1)) # B
  46. pm.write_float(glow_manager + entity_glow * 0x38 + 0x10, float(1)) # Alpha
  47. pm.write_int(glow_manager + entity_glow * 0x38 + 0x24, 1) # Enable glow
  48.  
  49. except:
  50. print(sys.exc_info())
  51. input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement