-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHELL.LUA
946 lines (835 loc) · 29.1 KB
/
HELL.LUA
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
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
-------------------------
-- Author : demonlxrd --
-- Date : 03/08/2022 --
-- Welcome to HELL --
---------------------
--
--
-- ▄ █ ▄███▄ █ █ █ ▄ ██
-- █ █ █▀ ▀ █ █ █ █ █ █
-- ██▀▀█ ██▄▄ █ █ █ █ █ █▄▄█
-- █ █ █▄ ▄▀ ███▄ ███▄ ███▄ █ █ █ █
-- █ ▀███▀ ▀ ▀ ██ ▀ █▄ ▄█ █
-- ▀ ▀▀▀ █
-- ▀
--------------------
-- Initialisation --
--------------------
local ffi = require "ffi"
local surface = require "gamesense/surface"
local bit = require "bit"
local outlinedtext = surface.create_font("Smallest Pixel-7", 10, 300, 0x200)
local getlocalplayer = entity_get_local_player
---------------------
-- Welcome Message --
---------------------
local function multicolor_log(...)
local args = {...}
local len = #args
for i = 1, len do
local arg = args[i]
local r, g, b = unpack(arg)
local msg = {}
if #arg == 3 then
table_insert(msg, " ")
else
for i = 4, #arg do
table_insert(msg, arg[i])
end
end
msg = table_concat(msg)
if len > i then
msg = msg .. "\0"
end
client_color_log(r, g, b, msg)
end
end
---------------
-- HWID Lock --
---------------
local unload = ui_reference("MISC", "Settings", "Unload")
local ffi = require "ffi"
local HWIDLog = {
"2906b728f" -- ME
}
local MaterialAdapterInfo_t =
ffi.typeof(
[[
struct {
char m_pDriverName[512];
unsigned int m_VendorID;
unsigned int m_DeviceID;
unsigned int m_SubSysID;
unsigned int m_Revision;
int m_nDXSupportLevel;
int m_nMinDXSupportLevel;
int m_nMaxDXSupportLevel;
unsigned int m_nDriverVersionHigh;
unsigned int m_nDriverVersionLow;
}
]]
)
local get_current_adapter = vtable_bind("materialsystem.dll", "VMaterialSystem080", 25, "int(__thiscall*)(void*)")
local get_adapter_info =
vtable_bind("materialsystem.dll", "VMaterialSystem080", 26, "void(__thiscall*)(void*, int, void*)")
local current_adapter = get_current_adapter()
local adapter_struct = ffi.new(MaterialAdapterInfo_t)
get_adapter_info(current_adapter, adapter_struct)
local vendorId = tostring(adapter_struct["m_VendorID"])
local deviceId = tostring(adapter_struct["m_DeviceID"])
local preobfuscatedD = vendorId .. deviceId
local formattedID = string_format("%x", preobfuscatedD * 255)
local isVerifiedUser = false
for preobfuscatedD, value in pairs(HWIDLog) do
if value == formattedID then
isVerifiedUser = true
end
end
if isVerifiedUser then
multicolor_log({255, 255, 255, "Welcome to "}, {255, 0, 0, "HELL"})
else
ui_set(unload, true)
end
local function DoNothing()
end
-------------------
-- Menu Creation --
-------------------
--local hellButton = ui.new_button("LUA", "B", "HELL.LUA", DoNothing)
local indicatorSwitch = ui_new_checkbox("LUA", "B", "HELL Indicators")
local indicatorType = ui_new_combobox("LUA", "B", "HELL Indicator Type", {"HELL", "HELL v2", "Override"})
local hellTickSwitch = ui_new_checkbox("LUA", "B", "HELL Tick")
local hellTickType = ui_new_combobox("LUA", "B", "HELL Tick Type", {"HELL Dash", "HELL Shift"})
local hellShiftKey = ui_new_hotkey("LUA", "B", "HELL Shift Key", false)
local hellLogSwitch = ui_new_checkbox("LUA", "B", "HELL Logs")
local hellOnScreenLogSwitch = ui_new_checkbox("LUA", "B", "HELL Onscreen Logs")
local hellTapSwitch = ui_new_checkbox("LUA", "B", "HELL Tap")
---------------------
-- Menu References --
---------------------
local menuColor_ref = ui_reference("MISC", "Settings", "Menu color")
local dtButton_ref, dt_keyref = ui_reference("RAGE", "Other", "Double Tap")
local hideShotButton_ref, hideShots_keyref = ui_reference("AA", "Other", "On shot anti-aim")
local fakeDuck_keyref = ui_reference("RAGE", "Other", "Duck peek assist")
local slowWalkButton_ref, slowWalk_keyref = ui_reference("AA", "Other", "Slow Motion")
local bodyAim_keyref = ui_reference("RAGE", "Other", "Force body aim")
local minimumDamage_ref = ui_reference("RAGE", "Aimbot", "Minimum Damage")
local quickPeekButton, quickPeek_keyref = ui_reference("RAGE", "Other", "Quick peek assist")
local fakeLagLimit_ref = ui_reference("AA", "Fake lag", "Limit")
local slowWalkType_ref = ui_reference("AA", "Other", "Slow motion type")
local pingSpikeLimit_ref = ui_reference("MISC", "Miscellaneous", "Ping Spike")
local dtQuickStop_ref = ui_reference("RAGE", "Other", "Double tap quick stop")
local unlockTickSwitch_ref = ui_reference("MISC", "Settings", "sv_maxusrcmdprocessticks")
local dtSwitch_ref = ui_reference("RAGE", "Other", "Double tap")
local edgeYawSwitch_ref = ui_reference("AA", "Anti-Aimbot Angles", "Edge yaw")
local freeStanding_ref, freeStanding_keyref = ui_reference("AA", "Anti-Aimbot Angles", "Freestanding")
local dtMode_ref = ui_reference("RAGE", "Other", "Double Tap Mode")
local hellIndicatorType_ref = ui_reference("LUA", "B", "HELL Indicator Type")
local hellTickType_ref = ui_reference("LUA", "B", "HELL Tick Type")
local dtFakeLagLimit_ref = ui_reference("RAGE", "Other", "Double tap fake lag limit")
local dtHitchance_ref = ui_reference("RAGE", "Other", "Double tap hit chance")
-----------------
-- Show / Hide --
-----------------
ui_set_visible(hellIndicatorType_ref, false)
ui_set_visible(hellShiftKey, false)
ui_set_visible(hellTickType_ref, false)
ui_set_visible(unlockTickSwitch_ref, true)
local function showHide(hide)
local s = ui_reference("LUA", "B", "HELL Tick Type")
local incboxvsref = ui_reference("LUA", "B", "HELL Indicator Type")
local helltickcomboboxget = ui_get(hellTickType)
local helltickvisible = 0
if ui_get(indicatorSwitch) then
ui_set_visible(hellIndicatorType_ref, true)
else
ui_set_visible(hellIndicatorType_ref, false)
end
if ui_get(hellTickSwitch) then
ui_set_visible(hellTickType_ref, true)
helltickvisible = 1
else
ui_set_visible(hellTickType_ref, false)
helltickvisible = 0
end
if helltickvisible and helltickcomboboxget == "HELL Shift" then
ui_set_visible(hellShiftKey, true)
else
ui_set_visible(hellShiftKey, false)
end
if helltickvisible == 0 then
ui_set_visible(hellShiftKey, false)
end
end
------------
-- Others --
------------
client_set_cvar("sv_party_mode", 1)
-- ui_set(menuColor_ref, 137, 64, 64, 255)
---------------------------
-- Get Current Weapon --
---------------------------
local function curr_weapon(players)
local wpn = entity_get_player_weapon(players)
local curr_weapon
local currentweaponenm = entity_get_prop(wpn, "m_iItemDefinitionIndex")
if currentweaponenm == 40 then
curr_weapon = "Scout"
elseif currentweaponenm == 11 or currentweaponenm == 38 then
curr_weapon = "Auto"
elseif currentweaponenm == 9 then
curr_weapon = "AWP"
elseif
currentweaponenm == 64 or currentweaponenm == 1 or currentweaponenm == 61 or currentweaponenm == 4 or
currentweaponenm == 2 or
currentweaponenm == 36 or
currentweaponenm == 63 or
currentweaponenm == 3 or
currentweaponenm == 30
then
curr_weapon = "Pistol"
else
curr_weapon = "Others"
end
return curr_weapon
end
local CurrentWeaponName
local function getCurWeaponName(weaponGet)
CurrentWeaponName = curr_weapon(getlocalplayer())
-- client.log (CurrentWeaponName) -- Logs Name Of Weapon In Hand
end
----------------------------------------
-- Main HELL Indicator Initialisation --
----------------------------------------
local function test(r1, g1, b1, a1, r2, g2, b2, a2, str)
local output = ""
local len = #str
local rinc = (r2 - r1) / len
local ginc = (g2 - g1) / len
local binc = (b2 - b1) / len
local ainc = (a2 - a1) / len
for i = 1, len do
output = output .. ("\a%02x%02x%02x%02x%s"):format(r1, g1, b1, a1, str:sub(i, i))
r1 = r1 + rinc
g1 = g1 + ginc
b1 = b1 + binc
a1 = a1 + ainc
end
return output
end
---------------
-- HELL Tick --
---------------
local function hellTickFunction()
local helltickcomboboxget = ui_get(hellTickType)
local helltickboxget = ui_get(hellTickSwitch)
local hellshiftkeyon = ui_get(hellShiftKey)
local is_doubletapping = ui_get(dt_keyref)
local is_baiming = ui_get(bodyAim_keyref)
if helltickcomboboxget == "HELL Dash" and helltickboxget then
local is_autopeeking = ui_get(quickPeek_keyref)
local is_doubletapping = ui_get(dt_keyref)
local slowmotype = ui_get(slowWalkType_ref)
if is_autopeeking and is_doubletapping then
helltickenable = 1
else
helltickenable = 0
end
ui_set(dtSwitch_ref, true)
if helltickenable == 1 then
ui_set(fakeLagLimit_ref, 1)
-- ui_set(pingSpikeLimit_ref, true)
ui_set(dtQuickStop_ref, {"Move between shots"})
--ui_set(unlockTickSwitch_ref, 19)
ui_set(dtMode_ref, "Defensive")
ui_set(slowWalkType_ref, "Favor Anti-Aim")
else
ui_set(fakeLagLimit_ref, 15)
-- ui_set(pingSpikeLimit_ref, false)
ui_set(dtQuickStop_ref, {"Move between shots"})
--ui_set(unlockTickSwitch_ref, 16)
ui_set(dtMode_ref, "Defensive")
ui_set(slowWalkType_ref, "Favor Anti-Aim")
end
elseif helltickcomboboxget == "HELL Shift" and helltickboxget then
if hellshiftkeyon then
ui_set(fakeLagLimit_ref, 1)
-- ui_set(pingSpikeLimit_ref, true)
ui_set(dtQuickStop_ref, {"Move between shots"})
ui_set(dtSwitch_ref, true)
--ui_set(unlockTickSwitch_ref, 19)
ui_set(freeStanding_keyref, "Always On")
ui_set(freeStanding_ref, "Default")
ui_set(quickPeekButton, true)
ui_set(quickPeek_keyref, "Always On")
ui_set(dtMode_ref, "Defensive")
ui_set(dt_keyref, "Always On")
ui_set(slowWalkType_ref, "Favor Anti-Aim")
-- ui_set(edgeYawSwitch_ref, false)
else
ui_set(fakeLagLimit_ref, 15)
-- ui_set(pingSpikeLimit_ref, false)
ui_set(dtQuickStop_ref, {"Move between shots"})
--ui_set(unlockTickSwitch_ref, 16)
ui_set(freeStanding_keyref, "On Hotkey")
ui_set(freeStanding_ref, "-")
ui_set(quickPeekButton, false)
ui_set(quickPeek_keyref, "On Hotkey")
ui_set(dtMode_ref, "Defensive")
ui_set(dt_keyref, "Toggle")
ui_set(slowWalkType_ref, "Favor Anti-Aim")
-- ui_set(edgeYawSwitch_ref, false)
end
end
if not helltickboxget then
ui_set(quickPeekButton, true)
end
end
---------------------
-- HELL Indicators --
---------------------
local function hellIndicators()
local auto = 0
local screenx, screeny = client_screen_size()
local slowwalkon = 0
local mindmgon = 0
local hellblue = test(255, 0, 0, 255, 74, 185, 255, 255, "HELL")
local hellgrey = test(255, 255, 255, 255, 108, 112, 112, 255, "HELL")
local str2 = test(255, 255, 255, 255, 108, 112, 112, 255, "MINIMUM DAMAGE")
local strdtia = test(255, 255, 255, 255, 108, 112, 112, 255, "EXPLOITS OFF")
local strdta = test(255, 255, 255, 255, 108, 112, 112, 255, "DT ACTIVE")
local strhs = test(255, 255, 255, 255, 108, 112, 112, 255, "HIDE SHOTS")
local strfl = test(255, 255, 255, 255, 108, 112, 112, 255, "FAKELAG")
local strfd = test(255, 255, 255, 255, 108, 112, 112, 255, "FAKE DUCK")
local strswalk = test(255, 255, 255, 255, 108, 112, 112, 255, "SLOW WALK")
local strmindmg = test(255, 255, 255, 255, 108, 112, 112, 255, "MINIMUM DAMAGE")
local strfbaim = test(255, 255, 255, 255, 108, 112, 112, 255, "FORCE BAIM")
local stridealtick = test(255, 255, 255, 255, 108, 112, 112, 255, "HELL SHIFT")
local is_doubletapping = ui_get(dt_keyref)
local is_hideshotting = ui_get(hideShots_keyref)
local is_fakeducking = ui_get(fakeDuck_keyref)
local is_walking = ui_get(slowWalk_keyref)
local is_baiming = ui_get(bodyAim_keyref)
local indicatorcboxget = ui_get(indicatorType)
local mindmg = ui_get(minimumDamage_ref)
local indicatorsonref = ui_get(indicatorSwitch)
local helltickcomboboxget = ui_get(hellTickType)
local hellshiftkeyon = ui_get(hellShiftKey)
local fdon = 0
local slowwalkon = 0
local mindmgon = 0
-----------------------------
-- MultiColored Indicators --
-----------------------------
if indicatorcboxget == "HELL" and indicatorsonref then
-------------------------------
-- Grey Indicators (HELL v2) --
-------------------------------
if (entity_is_alive(getlocalplayer())) then
-- HELL --
renderer_text(screenx / 2 - 10, screeny / 2 + 21, 255, 255, 255, 255, "-", 0, hellblue)
-- DOUBLETAP --
if helltickcomboboxget == "HELL Dash" then
if is_doubletapping then
surface.draw_text(screenx / 2 - 22, screeny / 2 + 33, 57, 151, 117, 255, outlinedtext, "DOUBLETAP")
else
surface.draw_text(screenx / 2 - 22, screeny / 2 + 33, 255, 0, 102, 255, outlinedtext, "DOUBLETAP")
end
elseif helltickcomboboxget == "HELL Shift" then
if hellshiftkeyon and is_doubletapping then
surface.draw_text(screenx / 2 - 24, screeny / 2 + 33, 57, 151, 117, 255, outlinedtext, "HELL SHIFT")
elseif is_doubletapping then
surface.draw_text(screenx / 2 - 22, screeny / 2 + 33, 57, 151, 117, 255, outlinedtext, "DOUBLETAP")
else
surface.draw_text(
screenx / 2 - 27,
screeny / 2 + 33,
255,
0,
102,
255,
outlinedtext,
"EXPLOITS OFF"
)
end
end
-- HIDE SHOTS / FAKELAG --
if is_hideshotting then
surface.draw_text(screenx / 2 - 24, screeny / 2 + 44, 90, 113, 191, 255, outlinedtext, "HIDE SHOTS")
else
surface.draw_text(screenx / 2 - 18, screeny / 2 + 44, 255, 153, 0, 255, outlinedtext, "FAKELAG")
end
-- FAKEDUCK --
if is_fakeducking then
surface.draw_text(screenx / 2 - 23, screeny / 2 + 55, 161, 76, 158, 255, outlinedtext, "FAKE DUCK")
fdon = 1
else
fdon = 0
end
-- SLOWWALK --
if is_walking then
slowwalkon = 1
surface.draw_text(screenx / 2 - 24, screeny / 2 + 55, 199, 165, 0, 255, outlinedtext, "SLOW WALK")
else
slowwalkon = 0
end
-- MINDMG OVERRIDE --
if mindmg == auto then
return
else
if
CurrentWeaponName == "AWP" and mindmg <= 30 or CurrentWeaponName == "Scout" and mindmg <= 30 or
CurrentWeaponName == "Pistol" and mindmg <= 8 or
CurrentWeaponName == "Auto" and mindmg <= 10 or
mindmg == 0
then
if fdon == 1 or slowwalkon == 1 then
surface.draw_text(
screenx / 2 - 35,
screeny / 2 + 66,
255,
0,
102,
255,
outlinedtext,
"MINIMUM DAMAGE"
)
elseif fdon == 0 or slowwalkon == 0 then
surface.draw_text(
screenx / 2 - 35,
screeny / 2 + 55,
255,
0,
102,
255,
outlinedtext,
"MINIMUM DAMAGE"
)
else
mindmgon = 0
end
end
end
if mindmg == auto then
mindmgon = 0
else
if
CurrentWeaponName == "AWP" and mindmg <= 30 or CurrentWeaponName == "Scout" and mindmg <= 30 or
CurrentWeaponName == "Pistol" and mindmg <= 8 or
CurrentWeaponName == "Auto" and mindmg <= 10 or
mindmg == 0
then
mindmgon = 1
else
mindmgon = 0
end
end
-- FORCE BAIM --
if is_baiming then
if slowwalkon == 0 and fdon == 0 and mindmgon == 0 then
surface.draw_text(screenx / 2 - 26, screeny / 2 + 55, 76, 50, 219, 255, outlinedtext, "FORCE BAIM")
elseif slowwalkon == 1 and mindmgon == 0 then
surface.draw_text(screenx / 2 - 26, screeny / 2 + 66, 76, 50, 219, 255, outlinedtext, "FORCE BAIM")
elseif fdon == 1 and mindmgon == 0 then
surface.draw_text(screenx / 2 - 26, screeny / 2 + 66, 76, 50, 219, 255, outlinedtext, "FORCE BAIM")
elseif slowwalkon == 0 and fdon == 0 and mindmgon == 1 then
surface.draw_text(screenx / 2 - 26, screeny / 2 + 66, 76, 50, 219, 255, outlinedtext, "FORCE BAIM")
elseif fdon == 1 or slowwalkon == 1 and mindmgon == 1 then
surface.draw_text(screenx / 2 - 26, screeny / 2 + 77, 76, 50, 219, 255, outlinedtext, "FORCE BAIM")
end
end
end
elseif indicatorcboxget == "HELL v2" and indicatorsonref then
-------------------------
-- Override Indicators --
-------------------------
if (entity_is_alive(getlocalplayer())) then
-- HELL --
renderer_text(screenx / 2 - 10, screeny / 2 + 21, 255, 255, 255, 255, "-", 0, hellgrey)
-- DOUBLETAP --
if helltickcomboboxget == "HELL Dash" then
if is_doubletapping then
renderer_text(screenx / 2 - 20, screeny / 2 + 33, 179, 86, 86, 255, "-", 0, strdta)
else
renderer_text(screenx / 2 - 25, screeny / 2 + 33, 179, 86, 86, 255, "-", 0, strdtia)
end
elseif helltickcomboboxget == "HELL Shift" then
if hellshiftkeyon and is_doubletapping then
renderer_text(screenx / 2 - 21, screeny / 2 + 33, 179, 86, 86, 255, "-", 0, stridealtick)
elseif is_doubletapping then
renderer_text(screenx / 2 - 20, screeny / 2 + 33, 179, 86, 86, 255, "-", 0, strdta)
else
renderer_text(screenx / 2 - 25, screeny / 2 + 33, 179, 86, 86, 255, "-", 0, strdtia)
end
end
-- HIDE SHOTS / FAKELAG --
if is_hideshotting then
renderer_text(screenx / 2 - 23, screeny / 2 + 44, 179, 86, 86, 255, "-", 0, strhs)
else
renderer_text(screenx / 2 - 18, screeny / 2 + 44, 179, 86, 86, 255, "-", 0, strfl)
end
-- FAKEDUCK --
if is_fakeducking then
renderer_text(screenx / 2 - 22, screeny / 2 + 55, 179, 86, 86, 255, "-", 0, strfd)
fdon = 1
else
fdon = 0
end
-- SLOWWALK --
if is_walking then
renderer_text(screenx / 2 - 24, screeny / 2 + 55, 179, 86, 86, 255, "-", 0, strswalk)
slowwalkon = 1
else
slowwalkon = 0
end
-- MINDMG OVERRIDE --
if mindmg == auto then
return
else
if
CurrentWeaponName == "AWP" and mindmg <= 30 or CurrentWeaponName == "Scout" and mindmg <= 30 or
CurrentWeaponName == "Pistol" and mindmg <= 8 or
CurrentWeaponName == "Auto" and mindmg <= 10 or
mindmg == 0
then
if fdon == 1 or slowwalkon == 1 then
renderer_text(screenx / 2 - 35, screeny / 2 + 66, 179, 86, 86, 255, "-", 0, strmindmg)
elseif fdon == 0 or slowwalkon == 0 then
renderer_text(screenx / 2 - 35, screeny / 2 + 55, 179, 86, 86, 255, "-", 0, strmindmg)
else
mindmgon = 0
end
end
end
if mindmg == auto then
mindmgon = 0
else
if
CurrentWeaponName == "AWP" and mindmg <= 30 or CurrentWeaponName == "Scout" and mindmg <= 30 or
CurrentWeaponName == "Pistol" and mindmg <= 8 or
CurrentWeaponName == "Auto" and mindmg <= 10 or
mindmg == 0
then
mindmgon = 1
else
mindmgon = 0
end
end
-- FORCE BAIM --
if is_baiming then
if slowwalkon == 0 and fdon == 0 and mindmgon == 0 then
renderer_text(screenx / 2 - 25, screeny / 2 + 55, 179, 86, 86, 255, "-", 0, strfbaim)
elseif slowwalkon == 1 and mindmgon == 0 then
renderer_text(screenx / 2 - 25, screeny / 2 + 66, 179, 86, 86, 255, "-", 0, strfbaim)
elseif fdon == 1 and mindmgon == 0 then
renderer_text(screenx / 2 - 25, screeny / 2 + 66, 179, 86, 86, 255, "-", 0, strfbaim)
elseif slowwalkon == 0 and fdon == 0 and mindmgon == 1 then
renderer_text(screenx / 2 - 25, screeny / 2 + 66, 179, 86, 86, 255, "-", 0, strfbaim)
elseif fdon == 1 or slowwalkon == 1 and mindmgon == 1 then
renderer_text(screenx / 2 - 25, screeny / 2 + 77, 179, 86, 86, 255, "-", 0, strfbaim)
end
end
end
elseif indicatorcboxget == "Override" and indicatorsonref then
if (entity_is_alive(getlocalplayer())) then
if mindmg == auto then
return
else
if
CurrentWeaponName == "AWP" and mindmg <= 30 or CurrentWeaponName == "Scout" and mindmg <= 30 or
CurrentWeaponName == "Pistol" and mindmg <= 8 or
CurrentWeaponName == "Auto" and mindmg <= 10
then
if (entity_is_alive(entity_get_local_player())) then
local screenx, screeny = client_screen_size()
renderer_text(screenx / 2 - 33, screeny / 2 - 26, 255, 255, 255, 255, "-", 0, str2)
end
end
end
if mindmg == auto then
mindmgon = 0
else
if
CurrentWeaponName == "AWP" and mindmg <= 30 or CurrentWeaponName == "Scout" and mindmg <= 30 or
CurrentWeaponName == "Pistol" and mindmg <= 8 or
CurrentWeaponName == "Auto" and mindmg <= 10
then
mindmgon = 1
else
mindmgon = 0
end
end
end
end
end
---------------
-- HELL Logs --
---------------
local function hellLogSwitch()
HellLogsGet = ui_get(hellLogSwitch)
end
local function MultiColorLog(...)
local args = {...}
local len = #args
for i = 1, len do
local arg = args[i]
local r, g, b = unpack(arg)
local msg = {}
if #arg == 3 then
table_insert(msg, " ")
else
for i = 4, #arg do
table_insert(msg, arg[i])
end
end
msg = table_concat(msg)
if len > i then
msg = msg .. "\0"
end
client_color_log(r, g, b, msg)
end
end
local hitgroup_names = {
"Body",
"Head",
"Chest",
"Stomach",
"Left Arm",
"Right Arm",
"Left Leg",
"Right Leg",
"Neck",
"Unknown",
"Gear"
}
local function on_player_hurt(hurt)
local userid = hurt.userid
local attacker = hurt.attacker
local health = hurt.health
local armor = hurt.armor
local weapon = hurt.weapon
local dmg_health = hurt.dmg_health
local dmg_armor = hurt.dmg_armor
local hitgroup = hurt.hitgroup
if userid == nil or attacker == nil or hitgroup < 0 or hitgroup > 10 or dmg_health == nil or health == nil then
return
end
if client_userid_to_entindex(userid) == entity_get_local_player() then
local damager = entity_get_player_name(client_userid_to_entindex(attacker))
local hitbox_hit = hitgroup_names[hitgroup + 1]
if hitbox_hit and HellLogsGet then
MultiColorLog(
{110, 172, 254, "[HELL] "},
{255, 255, 255, "Got hit by "},
{255, 255, 255, damager},
{255, 255, 255, " for "},
{255, 255, 255, dmg_health},
{255, 255, 255, " in "},
{255, 255, 255, hitbox_hit},
{255, 255, 255, " | Remaining HP: "},
{255, 255, 255, health}
)
end
end
end
local BackTrackInfo = {}
local function time_to_ticks(t)
return math_floor(0.5 + (t / globals_tickinterval()))
end
local function shot_logs(fired)
BackTrackInfo =
globals_tickcount() - fired.tick > 0 and (((globals_tickcount() - fired.tick) * globals_tickinterval()) * 1000) or
0
AimFireDamage = fired.damage
AimFireGroup = hitgroup_names[fired.hitgroup + 1] or "unknown"
AimFireBacktrack = fired.backtrack
end
local function hit_logs(hit)
local target = hit.target
local nameofenemyhit = entity_get_player_name(hit.target)
local damagegiven = hit.damage
local hitbox = hitgroup_names[hit.hitgroup + 1] or "unknown"
local remaininghp = entity_get_prop(hit.target, "m_iHealth")
local predicteddamage = AimFireDamage
local predictedhitbox = AimFireGroup
local predictedbacktrackticks = AimFireBacktrack
local angleshotat = math_floor(entity_get_prop(target, "m_flPoseParameter", 11) * 120 - 60)
local btshotflt = math_max(0, BackTrackInfo)
local btshotinms = math_floor(btshotflt)
local btshotinseconds = btshotinms / 1000
local btshot = math_floor((btshotinseconds / globals_tickinterval()) + 0.5)
if HellLogsGet == true then
MultiColorLog(
{180, 228, 20, "[HELL] "},
{255, 255, 255, "Damaged "},
{255, 255, 255, nameofenemyhit},
{255, 255, 255, " for "},
{255, 255, 255, damagegiven},
{255, 255, 255, " in the "},
{255, 255, 255, hitbox},
{255, 255, 255, " (HP Remaining: "},
{255, 255, 255, remaininghp},
{255, 255, 255, ") | Shot For "},
{255, 255, 255, predicteddamage},
{255, 255, 255, " HP in "},
{255, 255, 255, predictedhitbox},
{255, 255, 255, " | Backtrack: "},
{255, 255, 255, btshot},
{255, 255, 255, " ticks | Angle: "},
{255, 255, 255, angleshotat},
{255, 255, 255, "°"}
)
end
end
local function miss_logs(miss)
local target = miss.target
local nameofenemymissed = entity_get_player_name(miss.target)
local predicteddamage = AimFireDamage
local predictedhitbox = AimFireGroup
local missreason = miss.reason
local predictedbacktrackticks = AimFireBacktrack
local angleshotat = math_floor(entity_get_prop(target, "m_flPoseParameter", 11) * 120 - 60)
local btmissflt = math_max(0, BackTrackInfo)
local btmissinms = math_floor(btmissflt)
local btmissinseconds = btmissinms / 1000
local btmiss = math_floor((btmissinseconds / globals_tickinterval()) + 0.5)
if missreason == "?" then
missreason = "unknown"
end
if HellLogsGet == true then
MultiColorLog(
{200, 50, 50, "[HELL] "},
{255, 255, 255, "Missed "},
{255, 255, 255, nameofenemymissed},
{255, 255, 255, " for "},
{255, 255, 255, predicteddamage},
{255, 255, 255, " in the "},
{255, 255, 255, predictedhitbox},
{255, 255, 255, " due to "},
{255, 255, 255, missreason},
{255, 255, 255, " | Backtrack: "},
{255, 255, 255, btmiss},
{255, 255, 255, " ticks | Angle: "},
{255, 255, 255, angleshotat},
{255, 255, 255, "°"}
)
end
end
------------------------
-- HELL Onscreen Logs --
------------------------
local screenx, screeny = client_screen_size()
local shottable = {}
local function aim_hit(hit)
local group = hitgroup_names[hit.hitgroup + 1] or "?"
local curtime = globals_curtime()
hitlog =
("\aFFFFFFFFHit \a6EEB34FF%s \aFFFFFFFFin the \a6EEB34FF%s \aFFFFFFFFfor \a6EEB34FF%d \aFFFFFFFFdamage (\a6EEB34FF%d \aFFFFFFFFhealth remaining)"):format(
entity_get_player_name(hit.target),
group,
hit.damage,
entity_get_prop(hit.target, "m_iHealth")
):upper()
table_insert(
shottable,
{
time = curtime,
info = hitlog
}
)
end
local function aim_miss(miss)
if miss.reason == "?" then
miss.reason = "unknown"
end
if miss.reason == "prediction error" then
miss.reason = "prediction error"
end
local group = hitgroup_names[miss.hitgroup + 1] or "?"
local curtime = globals_curtime()
misslog =
("\aFFFFFFFFMissed \aF06565FF%s\aFFFFFFFF's \aF06565FF%s \aFFFFFFFFdue to \aF06565FF%s"):format(
entity_get_player_name(miss.target),
group,
miss.reason
):upper()
table_insert(
shottable,
{
time = curtime,
info = misslog
}
)
end
local function renderlog()
local curtime = globals_curtime()
local y1 = 0
if ui_get(hellOnScreenLogSwitch) then
for key, log in ipairs(shottable) do
local elapsed = curtime - log.time
if elapsed >= 3 then
table_remove(shottable, key)
end
local pct = math_max(0, math_min(1, (3 - elapsed) / 3))
alpha = 255 * pct
renderer_text(screenx / 2, (screeny / 2 + 300) + y1, 255, 255, 255, alpha, "c-", 0, log.info)
y1 = y1 + 12
end
end
end
local function level_init()
shottable = {}
end
local rollref = ui_reference("AA", "Anti-aimbot angles", "Roll")
local checkOn = ui_new_checkbox("LUA", "B", "HELL Roll")
local function randomSet(random)
local checkGet = ui_get(checkOn)
if checkGet then
local rand = client_random_int(-50, 50)
ui_set(rollref, rand)
end
end
--------------------
-- HELL DoubleTap --
--------------------
local function hellDTFunction()
if ui_get(hellTapSwitch) then
local ping = client_latency() * 1000
if ping <= 65 then
ui_set(unlockTickSwitch_ref, 18)
cvar.cl_clock_correction:set_int(0)
ui_set(dtFakeLagLimit_ref, 1)
ui_set(dtHitchance_ref, 15)
elseif ping >= 65 and ping <= 150 then
ui_set(unlockTickSwitch_ref, 17)
cvar.cl_clock_correction:set_int(0)
ui_set(dtFakeLagLimit_ref, 1)
ui_set(dtHitchance_ref, 25)
else
ui_set(unlockTickSwitch_ref, 16)
cvar.cl_clock_correction:set_int(1)
ui_set(dtFakeLagLimit_ref, 1)
ui_set(dtHitchance_ref, 20)
end
else
ui_set(unlockTickSwitch_ref, 16)
end
end
---------------
-- CallBacks --
---------------
client_set_event_callback("paint_ui", showHide)
client_set_event_callback("paint", hellLogSwitch)
client_set_event_callback("paint", getCurWeaponName)
client_set_event_callback("paint", hellIndicators)
client_set_event_callback("paint", hellTickFunction)
client_set_event_callback("aim_hit", hit_logs)
client_set_event_callback("aim_miss", miss_logs)
client_set_event_callback("player_hurt", on_player_hurt)
client_set_event_callback("aim_fire", shot_logs)
client_set_event_callback("aim_hit", aim_hit)
client_set_event_callback("aim_miss", aim_miss)
client_set_event_callback("paint", renderlog)
client_set_event_callback("level_init", level_init)
client_set_event_callback("paint", randomSet)
client_set_event_callback("paint", hellDTFunction)