-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffsets.py
64 lines (59 loc) · 2.42 KB
/
offsets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import requests
import json
response = requests.get("https://raw.githubusercontent.com/Calvineries/Gmod-Nexus-External-ESP/refs/heads/main/offsets.json")
githuboffsets = json.loads(response.text)
try:
dwEntityList = int(githuboffsets["dwEntityList"], 16)
dwLocalPlayer = int(githuboffsets["dwLocalPlayer"], 16)
dwViewMatrix = int(githuboffsets["dwViewMatrix"], 16)
MaxOnlinePlayers = int(githuboffsets["MaxOnlinePlayers"], 16)
screengrab = int(githuboffsets["screengrab"], 16)
dwForceAttack = int(githuboffsets["dwForceAttack"], 16)
dwForceJump = int(githuboffsets["dwForceJump"], 16)
m_angRotation = int(githuboffsets["m_angRotation"], 16)
mat_fullbright = int(githuboffsets["mat_fullbright"], 16)
m_iIDEntIndex = int(githuboffsets["m_iIDEntIndex"], 16)
gversion = str(githuboffsets["gversion"])
except:
pass
try:
with open("offsets.json", "r") as jsonfile:
data = json.load(jsonfile)
if data["dwEntityList"] != "":
dwEntityList = int(data["dwEntityList"], 16)
if data["dwLocalPlayer"] != "":
dwLocalPlayer = int(data["dwLocalPlayer"], 16)
if data["dwViewMatrix"] != "":
dwViewMatrix = int(data["dwViewMatrix"], 16)
if data["MaxOnlinePlayers"] != "":
MaxOnlinePlayers = int(data["MaxOnlinePlayers"], 16)
if data["screengrab"] != "":
screengrab = int(data["screengrab"], 16)
if data["dwForceAttack"] != "":
dwForceAttack = int(data["dwForceAttack"], 16)
if data["dwForceJump"] != "":
dwForceJump = int(data["dwForceJump"], 16)
if data["m_angRotation"] != "":
m_angRotation = int(data["m_angRotation"], 16)
if data["mat_fullbright"] != "":
mat_fullbright = int(data["mat_fullbright"], 16)
if data["m_iIDEntIndex"] != "":
m_iIDEntIndex = int(data["m_iIDEntIndex"], 16)
if data["dwEntityList"] or data["dwLocalPlayer"] or data["dwViewMatrix"] or data["MaxOnlinePlayers"] or data["screengrab"] or data["dwForceAttack"] or data["dwForceJump"] or data["m_angRotation"] or data["mat_fullbright"] != "":
gversion = "Custom offsets"
except FileNotFoundError:
pass
#Netvars
m_vecOrigin = 0x308
m_iHealth = 0xC8
m_iTeamNum = 0xD4
m_fFlags = 0x440
m_iObserverMode = 0x2c8c
m_hObserverTarget = 0x2c90
m_szCustomName = 0x3704
#=Dormant
m_nRenderMode = 0xB4
#=Nocliping
m_nRenderFX = 0x84
#=Invisibility
m_clrRender = 0x88