-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcsgoCheat.py
546 lines (469 loc) · 25 KB
/
csgoCheat.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
import time
import threading
import keyboard
import pymem
import pymem.process
#from PyQt5 import QtCore, QtGui, QtWidgets
from tkinter import *
import requests
from math import *
offsets = 'https://raw.githubusercontent.com/kadeeq/ProjectX/main/offsets/offsets.json'
response = requests.get( offsets ).json()
bhop_taste = "space"
dwEntityList = int( response["signatures"]["dwEntityList"] )
dwGlowObjectManager = int( response["signatures"]["dwGlowObjectManager"] )
m_iGlowIndex = int( response["netvars"]["m_iGlowIndex"] )
m_iTeamNum = int( response["netvars"]["m_iTeamNum"] )
dwForceJump = int( response["signatures"]["dwForceJump"] )
dwLocalPlayer = int( response["signatures"]["dwLocalPlayer"] )
m_fFlags = int( response["netvars"]["m_fFlags"] )
dwForceAttack = int( response["signatures"]["dwForceAttack"] )
m_iCrosshairId = int( response["netvars"]["m_iCrosshairId"] )
m_flFlashMaxAlpha = int( response["netvars"]["m_flFlashMaxAlpha"] )
m_iDefaultFOV = (0x332C)
dwClientState = int( response["signatures"]["dwClientState"] )
m_iHealth = int( response["netvars"]["m_iHealth"] )
dwViewMatrix = int( response["signatures"]["dwViewMatrix"] )
m_dwBoneMatrix = int( response["netvars"]["m_dwBoneMatrix"] )
dwClientState_ViewAngles = int( response["signatures"]["dwClientState_ViewAngles"] )
m_vecOrigin = int( response["netvars"]["m_vecOrigin"] )
m_vecViewOffset = int( response["netvars"]["m_vecViewOffset"] )
dwbSendPackets = int( response["signatures"]["dwbSendPackets"] )
dwInput = int( response["signatures"]["dwInput"] )
clientstate_net_channel = int( response["signatures"]["clientstate_net_channel"] )
clientstate_last_outgoing_command = int( response["signatures"]["clientstate_last_outgoing_command"] )
m_bSpotted = int( response["netvars"]["m_bSpotted"] )
m_iShotsFired = int( response["netvars"]["m_iShotsFired"] )
m_aimPunchAngle = int( response["netvars"]["m_aimPunchAngle"] )
m_bGunGameImmunity = int( response["netvars"]["m_bGunGameImmunity"] )
m_bIsDefusing = int( response["netvars"]["m_bIsDefusing"] )
m_bDormant = int( response["signatures"]["m_bDormant"] )
dwClientState_PlayerInfo = int( response["signatures"]["dwClientState_PlayerInfo"] )
dwPlayerResource = int( response["signatures"]["dwPlayerResource"] )
m_iCompetitiveRanking = int( response["netvars"]["m_iCompetitiveRanking"] )
eteam = False
antivac = "foqnmwordqowjm3qlwp5q890wu4892h59ut)ZQ$/Z§W784zw0682732z57890Z/Z/(§$%Z=!""§(%/08($12"
print( antivac )
def calc_distance(current_x, current_y, new_x, new_y):
distancex = new_x - current_x
if distancex < -89:
distancex += 360
elif distancex > 89:
distancex -= 360
if distancex < 0.0:
distancex = -distancex
distancey = new_y - current_y
if distancey < -180:
distancey += 360
elif distancey > 180:
distancey -= 360
if distancey < 0.0:
distancey = -distancey
return distancex, distancey
def normalizeAngles(viewAngleX, viewAngleY):
if viewAngleX > 89:
viewAngleX -= 360
if viewAngleX < -89:
viewAngleX += 360
if viewAngleY > 180:
viewAngleY -= 360
if viewAngleY < -180:
viewAngleY += 360
return viewAngleX, viewAngleY
def checkangles(x, y):
if x > 89:
return False
elif x < -89:
return False
elif y > 360:
return False
elif y < -360:
return False
else:
return True
def nanchecker(first, second):
if isnan( first ) or isnan( second ):
return False
else:
return True
def Distance(src_x, src_y, src_z, dst_x, dst_y, dst_z):
try:
diff_x = src_x - dst_x
diff_y = src_y - dst_y
diff_z = src_z - dst_z
return sqrt( diff_x * diff_x + diff_y * diff_y + diff_z * diff_z )
except:
pass
def calcangle(localpos1, localpos2, localpos3, enemypos1, enemypos2, enemypos3):
delta_x = localpos1 - enemypos1
delta_y = localpos2 - enemypos2
delta_z = localpos3 - enemypos3
hyp = sqrt( delta_x * delta_x + delta_y * delta_y + delta_z * delta_z )
x = asin( delta_z / hyp ) * 57.295779513082
y = atan( delta_y / delta_x ) * 57.295779513082
if delta_x >= 0.0:
y += 180.0
return x, y
class Ui_MainWindow( object ):
def __init__(self):
self.trigc = False
self.whc = False
self.bhc = False
self.nf = False
self.fovtog = False
self.triggerkey = ""
self.fovt = False
self.fovkey = ""
self.radarc = False
self.aimc = False
self.silentshit = False
self.baim = False
self.Fov = int()
#self.pm = pymem.Pymem( "csgo.exe" )
#self.client = pymem.process.module_from_name( self.pm.process_handle, "client.dll" ).lpBaseOfDll
#self.engine = pymem.process.module_from_name( self.pm.process_handle, "engine.dll" ).lpBaseOfDll
self.rcse = False
self.aimrcs = False
self.aimfov = int()
self.fovvalue = int()
self.aimkey = str()
self.larryfov = False
def update(self):
update = True
while update:
self.radarc = self.checkBox_3.isChecked()
self.whc = self.checkBox.isChecked()
self.nf = self.checkBox_2.isChecked()
self.fovt = self.checkBox_4.isChecked()
self.trigc = self.checkBox_5.isChecked()
self.aimc = self.checkBox_6.isChecked()
self.baim = self.checkBox_7.isChecked()
if self.baim and not self.aimc:
print('Activate aimbot to use the "Aim for Body function')
self.checkBox_7.setChecked(False)
if self.aimc:
try:
self.aimfov = float( self.lineEdit_4.text() )
self.aimkey = str( self.lineEdit_6.text() )
except:
print( "Use different aimbot values" )
self.aimc = False
self.checkBox_6.setChecked( False )
if self.fovt:
try:
self.fovvalue = int( self.lineEdit.text() )
self.fovkey = self.lineEdit_2.text()
except:
print( "Use different fov values" )
try:
self.triggerkey = str(self.lineEdit_3.text())
except:
print("Use a different triggerkey")
self.bhc = self.checkBox_8.isChecked()
self.rcse = self.checkBox_10.isChecked()
self.silentshit = self.checkBox_9.isChecked()
if self.silentshit and not self.aimc:
print( "You need to activate aimbot to use silentaim" )
self.silentshit = False
self.checkBox_9.setChecked( False )
self.larryfov = self.checkBox_11.isChecked()
if self.larryfov and not self.fovt:
print( 'You need to activate Fov Changer to use the "Hold to change function"' )
self.larryfov = False
self.checkBox_11.setChecked( False )
self.aimrcs = self.checkBox_12.isChecked()
update = False
time.sleep( 1 )
def setupUi(self, fen):
fen.title( "fen" )
"""fen.geometry( "960x456" )
fen.iconphoto(False, PhotoImage(file='./pics/bgv7.png'))
filename = PhotoImage(file = "./pics/bgv7.png")
background_label = Label(fen, image=filename)
background_label.place(x=0, y=0, relwidth=1, relheight=1)"""
self.fen = fen
self.checkBox = IntVar()
Checkbutton(self.fen, text="Wallhack", variable=self.checkBox).grid(row=2, column=0, sticky=W)
self.checkBox_2 = IntVar()
Checkbutton(self.fen, text="NoFlash", variable=self.checkBox_2).grid(row=3, column=0, sticky=W)
self.checkBox_3 = IntVar()
Checkbutton(self.fen, text="Radar", variable=self.checkBox_3).grid(row=5, column=0, sticky=W)
self.checkBox_4 = IntVar()
Checkbutton(self.fen, text="FOV Changer", variable=self.checkBox_4).grid(row=0, column=0, sticky=W)
self.checkBox_5 = IntVar()
Checkbutton(self.fen, text="Triggerbot", variable=self.checkBox_5).grid(row=0, column=1, sticky=W)
self.checkBox_6 = IntVar()
Checkbutton(self.fen, text="Aimbot", variable=self.checkBox_6).grid(row=1, column=1, sticky=W)
self.checkBox_7 = IntVar()
Checkbutton(self.fen, text="Aim for Body", variable=self.checkBox_7).grid(row=3, column=1, sticky=W)
self.checkBox_8 = IntVar()
Checkbutton(self.fen, text="Bunnyhop", variable=self.checkBox_8).grid(row=5, column=1, sticky=W)
self.checkBox_9 = IntVar()
Checkbutton(self.fen, text="Silentaim", variable=self.checkBox_9).grid(row=2, column=1, sticky=W)
self.checkBox_10 = IntVar()
Checkbutton(self.fen, text="Recoil Control", variable=self.checkBox_10).grid(row=4, column=0, sticky=W)
self.checkBox_11 = IntVar()
Checkbutton(self.fen, text="Hold To Change", variable=self.checkBox_11).grid(row=1, column=0, sticky=W)
self.checkBox_12 = IntVar()
Checkbutton(self.fen, text="RCS with Aimbot", variable=self.checkBox_12).grid(row=4, column=1, sticky=W)
self.lineEdit = Entry(self.fen)
self.lineEdit.insert(END, 'any number')
self.lineEdit.grid(row=0, column=3, sticky=W)
self.lineEdit_2 = Entry(self.fen)
self.lineEdit_2.insert(END, 'e.g c')
self.lineEdit_2.grid(row=1, column=3, sticky=W)
self.lineEdit_3 = Entry(self.fen)
self.lineEdit_3.insert(END, 'e.g shift')
self.lineEdit_3.grid(row=2, column=3, sticky=W)
self.lineEdit_4 = Entry(self.fen)
self.lineEdit_4.insert(END, 'any number')
self.lineEdit_4.grid(row=3, column=3, sticky=W)
self.lineEdit_6 = Entry(self.fen)
self.lineEdit_6.insert(END, 'e.g alt')
self.lineEdit_6.grid(row=4, column=3, sticky=W)
self.label = Label(self.fen, text="FOV Value")
self.label.grid(row=0, column=2, sticky=W)
self.label_2 = Label(self.fen, text="FOV Toggle Key")
self.label_2.grid(row=1, column=2, sticky=W)
self.label_3 = Label(self.fen, text="Triggerbot Key")
self.label_3.grid(row=2, column=2, sticky=W)
self.label_4 = Label(self.fen, text="Aimbot FOV")
self.label_4.grid(row=3, column=2, sticky=W)
self.label_6 = Label(self.fen, text="Aimbot Key")
self.label_6.grid(row=4, column=2, sticky=W)
self.pushButton = Button(self.fen,text="Update",command=self.update)
self.pushButton.grid(row=6, column=0, sticky=W)
self.pushButton_2 = Button(self.fen,text="Rank Reveal",command=self.rankreveal)
self.pushButton_2.grid(row=6, column=3, sticky=W)
"""self.statusbar = QtWidgets.QStatusBar( fen )
self.statusbar.setObjectName( "statusbar" )
fen.setStatusBar( self.statusbar )"""
fen.mainloop()
def main(self):
pm = pymem.Pymem( "csgo.exe" )
client = pymem.process.module_from_name( pm.process_handle, "client.dll" ).lpBaseOfDll
engine = pymem.process.module_from_name( pm.process_handle, "engine.dll" ).lpBaseOfDll
player = pm.read_int( client + dwLocalPlayer )
engine_pointer = pm.read_int( engine + dwClientState )
oldpunchx = 0.0
oldpunchy = 0.0
while True:
pm.write_uchar( engine + dwbSendPackets, 1 )
target = None
olddistx = 111111111111
olddisty = 111111111111
if client and engine and pm:
try:
player = pm.read_int( client + dwLocalPlayer )
engine_pointer = pm.read_int( engine + dwClientState )
glow_manager = pm.read_int( client + dwGlowObjectManager )
crosshairID = pm.read_int( player + m_iCrosshairId )
getcrosshairTarget = pm.read_int( client + dwEntityList + (crosshairID - 1) * 0x10 )
immunitygunganme = pm.read_int( getcrosshairTarget + m_bGunGameImmunity )
localTeam = pm.read_int( player + m_iTeamNum )
crosshairTeam = pm.read_int( getcrosshairTarget + m_iTeamNum )
except:
print( "Round not started yet" )
time.sleep( 5 )
continue
for i in range( 1, 32 ):
entity = pm.read_int( client + dwEntityList + i * 0x10 )
if entity:
try:
entity_glow = pm.read_int( entity + m_iGlowIndex )
entity_team_id = pm.read_int( entity + m_iTeamNum )
entity_isdefusing = pm.read_int( entity + m_bIsDefusing )
entity_hp = pm.read_int( entity + m_iHealth )
entity_dormant = pm.read_int( entity + m_bDormant )
except:
print( "Could not load Players Infos (Should only do this once)" )
time.sleep( 2 )
continue
if entity_hp > 50 and not entity_hp == 100:
r, g, b = 255, 165, 0
elif entity_hp < 50:
r, g, b = 255, 0, 0
elif entity_hp == 100 and entity_team_id == 2:
r, g, b = 0, 255, 0
else:
r, g, b = 0, 255, 0
if self.aimc and localTeam != entity_team_id and entity_hp > 0:
entity_bones = pm.read_int( entity + m_dwBoneMatrix )
localpos_x_angles = pm.read_float( engine_pointer + dwClientState_ViewAngles )
localpos_y_angles = pm.read_float( engine_pointer + dwClientState_ViewAngles + 0x4 )
localpos1 = pm.read_float( player + m_vecOrigin )
localpos2 = pm.read_float( player + m_vecOrigin + 4 )
localpos_z_angles = pm.read_float( player + m_vecViewOffset + 0x8 )
localpos3 = pm.read_float( player + m_vecOrigin + 8 ) + localpos_z_angles
if self.baim:
try:
entitypos_x = pm.read_float( entity_bones + 0x30 * 5 + 0xC )
entitypos_y = pm.read_float( entity_bones + 0x30 * 5 + 0x1C )
entitypos_z = pm.read_float( entity_bones + 0x30 * 5 + 0x2C )
except:
continue
else:
try:
entitypos_x = pm.read_float( entity_bones + 0x30 * 8 + 0xC )
entitypos_y = pm.read_float( entity_bones + 0x30 * 8 + 0x1C )
entitypos_z = pm.read_float( entity_bones + 0x30 * 8 + 0x2C )
except:
continue
X, Y = calcangle( localpos1, localpos2, localpos3, entitypos_x, entitypos_y, entitypos_z )
newdist_x, newdist_y = calc_distance( localpos_x_angles, localpos_y_angles, X, Y )
if newdist_x < olddistx and newdist_y < olddisty and newdist_x <= self.aimfov and newdist_y <= self.aimfov:
olddistx, olddisty = newdist_x, newdist_y
target, target_hp, target_dormant = entity, entity_hp, entity_dormant
target_x, target_y, target_z = entitypos_x, entitypos_y, entitypos_z
if self.aimc and keyboard.is_pressed( self.aimkey ) and player:
if target and target_hp > 0 and not target_dormant:
pitch, yaw = calcangle( localpos1, localpos2, localpos3, target_x, target_y, target_z )
normalize_x, normalize_y = normalizeAngles( pitch, yaw )
punchx = pm.read_float( player + m_aimPunchAngle )
punchy = pm.read_float( player + m_aimPunchAngle + 0x4 )
if self.silentshit:
pm.write_uchar( engine + dwbSendPackets, 0 )
Commands = pm.read_int( client + dwInput + 0xF4 )
VerifedCommands = pm.read_int( client + dwInput + 0xF8 )
Desired = pm.read_int( engine_pointer + clientstate_last_outgoing_command ) + 2
OldUser = Commands + ((Desired - 1) % 150) * 100
VerifedOldUser = VerifedCommands + ((Desired - 1) % 150) * 0x68
m_buttons = pm.read_int( OldUser + 0x30 )
Net_Channel = pm.read_uint( engine_pointer + clientstate_net_channel )
if pm.read_int( Net_Channel + 0x18 ) >= Desired:
if self.aimrcs:
pm.write_float( OldUser + 0x0C, normalize_x )
pm.write_float( OldUser + 0x10, normalize_y)
pm.write_int( OldUser + 0x30, m_buttons | (1 << 0) )
pm.write_float( VerifedOldUser + 0x0C, normalize_x - (punchx * 2) )
pm.write_float( VerifedOldUser + 0x10, normalize_y - (punchy * 2) )
pm.write_int( VerifedOldUser + 0x30, m_buttons | (1 << 0) )
pm.write_uchar( engine + dwbSendPackets, 1 )
else:
pm.write_float( OldUser + 0x0C, normalize_x )
pm.write_float( OldUser + 0x10, normalize_y )
pm.write_int( OldUser + 0x30, m_buttons | (1 << 0) )
pm.write_float( VerifedOldUser + 0x0C, normalize_x )
pm.write_float( VerifedOldUser + 0x10, normalize_y )
pm.write_int( VerifedOldUser + 0x30, m_buttons | (1 << 0) )
pm.write_uchar( engine + dwbSendPackets, 1 )
elif self.aimrcs and pm.read_int( player + m_iShotsFired ) > 1:
pm.write_float( engine_pointer + dwClientState_ViewAngles, normalize_x - (punchx * 2) )
pm.write_float( engine_pointer + dwClientState_ViewAngles + 0x4,
normalize_y - (punchy * 2) )
else:
pm.write_float( engine_pointer + dwClientState_ViewAngles, normalize_x )
pm.write_float( engine_pointer + dwClientState_ViewAngles + 0x4,
normalize_y )
if self.radarc == True:
pm.write_int( entity + m_bSpotted, 1 )
if self.whc and entity_team_id == 2 and (
eteam or localTeam != 2) and not entity_dormant: # Terrorist Glow
pm.write_float( glow_manager + entity_glow * 0x38 + 0x4, float( r ) ) # R
pm.write_float( glow_manager + entity_glow * 0x38 + 0x8, float( g ) ) # G
pm.write_float( glow_manager + entity_glow * 0x38 + 0xC, float( b ) ) # B
pm.write_float( glow_manager + entity_glow * 0x38 + 0x10, float( 255 ) ) # A
pm.write_int( glow_manager + entity_glow * 0x38 + 0x24, 1 ) # Enable
elif self.whc and entity_team_id == 3 and (
eteam or localTeam != 3) and not entity_dormant: # Anti Glow
pm.write_float( glow_manager + entity_glow * 0x38 + 0x4, float( r ) ) # R
pm.write_float( glow_manager + entity_glow * 0x38 + 0x8, float( g ) ) # G
pm.write_float( glow_manager + entity_glow * 0x38 + 0xC, float( b ) ) # B
pm.write_float( glow_manager + entity_glow * 0x38 + 0x10, float( 255 ) ) # A
pm.write_int( glow_manager + entity_glow * 0x38 + 0x24, 1 ) # Enable
else:
pass
#pm.write_int( glow_manager + entity_glow * 0x38 + 0x24, 0 )
if self.trigc and keyboard.is_pressed(
self.triggerkey ) and 0 < crosshairID < 32 and localTeam != crosshairTeam and immunitygunganme == 256:
pm.write_int( client + dwForceAttack, 6 )
if self.nf and player:
flash_value = player + m_flFlashMaxAlpha
if flash_value:
self.pm.write_float( flash_value, float( 0 ) )
if self.rcse:
if pm.read_int( player + m_iShotsFired ) > 2:
rcs_x = pm.read_float( engine_pointer + dwClientState_ViewAngles )
rcs_y = pm.read_float( engine_pointer + dwClientState_ViewAngles + 0x4 )
punchx = pm.read_float( player + m_aimPunchAngle )
punchy = pm.read_float( player + m_aimPunchAngle + 0x4 )
newrcsx = rcs_x - (punchx - oldpunchx) * 2
newrcsy = rcs_y - (punchy - oldpunchy) * 2
oldpunchx = punchx
oldpunchy = punchy
if nanchecker( newrcsx, newrcsy ) and checkangles( newrcsx, newrcsy ):
pm.write_float( engine_pointer + dwClientState_ViewAngles, newrcsx )
pm.write_float( engine_pointer + dwClientState_ViewAngles + 0x4, newrcsy )
else:
oldpunchx = 0.0
oldpunchy = 0.0
newrcsx = 0.0
newrcsy = 0.0
if not self.larryfov:
if self.fovt and player and self.fovtog:
fovshit = player + m_iDefaultFOV
pm.write_int( fovshit, self.fovvalue )
if not self.fovt or not self.fovtog:
fovshit = player + m_iDefaultFOV
pm.write_int( fovshit, 90 )
if self.fovt and keyboard.is_pressed( self.fovkey ):
self.fovtog = not self.fovtog
time.sleep( 0.25 )
if self.larryfov and player:
fovshit = player + m_iDefaultFOV
if keyboard.is_pressed( self.fovkey ):
self.pm.write_int( fovshit, self.fovvalue )
else:
self.pm.write_int( fovshit, 90 )
if self.bhc:
if keyboard.is_pressed( "space" ):
force_jump = client + dwForceJump
on_ground = pm.read_int( player + m_fFlags )
if player and on_ground == 257 or on_ground == 263:
pm.write_int( force_jump, 6 )
def rankreveal(self):
pm = pymem.Pymem( "csgo.exe" )
client = pymem.process.module_from_name( pm.process_handle, "client.dll" )
engine = pymem.process.module_from_name( pm.process_handle, "engine.dll" )
ranks = ["Unranked",
"Silver I",
"Silver II",
"Silver III",
"Silver IV",
"Silver Elite",
"Silver Elite Master",
"Gold Nova I",
"Gold Nova II",
"Gold Nova III",
"Gold Nova Master",
"Master Guardian I",
"Master Guardian II",
"Master Guardian Elite",
"Distinguished Master Guardian",
"Legendary Eagle",
"Legendary Eagle Master",
"Supreme Master First Class",
"The Global Elite"]
for i in range( 1, 32 ):
entity = pm.read_int( client.lpBaseOfDll + dwEntityList + i * 0x10 )
if entity:
entity_team_id = pm.read_int( entity + m_iTeamNum )
entity_i = pm.read_int( client.lpBaseOfDll + dwLocalPlayer )
if entity_team_id != pm.read_int( entity_i + m_iTeamNum ):
player_info = pm.read_int(
(pm.read_int( engine.lpBaseOfDll + dwClientState )) + dwClientState_PlayerInfo )
player_info_items = pm.read_int( pm.read_int( player_info + 0x40 ) + 0xC )
info = pm.read_int( player_info_items + 0x28 + (i * 0x34) )
playerres = pm.read_int( client.lpBaseOfDll + dwPlayerResource )
rank = pm.read_int( playerres + m_iCompetitiveRanking + i * 4 )
if pm.read_string( info + 0x10 ) != 'GOTV':
print( pm.read_string( info + 0x10 ) + " --> " + ranks[rank] )
if __name__ == "__main__":
import sys
"""app = QtWidgets.QApplication( sys.argv )
Dialog = QtWidgets.QMainWindow()"""
fen = Tk()
ui = Ui_MainWindow()
ui.setupUi( fen )
threading.Thread( target=ui.main ).start()
#sys.exit( app.exec_() )