-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.cpp
2230 lines (1823 loc) · 83.5 KB
/
Menu.cpp
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
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "Features.h"
#include "GUI/gui.h"
#include "javascript/js_loader.h"
#include "menu_icons/configs.h"
#include "menu_icons/legit.h"
#include "menu_icons/misc.h"
#include "menu_icons/profile.h"
#include "menu_icons/rage.h"
#include "menu_icons/skins.h"
#include "menu_icons/visuals.h"
#include "ragebot_icons/item_assaultsuit.h"
#include "ragebot_icons/weapon_awp.h"
#include "ragebot_icons/weapon_deagle.h"
#include "ragebot_icons/weapon_glock.h"
#include "ragebot_icons/weapon_m4a1.h"
#include "ragebot_icons/weapon_scar20.h"
#include "ragebot_icons/weapon_ssg08.h"
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
#define FCVAR_HIDDEN (1<<4) // Hidden. Doesn't appear in find or
#define FCVAR_UNREGISTERED (1<<0) // If this is set, don't add to linked list, etc.
#define FCVAR_DEVELOPMENTONLY (1<<1) // Hidden in released products. Flag is removed
vector<string> ConfigList;
BOOL SearchFiles(LPCTSTR lpszFileName, LPSEARCHFUNC lpSearchFunc, BOOL bInnerFolders)
{
LPTSTR part;
char tmp[MAX_PATH];
char name[MAX_PATH];
HANDLE hSearch = NULL;
WIN32_FIND_DATA wfd;
memset(&wfd, 0, sizeof(WIN32_FIND_DATA));
if (bInnerFolders)
{
if (GetFullPathName(lpszFileName, MAX_PATH, tmp, &part) == 0) return FALSE;
strcpy(name, part);
strcpy(part, str("*.*"));
wfd.dwFileAttributes = FILE_ATTRIBUTE_DIRECTORY;
if (!((hSearch = FindFirstFile(tmp, &wfd)) == INVALID_HANDLE_VALUE))
do
{
if (!strncmp(wfd.cFileName, str("."), 1) || !strncmp(wfd.cFileName, str(".."), 2))
continue;
if (wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
char next[MAX_PATH];
if (GetFullPathName(lpszFileName, MAX_PATH, next, &part) == 0) return FALSE;
strcpy(part, wfd.cFileName);
strcat(next, str("\\"));
strcat(next, name);
SearchFiles(next, lpSearchFunc, TRUE);
}
} while (FindNextFile(hSearch, &wfd));
FindClose(hSearch);
}
if ((hSearch = FindFirstFile(lpszFileName, &wfd)) == INVALID_HANDLE_VALUE)
return TRUE;
do
if (!(wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
{
char file[MAX_PATH];
if (GetFullPathName(lpszFileName, MAX_PATH, file, &part) == 0) return FALSE;
strcpy(part, wfd.cFileName);
lpSearchFunc(wfd.cFileName);
}
while (FindNextFile(hSearch, &wfd));
FindClose(hSearch);
return TRUE;
}
void ReadConfigs(LPCTSTR lpszFileName)
{
ConfigList.push_back(lpszFileName);
}
void RefreshConfigs()
{
static TCHAR path[MAX_PATH];
std::string folder, file;
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, path)))
{
ConfigList.clear();
string ConfigDir = std::string(path) + str("\\weave\\configs\\");
CreateDirectory(ConfigDir.c_str(), 0);
SearchFiles((ConfigDir + str("*.cfg")).c_str(), ReadConfigs, FALSE);
}
}
void EnableHiddenCVars()
{
auto p = **reinterpret_cast<ConCommandBase***>(interfaces.cvars + 0x34);
for (auto c = p->m_pNext; c != nullptr; c = c->m_pNext)
{
ConCommandBase* cmd = c;
cmd->m_nFlags &= ~FCVAR_DEVELOPMENTONLY;
cmd->m_nFlags &= ~FCVAR_HIDDEN;
}
}
Vector2D g_mouse;
namespace menu_colors {
color_t main_color;
color_t background1;
color_t background2;
}
bool enable_rage() { return vars.ragebot.enable; };
bool enable_antiaim() { return vars.antiaim.enable; };
bool enable_esp() { return vars.visuals.enable; };
void CMenu::draw_indicators()
{
}
LPDIRECT3DTEXTURE9 ragebot_icons[7];
LPDIRECT3DTEXTURE9 tabs_icons[7];
color_t main_color;
bool override_default() {
return vars.ragebot.enable && (vars.ragebot.active_index == 0 || vars.ragebot.weapon[vars.ragebot.active_index].enable);
}
namespace ragebot_tab
{
c_child* groupboxes = nullptr;
c_child* settings = nullptr;
int current_subtab = 0;
void init_settings() {
if (current_subtab > 4) {
settings->add_element(new c_text(str("AIMBOT SETTINGS"), 25, nullptr, color_t(127, 127, 127)));
vars.ragebot.active_index = current_subtab - 5;
settings->add_element(new c_checkbox(str("Override default settings"), &vars.ragebot.weapon[vars.ragebot.active_index].enable,
[]() { return enable_rage() && vars.ragebot.active_index > 0; }));
settings->add_element(new c_slider(str("Hitchance"), &vars.ragebot.weapon[vars.ragebot.active_index].hitchance, 0, 100,
override_default));
settings->add_element(new c_slider(str("Doubletap HC"), &vars.ragebot.weapon[vars.ragebot.active_index].doubletap_hc, 0, 100,
[]() {
return override_default()
&& (g_Binds[bind_double_tap].key > 0 || g_Binds[bind_double_tap].active)
&& vars.ragebot.active_index != 2
&& vars.ragebot.active_index != 3;
}));
settings->add_element(new c_slider(str("Minimum damage"), &vars.ragebot.weapon[vars.ragebot.active_index].mindamage, 0, 120,
override_default));
settings->add_element(new c_slider(str("Override damage"), &vars.ragebot.weapon[vars.ragebot.active_index].mindamage_override, 0, 120,
[]() { return override_default() && g_Binds[bind_override_dmg].key > 0; }));
settings->add_element(new c_separator([]() { return enable_rage() &&
(vars.ragebot.weapon[vars.ragebot.active_index].enable
|| vars.ragebot.active_index == 0); }));
settings->add_element(new c_checkbox(str("Auto stop"), &vars.ragebot.weapon[vars.ragebot.active_index].quickstop,
[]() { return override_default(); }));
settings->add_element(new c_multicombo(str("Options"), &vars.ragebot.weapon[vars.ragebot.active_index].quickstop_options, {
str("Between shots"),
str("Force accuracy")
},
[]() {
return override_default() && vars.ragebot.weapon[vars.ragebot.active_index].quickstop;
}));
settings->add_element(new c_separator([]() { return enable_rage() &&
(vars.ragebot.weapon[vars.ragebot.active_index].enable
|| vars.ragebot.active_index == 0); }));
settings->add_element(new c_multicombo(str("Hitboxes"), &vars.ragebot.weapon[vars.ragebot.active_index].hitscan, {
str("Head"),
str("Upper chest"),
str("Chest"),
str("Lower chest"),
str("Pelvis"),
str("Stomach"),
str("Legs"),
str("Feet"),
str("Arms"),
}, override_default));
settings->add_element(new c_multicombo(str("Prefer safepoint"), &vars.ragebot.weapon[vars.ragebot.active_index].prefer_safepoint, {
str("Head"),
str("Body"),
str("Limbs"),
}, override_default));
settings->add_element(new c_multicombo(str("Force safepoint"), &vars.ragebot.weapon[vars.ragebot.active_index].force_safepoint, {
str("Head"),
str("Body"),
str("Limbs"),
}, override_default));
settings->add_element(new c_slider(str("Max misses"), &vars.ragebot.weapon[vars.ragebot.active_index].max_misses, 0, 5,
[]() { return override_default(); }));
settings->add_element(new c_checkbox(str("Custom point scale"), &vars.ragebot.weapon[vars.ragebot.active_index].static_scale,
[]() { return override_default(); }));
settings->add_element(new c_slider(str("Point scale head"), &vars.ragebot.weapon[vars.ragebot.active_index].scale_head, 0, 100,
[]() { return override_default() && vars.ragebot.weapon[vars.ragebot.active_index].static_scale; }));
settings->add_element(new c_slider(str("Point scale body"), &vars.ragebot.weapon[vars.ragebot.active_index].scale_body, 0, 100,
[]() { return override_default() && vars.ragebot.weapon[vars.ragebot.active_index].static_scale; }));
settings->add_element(new c_text(str("Please toggle aimbot before setup!"), 0, []() { return !enable_rage(); }));
}
else
{
switch (current_subtab)
{
case 0:
{
settings->add_element(new c_text(str("MAIN SETTINGS"), 25, nullptr, color_t(127, 127, 127)));
settings->add_element(new c_checkbox(str("Enable"), &vars.ragebot.enable));
settings->add_element(new c_checkbox(str("Silent aim"),
&vars.ragebot.silent, enable_rage));
settings->add_element(new c_checkbox(str("Auto fire"),
&vars.ragebot.autoshoot, enable_rage));
settings->add_element(new c_combo(str("Auto scope"), &vars.ragebot.autoscope, {
str("Off"), str("Always"), str("Hitchance fail") }, enable_rage));
settings->add_element(new c_slider(str("FOV"), &vars.ragebot.fov,
0.f, 180.f, enable_rage));
settings->add_element(new c_checkbox(str("Zeus bot"), &vars.ragebot.zeusbot,
enable_rage));
settings->add_element(new c_slider(str("Zeus hitchance"), &vars.ragebot.zeuschance,
0.f, 100.f, []() {return enable_rage() && vars.ragebot.zeusbot; }));
settings->add_element(new c_keybind(str("Force safe points"), &g_Binds[bind_force_safepoint], enable_rage));
settings->add_element(new c_keybind(str("Force body aim"), &g_Binds[bind_baim], enable_rage));
settings->add_element(new c_keybind(str("Override damage"),
&g_Binds[bind_override_dmg], enable_rage));
settings->add_element(new c_checkbox(str("Resolver"), &vars.ragebot.resolver,
enable_rage));
}
break;
case 1:
{
settings->add_element(new c_text(str("EXPLOIT SETTINGS"), 25, nullptr, color_t(127, 127, 127)));
settings->add_element(new c_keybind(str("Double-tap"), &g_Binds[bind_double_tap], []() {
return vars.ragebot.enable && vars.misc.restrict_type == 1;
}));
settings->add_element(new c_checkbox(str("Teleport boost"), &vars.ragebot.dt_teleport, []() {
return enable_rage() && (g_Binds[bind_double_tap].key > 0 || g_Binds[bind_double_tap].active);
}));
settings->add_element(new c_keybind(str("Hide-shots"), &g_Binds[bind_hide_shots], []() {
return vars.ragebot.enable && vars.misc.restrict_type == 1;
}));
settings->add_element(new c_slider(str("Charge delay"), &vars.ragebot.recharge_time,
0, 14));
settings->add_element(new c_text(str("Please toggle aimbot before setup!"), 0, []() { return !enable_rage(); }));
}
break;
case 2:
{
settings->add_element(new c_text(str("ANTI-AIM SETTINGS"), 25, nullptr, color_t(127, 127, 127)));
settings->add_element(new c_checkbox(str("Enable"), &vars.antiaim.enable));
settings->add_element(new c_checkbox(str("On use"), &vars.antiaim.aa_on_use,
[]() { return enable_antiaim(); }));
settings->add_element(new c_combo(str("Pitch direction"), &vars.antiaim.pitch, {
str("Disabled"),
str("Down"),
str("Ideal down"),
}, []() { return enable_antiaim(); }));
settings->add_element(new c_combo(str("Yaw direction"), &vars.antiaim.yaw, {
str("Disabled"),
str("Backwards"),
}, []() { return enable_antiaim(); }));
settings->add_element(new c_separator([]() { return enable_antiaim(); }));
settings->add_element(new c_text(str("DESYNC"), 25, []() { return enable_antiaim(); }, color_t(127, 127, 127)));
settings->add_element(new c_checkbox(str("Enable"), &vars.antiaim.desync,
[]() { return enable_antiaim(); }));
settings->add_element(new c_combo(str("Type"), &vars.antiaim.desync_direction,
{
str("Manual"),
str("Peek real"),
str("Peek desync"),
str("Jitter")
},
[]() { return enable_antiaim() && vars.antiaim.desync; }));
settings->add_element(new c_keybind(str("Inverter"), &g_Binds[bind_aa_inverter],
[]() { return enable_antiaim() && vars.antiaim.desync_direction == 0 && vars.antiaim.desync; }));
settings->add_element(new c_slider(str("Amount"), &vars.antiaim.desync_amount, 0, 100,
[]() { return enable_antiaim() && vars.antiaim.desync; }));
settings->add_element(new c_separator([]() { return enable_antiaim(); }));
settings->add_element(new c_text(str("YAW SETTINGS"), 25, []() { return enable_antiaim(); }, color_t(127, 127, 127)));
settings->add_element(new c_slider(str("Jitter angle"), &vars.antiaim.jitter_angle, 0.f, 45.f,
[]() { return enable_antiaim(); }));
settings->add_element(new c_checkbox(str("At target"),
&vars.antiaim.attarget, []() { return enable_antiaim(); }));
settings->add_element(new c_checkbox(str("Off when offscreen"),
&vars.antiaim.attarget_off_when_offsreen, []() { return enable_antiaim() && vars.antiaim.attarget; }));
settings->add_element(new c_checkbox(str("Manual yaw direction"),
&vars.antiaim.manual_antiaim, enable_antiaim));
settings->add_element(new c_checkbox(str("Ignore at target"),
&vars.antiaim.ignore_attarget, []() { return enable_antiaim() && vars.antiaim.manual_antiaim; }));
settings->add_element(new c_keybind(str("Left"), &g_Binds[bind_manual_left], []() {
return enable_antiaim() && vars.antiaim.manual_antiaim;
}));
settings->add_element(new c_keybind(str("Right"), &g_Binds[bind_manual_right], []() {
return enable_antiaim() && vars.antiaim.manual_antiaim;
}));
settings->add_element(new c_keybind(str("Back"), &g_Binds[bind_manual_back], []() {
return enable_antiaim() && vars.antiaim.manual_antiaim;
}));
settings->add_element(new c_keybind(str("Forward"), &g_Binds[bind_manual_forward], []() {
return enable_antiaim() && vars.antiaim.manual_antiaim;
}));
}
break;
case 3:
{
settings->add_element(new c_text(str("FAKE-LAG SETTINGS"), 25, nullptr, color_t(127, 127, 127)));
settings->add_element(new c_combo(str("Lag mode"), &vars.antiaim.fakelag,
{
str("Disabled"),
str("Static"),
str("Fluctuate"),
str("Adaptive"),
},
enable_antiaim));
settings->add_element(new c_separator([]() { return vars.antiaim.enable && vars.antiaim.fakelag > 0; }));
settings->add_element(new c_slider(str("Limit"), &vars.antiaim.fakelagfactor, 1, 14,
[]() { return enable_antiaim() && vars.antiaim.fakelag > 0; }));
settings->add_element(new c_separator([]() { return vars.antiaim.enable && vars.antiaim.fakelag > 0; }));
settings->add_element(new c_checkbox(str("When standing"), &vars.antiaim.fakelag_when_standing,
[]() { return enable_antiaim() && vars.antiaim.fakelag > 0; }));
settings->add_element(new c_checkbox(str("When using exploits"), &vars.antiaim.fakelag_when_exploits,
[]() { return enable_antiaim() && vars.antiaim.fakelag > 0; }));
settings->add_element(new c_checkbox(str("Only on peek"), &vars.antiaim.fakelag_on_peek,
[]() { return enable_antiaim() && vars.antiaim.fakelag > 0; }));
settings->add_element(new c_text(str("Please toggle anti-aims before setup!"), 0, []() { return !vars.antiaim.enable; }));
}
break;
case 4:
{
settings->add_element(new c_text(str("OTHER"), 25, nullptr, color_t(127, 127, 127)));
settings->add_element(new c_keybind(str("Fake duck"), &g_Binds[bind_fake_duck],
[]() { return enable_antiaim() && vars.misc.restrict_type == 1; }));
settings->add_element(new c_keybind(str("Slow walk"), &g_Binds[bind_slow_walk],
[]() { return enable_antiaim(); }));
settings->add_element(new c_text(str("Please toggle anti-aims before setup!"), 0, []() { return !vars.antiaim.enable; }));
}
break;
}
}
settings->initialize_elements();
}
void init()
{
groupboxes = new c_child("", -1, g_Menu->window, c_child::child_alignment::none);
groupboxes->set_size(Vector2D(192, 552));
groupboxes->set_position(Vector2D(8, 48));
groupboxes->set_padding(Vector2D(8, 12));
auto subtab_selector = new c_listbox("", ¤t_subtab, {}, 0, true, nullptr, [](int) {
settings->update_state(init_settings);
});
c_listbox::c_selector s1;
s1.name = str("RAGEBOT");
s1.elements = {
str("Aimbot"), // 0
str("Exploits"), // 1
str("Anti-aim"), // 2
str("Fake-lag"), // 3
str("Other"), // 4
};
c_listbox::c_selector s2;
s2.name = str("WEAPONS");
s2.elements = {
str("Default"),
str("Auto-sniper"),
str("SSG-08"),
str("AWP"),
str("Rifles"),
str("Pistols"),
str("Heavy pistols")
};
subtab_selector->make_subtabs();
subtab_selector->add_selector(s1);
subtab_selector->add_selector(s2);
groupboxes->add_element(subtab_selector);
groupboxes->initialize_elements();
g_Menu->window->add_element(groupboxes);
settings = new c_child("", -1, g_Menu->window, c_child::child_alignment::none);
settings->set_size(Vector2D(376, 552));
settings->set_position(Vector2D(208, 48));
settings->set_padding(Vector2D(40, 8));
init_settings();
g_Menu->window->add_element(settings);
g_Menu->window->set_title(str("Ragebot"));
}
}
namespace visuals_tab
{
c_child* groupboxes = nullptr;
c_child* settings = nullptr;
int current_subtab = 0;
void init_settings() {
switch (current_subtab)
{
case 0:
{
settings->add_element(new c_text(str("ESP SETTINGS"), 25, nullptr, color_t(127, 127, 127)));
settings->add_element(new c_checkbox(str("Enable"),
&vars.visuals.enable));
settings->add_element(new c_checkbox(str("Dormant"),
&vars.visuals.dormant, enable_esp));
settings->add_element(new c_colorpicker(&vars.visuals.box_color, false,
[]() { return enable_esp() && vars.visuals.box; }));
settings->add_element(new c_checkbox(str("Box"),
&vars.visuals.box, enable_esp));
settings->add_element(new c_colorpicker(&vars.visuals.name_color, true,
[]() { return enable_esp() && vars.visuals.name; }));
settings->add_element(new c_checkbox(str("Name"),
&vars.visuals.name, enable_esp));
settings->add_element(new c_colorpicker(&vars.visuals.weapon_color, true,
[]() { return enable_esp() && vars.visuals.weapon; }));
settings->add_element(new c_checkbox(str("Weapon"),
&vars.visuals.weapon, enable_esp));
settings->add_element(new c_checkbox(str("Health"),
&vars.visuals.healthbar, enable_esp));
settings->add_element(new c_colorpicker(&vars.visuals.hp_color, false,
[]() { return enable_esp() && vars.visuals.healthbar && vars.visuals.override_hp; }));
settings->add_element(new c_checkbox(str("Override health color"),
&vars.visuals.override_hp, [] { return enable_esp() && vars.visuals.healthbar; }));
settings->add_element(new c_colorpicker(&vars.visuals.ammo_color, true,
[]() { return enable_esp() && vars.visuals.ammo; }));
settings->add_element(new c_checkbox(str("Ammo"),
&vars.visuals.ammo, enable_esp));
settings->add_element(new c_checkbox(str("Zeus warning"),
&vars.visuals.zeus_warning, enable_esp));
settings->add_element(new c_colorpicker(&vars.visuals.out_of_fov_color, true,
[]() { return enable_esp() && vars.visuals.out_of_fov; }));
settings->add_element(new c_checkbox(str("Out of fov arrow"),
&vars.visuals.out_of_fov, enable_esp));
settings->add_element(new c_slider(str("Distance"), &vars.visuals.out_of_fov_distance, 0, 300,
[]() { return enable_esp() && vars.visuals.out_of_fov; }));
settings->add_element(new c_slider(str("Size"), &vars.visuals.out_of_fov_size, 10, 35,
[]() { return enable_esp() && vars.visuals.out_of_fov; }));
settings->add_element(new c_checkbox(str("Show multipoint"), &vars.visuals.shot_multipoint, enable_esp));
settings->add_element(new c_multicombo(str("Flags"),
&vars.visuals.flags, {
str("Armor"),
str("Scoped"),
str("Flashed"),
str("Defuse kit"),
str("Fake duck"),
str("Distance"),
str("Position"),
}, enable_esp));
settings->add_element(new c_colorpicker(&vars.visuals.flags_color, true,
[]() { return enable_esp() && vars.visuals.flags > 0; }));
settings->add_element(new c_text("Flags color", 0, []() { return enable_esp() && vars.visuals.flags > 0; }));
}
break;
case 1:
{
settings->add_element(new c_text(str("VISIBLE"), 25, nullptr, color_t(127, 127, 127)));
{
settings->add_element(new c_checkbox(str("Enable"), &vars.visuals.chams[enemy_visible].enable));
auto enemy_visible_enabled = []() { return vars.visuals.chams[enemy_visible].enable; };
settings->add_element(new c_combo(str("Material"), &vars.visuals.chams[enemy_visible].material,
{
str("Default"),
str("Flat"),
str("Glass"),
str("Metallic")
}, enemy_visible_enabled));
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_visible].material_color, true, enemy_visible_enabled));
settings->add_element(new c_text(str("Material color"), 0, enemy_visible_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_visible].glass_color, true, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].material == 2;
}));
settings->add_element(new c_text(str("Glass color"), 0, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].material == 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_visible].metallic_color, true, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].material == 3;
}));
settings->add_element(new c_text(str("Metallic color"), 0, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].material == 3;
}));
settings->add_element(new c_slider(str("Phong amount"), &vars.visuals.chams[enemy_visible].phong_amount, 0, 100, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].material == 3;
}));
settings->add_element(new c_slider(str("Rim amount"), &vars.visuals.chams[enemy_visible].rim_amount, -100, 100, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].material == 3;
}));
}
settings->add_element(new c_multicombo(str("Overlay"), &vars.visuals.chams[enemy_visible].overlay,
{
str("Glow fade"),
str("Glow line"),
str("Wireframe")
}, enemy_visible_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_visible].glow_color[0], true, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].overlay & 1;
}));
settings->add_element(new c_text(str("Glow fade color"), 0, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].overlay & 1;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_visible].glow_color[1], true, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].overlay & 2;
}));
settings->add_element(new c_text(str("Glow line color"), 0, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].overlay & 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_visible].wireframe_color, true, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].overlay & 4;
}));
settings->add_element(new c_text(str("Wireframe color"), 0, []() { return
vars.visuals.chams[enemy_visible].enable && vars.visuals.chams[enemy_visible].overlay & 4;
}));
}
}
settings->add_element(new c_separator());
settings->add_element(new c_text(str("THROUGH WALLS"), 25, nullptr, color_t(127, 127, 127)));
{
settings->add_element(new c_checkbox(str("Enable"), &vars.visuals.chams[enemy_xqz].enable));
auto enemy_xqz_enabled = []() { return vars.visuals.chams[enemy_xqz].enable; };
settings->add_element(new c_combo(str("Material"), &vars.visuals.chams[enemy_xqz].material,
{
str("Default"),
str("Flat"),
str("Glass"),
str("Metallic")
}, enemy_xqz_enabled));
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_xqz].material_color, true, enemy_xqz_enabled));
settings->add_element(new c_text(str("Material color"), 0, enemy_xqz_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_xqz].glass_color, true, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].material == 2;
}));
settings->add_element(new c_text(str("Glass color"), 0, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].material == 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_xqz].metallic_color, true, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].material == 3;
}));
settings->add_element(new c_text(str("Metallic color"), 0, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].material == 3;
}));
settings->add_element(new c_slider(str("Phong amount"), &vars.visuals.chams[enemy_xqz].phong_amount, 0, 100, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].material == 3;
}));
settings->add_element(new c_slider(str("Rim amount"), &vars.visuals.chams[enemy_xqz].rim_amount, -100, 100, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].material == 3;
}));
}
settings->add_element(new c_multicombo(str("Overlay"), &vars.visuals.chams[enemy_xqz].overlay,
{
str("Glow fade"),
str("Glow line"),
str("Wireframe")
}, enemy_xqz_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_xqz].glow_color[0], true, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].overlay & 1;
}));
settings->add_element(new c_text(str("Glow fade color"), 0, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].overlay & 1;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_xqz].glow_color[1], true, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].overlay & 2;
}));
settings->add_element(new c_text(str("Glow line color"), 0, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].overlay & 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_xqz].wireframe_color, true, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].overlay & 4;
}));
settings->add_element(new c_text(str("Wireframe color"), 0, []() { return
vars.visuals.chams[enemy_xqz].enable && vars.visuals.chams[enemy_xqz].overlay & 4;
}));
}
}
settings->add_element(new c_separator());
settings->add_element(new c_text(str("BACKTRACK"), 25, nullptr, color_t(127, 127, 127)));
{
settings->add_element(new c_checkbox(str("Enable"), &vars.visuals.chams[enemy_history].enable,
[]() { return vars.ragebot.enable || vars.legitbot.enable; }));
auto enemy_history_enabled = []() { return vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable); };
settings->add_element(new c_combo(str("Material"), &vars.visuals.chams[enemy_history].material,
{
str("Default"),
str("Flat"),
str("Glass"),
str("Metallic")
}, enemy_history_enabled));
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_history].material_color, true, enemy_history_enabled));
settings->add_element(new c_text(str("Material color"), 0, enemy_history_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_history].glass_color, true, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].material == 2;
}));
settings->add_element(new c_text(str("Glass color"), 0, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].material == 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_history].metallic_color, true, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].material == 3;
}));
settings->add_element(new c_text(str("Metallic color"), 0, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].material == 3;
}));
settings->add_element(new c_slider(str("Phong amount"), &vars.visuals.chams[enemy_history].phong_amount, 0, 100, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].material == 3;
}));
settings->add_element(new c_slider(str("Rim amount"), &vars.visuals.chams[enemy_history].rim_amount, -100, 100, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].material == 3;
}));
}
settings->add_element(new c_multicombo(str("Overlay"), &vars.visuals.chams[enemy_history].overlay,
{
str("Glow fade"),
str("Glow line"),
str("Wireframe")
}, enemy_history_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_history].glow_color[0], true, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].overlay & 1;
}));
settings->add_element(new c_text(str("Glow fade color"), 0, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].overlay & 1;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_history].glow_color[1], true, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].overlay & 2;
}));
settings->add_element(new c_text(str("Glow line color"), 0, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].overlay & 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_history].wireframe_color, true, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].overlay & 4;
}));
settings->add_element(new c_text(str("Wireframe color"), 0, []() { return
vars.visuals.chams[enemy_history].enable && (vars.ragebot.enable || vars.legitbot.enable) && vars.visuals.chams[enemy_history].overlay & 4;
}));
}
settings->add_element(new c_text(str("Please toggle rage or legit aimbot before setup!"), 0, []() { return !vars.ragebot.enable && !vars.legitbot.enable; }));
}
settings->add_element(new c_separator());
settings->add_element(new c_text(str("SHOT"), 25, nullptr, color_t(127, 127, 127)));
{
settings->add_element(new c_checkbox(str("Enable"), &vars.visuals.chams[enemy_ragebot_shot].enable,
[]() { return vars.ragebot.enable; }));
auto enemy_ragebot_shot_enabled = []() { return vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable); };
settings->add_element(new c_combo(str("Material"), &vars.visuals.chams[enemy_ragebot_shot].material,
{
str("Default"),
str("Flat"),
str("Glass"),
str("Metallic")
}, enemy_ragebot_shot_enabled));
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_ragebot_shot].material_color, true, enemy_ragebot_shot_enabled));
settings->add_element(new c_text(str("Material color"), 0, enemy_ragebot_shot_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_ragebot_shot].glass_color, true, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].material == 2;
}));
settings->add_element(new c_text(str("Glass color"), 0, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].material == 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_ragebot_shot].metallic_color, true, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].material == 3;
}));
settings->add_element(new c_text(str("Metallic color"), 0, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].material == 3;
}));
settings->add_element(new c_slider(str("Phong amount"), &vars.visuals.chams[enemy_ragebot_shot].phong_amount, 0, 100, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].material == 3;
}));
settings->add_element(new c_slider(str("Rim amount"), &vars.visuals.chams[enemy_ragebot_shot].rim_amount, -100, 100, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].material == 3;
}));
}
settings->add_element(new c_multicombo(str("Overlay"), &vars.visuals.chams[enemy_ragebot_shot].overlay,
{
str("Glow fade"),
str("Glow line"),
str("Wireframe")
}, enemy_ragebot_shot_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_ragebot_shot].glow_color[0], true, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].overlay & 1;
}));
settings->add_element(new c_text(str("Glow fade color"), 0, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].overlay & 1;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_ragebot_shot].glow_color[1], true, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].overlay & 2;
}));
settings->add_element(new c_text(str("Glow line color"), 0, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].overlay & 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[enemy_ragebot_shot].wireframe_color, true, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].overlay & 4;
}));
settings->add_element(new c_text(str("Wireframe color"), 0, []() { return
vars.visuals.chams[enemy_ragebot_shot].enable && (vars.ragebot.enable) && vars.visuals.chams[enemy_ragebot_shot].overlay & 4;
}));
}
settings->add_element(new c_text(str("Please toggle rage aimbot before setup!"), 0, []() { return !vars.ragebot.enable; }));
}
}
break;
case 2:
{
settings->add_element(new c_text(str("GLOW"), 25, nullptr, color_t(127, 127, 127)));
settings->add_element(new c_colorpicker(&vars.visuals.glow_color, true,
[]()
{ return vars.visuals.glow; }));
settings->add_element(new c_checkbox(str("On entity"), &vars.visuals.glow));
settings->add_element(new c_colorpicker(&vars.visuals.local_glow_clr, true,
[]()
{ return vars.visuals.local_glow; }));
settings->add_element(new c_checkbox(str("On local"), &vars.visuals.local_glow));
settings->add_element(new c_combo(str("Glow style"), &vars.visuals.glowtype, {
str("Normal"),
str("Pulsating"),
}));
}
break;
case 3:
{
settings->add_element(new c_text(str("LOCAL MODEL"), 25, nullptr, color_t(127, 127, 127)));
{
settings->add_element(new c_checkbox(str("Override"), &vars.visuals.chams[local_default].enable));
settings->add_element(new c_checkbox(str("Transparency in scope"), &vars.visuals.blend_on_scope));
settings->add_element(new c_slider(str("Transparency amt"), &vars.visuals.blend_value, 0, 100,
[]() { return vars.visuals.blend_on_scope; }));
auto local_default_enabled = []() { return vars.visuals.chams[local_default].enable; };
settings->add_element(new c_combo(str("Material"), &vars.visuals.chams[local_default].material,
{
str("Default"),
str("Flat"),
str("Glass"),
str("Metallic")
}, local_default_enabled));
settings->add_element(new c_colorpicker(&vars.visuals.chams[local_default].material_color, true, local_default_enabled));
settings->add_element(new c_text(str("Material color"), 0, local_default_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[local_default].glass_color, true, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].material == 2;
}));
settings->add_element(new c_text(str("Glass color"), 0, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].material == 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[local_default].metallic_color, true, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].material == 3;
}));
settings->add_element(new c_text(str("Metallic color"), 0, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].material == 3;
}));
settings->add_element(new c_slider(str("Phong amount"), &vars.visuals.chams[local_default].phong_amount, 0, 100, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].material == 3;
}));
settings->add_element(new c_slider(str("Rim amount"), &vars.visuals.chams[local_default].rim_amount, -100, 100, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].material == 3;
}));
}
settings->add_element(new c_multicombo(str("Overlay"), &vars.visuals.chams[local_default].overlay,
{
str("Glow fade"),
str("Glow line"),
str("Wireframe")
}, local_default_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[local_default].glow_color[0], true, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].overlay & 1;
}));
settings->add_element(new c_text(str("Glow fade color"), 0, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].overlay & 1;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[local_default].glow_color[1], true, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].overlay & 2;
}));
settings->add_element(new c_text(str("Glow line color"), 0, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].overlay & 2;
}));
}
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[local_default].wireframe_color, true, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].overlay & 4;
}));
settings->add_element(new c_text(str("Wireframe color"), 0, []() { return
vars.visuals.chams[local_default].enable && vars.visuals.chams[local_default].overlay & 4;
}));
}
}
settings->add_element(new c_separator());
settings->add_element(new c_text(str("DESYNC MODEL"), 25, nullptr, color_t(127, 127, 127)));
{
settings->add_element(new c_checkbox(str("Enable"), &vars.visuals.chams[local_desync].enable));
auto local_desync_enabled = []() { return vars.visuals.chams[local_desync].enable; };
settings->add_element(new c_combo(str("Material"), &vars.visuals.chams[local_desync].material,
{
str("Default"),
str("Flat"),
str("Glass"),
str("Metallic")
}, local_desync_enabled));
settings->add_element(new c_colorpicker(&vars.visuals.chams[local_desync].material_color, true, local_desync_enabled));
settings->add_element(new c_text(str("Material color"), 0, local_desync_enabled));
{
settings->add_element(new c_colorpicker(&vars.visuals.chams[local_desync].glass_color, true, []() { return