forked from oword/gamesense-workshop-luas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCyrus - MM Utilities.lua
3073 lines (2777 loc) · 94.6 KB
/
Cyrus - MM Utilities.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
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
--client.exec('clear')
local err = false
local requiredLibs = {
[1] = {
Module = 'gamesense/uix',
Link = 'https://gamesense.pub/forums/viewtopic.php?id=18881'
},
[2] = {
Module = 'gamesense/http',
Link = 'https://gamesense.pub/forums/viewtopic.php?id=19253'
}
}
for k in ipairs(requiredLibs) do
if (not pcall(require, requiredLibs[k].Module)) then
local base = requiredLibs[k]
if (not err) then
err = true
end
print(string.format('Missing Module: %s, subscribe to it here: %s', base.Module, base.Link))
end
end
if (err) then error('read above [you are missing some module(s)]') return end
local uix, http = require('gamesense/uix'), require('gamesense/http')
local cache = {
maxPlayers = globals.maxplayers,
map = globals.mapname,
tickcount = globals.tickcount,
open = panorama.open,
readDB = database.read,
writeDB = database.write,
get = ui.get,
set = ui.set,
setVisible = ui.set_visible,
button = ui.new_button,
checkbox = uix.new_checkbox,
slider = ui.new_slider,
combobox = ui.new_combobox,
textbox = ui.new_textbox,
multiselect = ui.new_multiselect,
hotkey = ui.new_hotkey,
label = ui.new_label,
callback = ui.set_callback,
colourLog = client.color_log,
delay = client.delay_call,
randInt = client.random_int,
registerEvent = client.set_event_callback,
unregisterEvent = client.unset_event_callback,
exec = client.exec,
findSig = client.find_signature,
colourLog = client.color_log,
uidToEntIndex = client.userid_to_entindex,
unixTime = client.unix_time,
systemTime = client.system_time,
getProp = entity.get_prop,
me = entity.get_local_player,
playerResource = entity.get_player_resource,
getName = entity.get_player_name,
getClassName = entity.get_classname,
sid64 = entity.get_steam64,
isEnemy = entity.is_enemy,
getAllEnts = entity.get_all,
gameRules = entity.get_game_rules,
format = string.format
}
local C = {
EscapedSequenceChars = {
ZeroWidthCharacter = '\u{200C}',
NoBreakSpace = '\u{00A0}'
},
Config = {
Panel = 'LUA',
Side = 'A'
},
Panorama = {
MyPersonaAPI = cache.open().MyPersonaAPI,
LobbyAPI = cache.open().LobbyAPI,
PartyListAPI = cache.open().PartyListAPI,
MatchInfoAPI = cache.open().MatchInfoAPI,
GameStateAPI = cache.open().GameStateAPI,
CompetitiveMatchAPI = cache.open().CompetitiveMatchAPI
},
MapList = {
['ar_baggage'] = 'Baggage',
['ar_dizzy'] = 'Dizzy',
['ar_lunacy'] = 'Lunacy',
['ar_monastery'] = 'Monastery',
['ar_shoots'] = 'Shoots',
['cs_agency'] = 'Agency',
['cs_assault'] = 'Assault',
['cs_italy'] = 'Italy',
['cs_militia'] = 'militia',
['cs_office'] = 'Office',
['de_anubis'] = 'Anubis',
['de_bank'] = 'Bank',
['de_cache'] = 'Cache',
['de_cbble'] = 'Cobblestone',
['de_chlorine'] = 'Chlorine',
['de_dust2'] = 'Dust II',
['de_inferno'] = 'Inferno',
['de_lake'] = 'Lake',
['de_mirage'] = 'Mirage',
['de_nuke'] = 'Nuke',
['de_overpass'] = 'Overpass',
['de_safehouse'] = 'Safehouse',
['de_shortdust'] = 'Shortdust',
['de_shortnuke'] = 'Shortnuke',
['de_stmarc'] = 'St. Marc',
['de_sugarcane'] = 'Sugarcane',
['de_train'] = 'Train',
['de_vertigo'] = 'Vertigo',
['dz_blacksite'] = 'Blacksite',
['dz_junglety'] = 'Junglety',
['dz_sirocco'] = 'Sirocco',
['gd_cbble'] = 'Cobblestone',
['gd_rialto'] = 'Rialto'
},
CountryCodes = {
['Afrikaans'] = 'af',
['Irish'] = 'ga',
['Albanian'] = 'sq',
['Italian'] = 'it',
['Arabic'] = 'ar',
['Japanese'] = 'ja',
['Azerbaijani'] = 'az',
['Kannada'] = 'kn',
['Basque'] = 'eu',
['Korean'] = 'ko',
['Bengali'] = 'bn',
['Latin'] = 'la',
['Belarusian'] = 'be',
['Latvian'] = 'lv',
['Bulgarian'] = 'bg',
['Lithuanian'] = 'lt',
['Catalan'] = 'ca',
['Macedonian'] = 'mk',
['Chinese'] = 'zh-CN',
['Malay'] = 'ms',
['Chinese'] = 'zh-TW',
['Maltese'] = 'mt',
['Croatian'] = 'hr',
['Norwegian'] = 'no',
['Czech'] = 'cs',
['Persian'] = 'fa',
['Danish'] = 'da',
['Polish'] = 'pl',
['Dutch'] = 'nl',
['Portuguese'] = 'pt',
['English'] = 'en',
['Romanian'] = 'ro',
['Esperanto'] = 'eo',
['Russian'] = 'ru',
['Estonian'] = 'et',
['Serbian'] = 'sr',
['Filipino'] = 'tl',
['Slovak'] = 'sk',
['Finnish'] = 'fi',
['Slovenian'] = 'sl',
['French'] = 'fr',
['Spanish'] = 'es',
['Galician'] = 'gl',
['Swahili'] = 'sw',
['Georgian'] = 'ka',
['Swedish'] = 'sv',
['German'] = 'de',
['Tamil'] = 'ta',
['Greek'] = 'el',
['Telugu'] = 'te',
['Gujarati'] = 'gu',
['Thai'] = 'th',
['Haitian'] = 'ht',
['Turkish'] = 'tr',
['Hebrew'] = 'iw',
['Ukrainian'] = 'uk',
['Hindi'] = 'hi',
['Urdu'] = 'ur',
['Hungarian'] = 'hu',
['Vietnamese'] = 'vi',
['Icelandic'] = 'is',
['Welsh'] = 'cy',
['Indonesian'] = 'id',
['Yiddish'] = 'yi'
},
Colours = {
White = '\x01',
Red = '\x02',
Purple = '\x03',
Green = '\x04',
YellowGreen = '\x05',
LightGreen = '\x06',
LightRed = '\x07',
Gray = '\x08',
Gray2 = '\x0A',
LightYellow = '\x09',
Blue = '\x0B',
DarkBlue = '\x0C',
Gold = '\x10',
RGB = {
White = {
r = 255,
g = 255,
b = 255
},
Yellow = {
r = 234,
g = 237,
b = 37
},
Green = {
r = 126,
g = 215,
b = 135
},
Red = {
r = 200,
g = 82,
b = 76
},
Blue = {
r = 105,
g = 140,
b = 255
},
Orange = {
r = 200,
g = 140,
b = 56
},
},
Discord = {
Win = 7855479, -- GREEN
Loss = 16738657, -- RED
CT = 2003199, -- CT
T = 16757575, -- T
Draw = 9868950 -- GREY
},
PlayerColours = {
yellow = '#F8F62D',
y = '#F8F62D',
purple = '#A119F0',
p = '#A119F0',
green = '#00B562',
g = '#00B562',
blue = '#5CA8FF',
b = '#5CA8FF',
orange = '#FF9B25',
o = '#FF9B25'
}
},
DB = {
Ping = {
ID = 'cyrus.ping.id',
Start = 'cyrus.ping.start',
End = 'cyrus.ping.end',
TimeZone = 'cyrus.ping.timezone'
}
},
Ranks = {
MM = {
'SI',
'S2',
'S3',
'S4',
'SE',
'SEM',
'GN1',
'GN2',
'GN3',
'GNM',
'MG1',
'MG2',
'MGE',
'DMG',
'LE',
'LEM',
'SMFC',
'GE'
},
DZ = {
'Lab Rat I',
'Lab Rat II',
'Sprinting Hare I',
'Sprinting Hare II',
'Wild Scout I',
'Wild Scout II',
'Wild Scout Elite',
'Hunter Fox I',
'Hunter Fox II',
'Hunter Fox III',
'Hunter Fox Elite',
'Timber Wolf',
'Ember Wolf',
'Wildfire Wolf',
'The Howling Alpha'
}
},
Votes = {
IndicesNoteam = {
[0] = "kick",
[1] = "changelevel",
[3] = "scrambleteams",
[4] = "swapteams",
},
IndicesTeam = {
[1] = 'starttimeout',
[2] = 'surrender'
},
Descriptions = {
changelevel = 'change the map',
scrambleteams = 'scramble the teams',
starttimeout = 'start a timeout',
surrender = 'surrender',
kick = 'kick'
},
ongoingVotes = {},
VoteOptions = {}
},
Chat = {
Prefix = '!',
Spam = {
LastChatMessage = 0,
LastRadioMessage = 0,
RadioMessage = 'getout',
DefaultMessage = 'your tears are currently being harvested',
Types = {
['Kill'] = 'Off',
['Death'] = 'Off',
['Chat'] = 'Off'
}
},
Words = {
Openers = {
'get fucked',
'eat shit',
'fuck a baboon',
'suck my dingleberries',
'choke on steaming cum',
'die in a fire',
'gas yourself',
'sit on garden shears',
'choke on scrotum',
'shove a brick up your ass',
'swallow barbed wire',
'move to sweden',
'fuck a pig',
'bow to me',
'suck my ball sweat',
'come back when you aren\'t garbage',
'i will piss on everything you love',
'kill yourself',
'livestream suicide',
'neck yourself',
'go be black somewhere else',
'rotate on it',
'choke on it',
'blow it out your ass',
'go browse tumblr',
'go back to casual',
'sit on horse cock',
'drive off a cliff',
'rape yourself',
'get raped by niggers',
'fuck right off',
'you mother is a whore',
'come at me',
'go work the corner',
'you are literal cancer',
'why haven\'t you killed yourself yet',
'why do you even exist',
'shoot your balls off with a shotgun',
'sterilize yourself',
'convert to islam',
'drink bleach',
'remove yourself',
'choke on whale cock',
'suck shit',
'suck a cock',
'lick my sphincter',
'set yourself on fire',
'drink jenkem',
'get beaten to death by your dad',
'choke on your uncle\'s cock',
'get sat on by a 200kg feminist',
'blow off',
'join isis',
'stick your cock in a blender',
'OD yourself on meth',
'lie under a truck',
'lick a wall socket',
'swallow hot coals',
'die slowly',
'explode yourself',
'swing from the noose',
'end yourself',
'take your best shot',
'get shot in a gay bar',
'drink pozzed cum',
'marry a muslim',
'rub your dick on a cheese grater',
'wrap a rake with barbed wire and sodomize yourself',
'close your gaping cunt',
},
Joiners = {
'cancer infested',
'cock sucking',
'fuck faced',
'cunt eyed',
'nigger fucking',
'candy ass',
'fairy ass fucking',
'shit licking',
'unlovable',
'disgusting',
'degenerate',
'fuck headed',
'dick lipped',
'autismal',
'gook eyed',
'mongoloided',
'cunt faced',
'dick fisted',
'worthless',
'hillary loving',
'maggot infested',
'boot lipped',
'chink eyed',
'shit skinned',
'nigger headed',
'lgbt supporting',
'cum stained',
},
Enders = {
'fuck face',
'poofter',
'jew cunt',
'fagmaster',
'goat rapist',
'rag head',
'cock cheese',
'vaginaphobe',
'coon',
'nigger',
'slag cunt',
'garbage man',
'paeodophile',
'kiddy toucher',
'pony fucker',
'tumblrite',
'sperglord',
'gorilla\'s dick',
'shit licker',
'shit slick',
'redditor',
'pig fucker',
'spastic',
'cuckold',
'chode gobbler',
'fuckwit',
'retard',
'mongoloid',
'elephants cunt',
'cunt',
'gook',
'fag lord',
'shit stain',
'mpgh skid',
'batch coder',
'pony fucker',
'furfag',
'half caste',
'double nigger',
'cock socket',
'cunt rag',
'anal wart',
'maggot',
'knob polisher',
'fudge packer',
'cock slave',
'trashmaster',
'shitskin',
'curry muncher',
'gator bait',
'bootlip',
'camel jockey',
'wog cunt',
'hooknosed kike',
'feminist',
'wop cunt',
'abo',
'porch monkey',
'dago',
'anal secretion',
'pig cunt',
'insect',
'sub human',
'mental defect',
'fat whore',
'cunt rag',
'cotton picker',
'bum tickling fag',
'degenerate faggot',
'smegma lump',
'darkie',
'fuck toy',
'underage midget cunt',
'twelvie',
'faggot teenager',
'ankle biter',
'fat cunt american',
'bernie loving washout',
'fucking failure',
'cum dumpster',
'waste of skin',
'petrol sniffing coon',
'jenkem bottle',
'dirty jew',
'casual retard',
'cuck master',
'barrel of piss',
'tankard of shit',
'cock wart',
},
CancerStrike = {
'LOL fuk u silver scUm',
'nice aim doEs It cume in NOT N00be?',
'u r terible my doode',
'u almost hit me that time LOL',
'ur aim iz a joke my man',
'get shrekt skrub xdddd',
'u just got shitted on kidddd',
'i bet u r silver on csgo xD',
'u never stood a chance against my pSkillz',
'ur just 2bad to kill me :^(',
'dam im good',
'u wil never beat aimware hax kidd :^)',
'eat shit and die xdd',
'i laugh at ur shit skillz :D',
'get fukn owned kid xd',
'i kill u every time u shud try harder :^(',
'all u can do is die LOL',
'N00bez like u cant beat me LOL',
'u tried but im jus 2 gud 4 u',
'u cant even hit me LOL uninstall kid xd',
'git GUD skrub u r an embarasment',
'pathetic LOL',
'2 bad so sad u just bad :^(',
'im global elit in csgo xd',
'thx 4 free kill loser :D',
'r u even trying???',
'top kekt u got rekt',
'fuken smashed kunt :D',
'u shud add me so i can teach u how 2 shoot LOL',
'ur jus 2 weak and sad to beat me xd',
'looks liek ur sad life isnt working out 2 well 4 u :D',
'dats all u got??? LOL!',
},
SuperCancerStrike = {
'dont upsetti hav some spagetti',
'eat my asse like a bufet (3 corse meal xd)',
'i ownt u in ur gay butth0le',
'umade noobe?',
'le troled hard',
'go wach naturo and play wif urself fag REKT',
'LOL i fuckd u so hard just like ur mum lst nit fag',
'u play liek a blynd stefen hawkin haha',
'ARE U GUEYS NEW??',
'are u as bad at life as u are in csgo??',
'omg this is 2 ezy are U even trying??',
'why dont u go play halo an fist ur butthol faget',
'hey granma is that u???? LOL so bad',
'time for you 2 uninstale the game shit stane',
'congrtulations ur the worlds worst csgo player',
'dose ur aim come in NOT NOOBE? LMAO',
'lol i troled u so hard *OWNED*',
'\'i lik 2 eat daddys logs of poo for lucnh while jackn off 2 naturo\'- u',
'take a se4t faget $hitstain u got OWNDE',
'LOL scrub ur gettin rekt hardcroe',
'R u mad becouse ur bad nooby?',
'LMAO did u go to da buthurt king an g3t urself a butthurt with fries?!?',
'why dont u go and play manoppoly you noob',
'you hav no lyfe you cant evan play csgo propaly',
'im hi rite now on ganj but im stil ownen u xD',
'if u want my cum bake ask ur mum LOL',
'butdocter prognoses: OWND',
'cry 2 ur dads dick forver noob',
'lol troled autismal faget',
'LOL N3RD owned',
'\'i love to drink sprems all day\'- u',
'crushd nerd do u want a baindaid for that LOL',
'lol rectal rekage ur so sh1t lol',
'ass states - [_] NOT REKT [X] REKT',
'lmao do u even try????',
'are u slippan off ur chaire cos ur ass is bleeding so hard??',
'u better get a towel for all ur tears faget',
'u got ass asassenated by me rofl',
'u wont shit agen thats how rekt ur ass is',
'i bet youre anus is sore from me ownen u LOL',
'im gonna record a fragshow so i can watch me pwn u ova and ova LMAO',
'i almost feel sorry for you hahahaha',
'lol why dont u play COD so i can own you there too',
'how dose it feel to be owneded so hartd??',
'rekt u lol another one for the fraghsow',
'if i was as bade as u i would kil myself',
'dont fell bad not ervry one can be goode',
'do u need some loob for ur butt so it doesnt hurt so much when i fuck u',
'spesciall delivary for CAPTEN BUTTHURT',
'wats wrong cant play wif ur dads dik in ur mouth????',
'maybe if u put down the cheseburgers u could kill me lol fat nerd',
'getting mad u virgan nerd??',
'butt docta prognosis: buttfustrated',
'<<< OWEND U >>>',
'if u were a fish you wuld be a sperm whael LOL',
'>mfw i ownd u',
'rekt u noob *OWNED*',
'ur gonna have 2 wear dipers now cos ur ass got SHREDED by me',
'y dont u take a short strole to the fagot store and buy some skills scrub',
'school3d by a 13yo lol u r rely bad',
'ur pathetic nerd its like u have parkensons',
'u just got promoted 2 cumcaptain prestige',
'lol pwnd',
'u just got butt raped lol TROLLED U',
'did u learn 2 aim from stevie wondar??? LOL',
'tell ur mum to hand the keyboard and mosue back',
'how does it feel to be shit on by a 13 yer old',
'r u into scat porns or some thing cos it feel\'s like u want me 2 shit on u',
'u play csgo like my granpa and hes ded',
'are u new or just bad?? noobe',
'u play csgo lik a midget playin basket ball',
'welcome to the noob scoole bus first stop ur house <<PWND>>',
'>mfw i rek u',
'\'i got my ass kiked so hard im shittn out my mouf\' - u',
'<-(0.0)-< dats u gettn ownd LOL',
'u just got ur ass ablitterated <<<RECKT>>>',
'c=3 (dats ur tiney dik rofl)',
'just leeve the game and let the real mans play',
'ur so bad u make ur noobe team look good',
'CONGRASTULATIONS YOU GOT FRIST PRIZE IN BEING BUTT MAD (BUT LAST IN PENIS SIZE LMAO)',
'im not even trying to pwn u its just so easy',
'im only 13 an im better than u haha XD',
'u just got raped',
'some one an ambulance cos u just got DE_STROYED',
'i hope u got birth control coz u got rapped',
'lol pwnd scrubb',
'you play lik a girl',
'\'i got fukd so hard dat im cummin shit n shittn cum\'- u',
'ur gonna need tampons for ur ass afta that ownage',
'{{ scoooled u }}',
'(O.o) ~c======3 dats me jizzan on u',
'dont worry at least ur tryan XD',
'cya noob send me a post card from pwnd city ROFL',
'its ok if u keep practasing u will get bettar lol #rekt',
'\'evry time i fart 1 liter of cum sqerts out\' - u',
'rofl i pwnd u scrub #420 #based #mlgskill',
'u fail just like ur dads condom',
'if i pwnd u any harder it wud be animal abuse',
'uploaden this fragshow roflmao',
},
Questions = {
'whats the max tabs you can have open on a vpn',
'whats the time',
'is it possible to make a clock in binary',
'how many cars can you drive at once',
'did you know there\'s more planes on the ground than there is submarines in the air',
'how many busses can you fit on 1 bus',
'how many tables does it take to support a chair',
'how many doors does it take to screw a screw',
'how long can you hold your eyes closed in bed',
'how long can you hold your breath for under spagetti',
'whats the fastest time to deliver the mail as a mail man',
'how many bees does it take to make a wasp make honey',
'If I paint the sun blue will it turn blue',
'how many beavers does it take to build a dam',
'how much wood does it take to build a computer',
'can i have ur credit card number',
'is it possible to blink and jump at the same time',
'did you know that dinosaurs were, on average, large',
'how many thursdays does it take to paint an elephant purple',
'if cars could talk how fast would they go',
'did you know theres no oxygen in space',
'do toilets flush the other way in australia',
'if i finger paint will i get a splinter',
'can you build me an ant farm',
'did you know australia hosts 4 out of 6 of the deadliest spiders in the world',
'is it possible to ride a bike in space',
'can i make a movie based around your life',
'how many pants can you put on while wearing pants',
'if I paint a car red can it wear pants',
'how come no matter what colour the liquid is the froth is always white',
'can a hearse driver drive a corpse in the car pool lane',
'how come the sun is cold at night',
'why is it called a TV set when there is only one',
'if i blend strawberries can i have ur number',
'if I touch the moon will it be as hot as the sun',
'did u know ur dad is always older than u',
'did u know the burger king logo spells burger king',
'did u know if u chew on broken glass for a few mins, it starts to taste like blood',
'did u know running is faster than walking',
'did u know the colour blue is called blue because its blue',
'did u know a shooting star isnt a star',
'did u know shooting stars dont actually have guns',
'did u know the great wall of china is in china',
'statistictal fact: 100% of non smokers die',
'did u kmow if you eat you poop it out',
'did u know rain clouds r called rain clouds cus they are clouds that rain',
'if cows drink milk is that cow a cannibal',
'did u know you cant win a staring contest with a stuffed animal',
'did u know if a race car is at peak speed and hits someone they\'ll die',
'did u know the distance between the sun and earth is the same distance as the distance between the earth and the sun',
'did u know flat screen tvs arent flat',
'did u know aeroplane mode on ur phone doesnt make ur phone fly',
'did u know too many birthdays can kill you',
'did u know rock music isnt for rocks',
'did u know if you eat enough ice you can stop global warming',
'if ww2 happened before vietnam would that make vietnam world war 2',
'did u know 3.14 isn\'t a real pie',
'did u know 100% of stair accidents happen on stairs',
'can vampires get AIDS',
'what type of bird was a dodo',
'did u know dog backwards is god',
'did you know on average a dog barks more than a cat',
'did u know racecar backwards is racecar'
}
}
},
ChangeLogs = {
'',
'===== 2.0 (July 15 2020) =====',
'Completely rewrote Cyrus'
}
}
C.Libs = {
ChatPrint = {
Initialise = function()
local ffi = require("ffi")
ffi.cdef[[
typedef void***(__thiscall* FindHudElement_t)(void*, const char*);
typedef void(__cdecl* ChatPrintf_t)(void*, int, int, const char*, ...);
]]
local signature_gHud = '\xB9\xCC\xCC\xCC\xCC\x88\x46\x09'
local signature_FindElement = '\x55\x8B\xEC\x53\x8B\x5D\x08\x56\x57\x8B\xF9\x33\xF6\x39\x77\x28'
local match = cache.findSig('client_panorama.dll', signature_gHud) or error('sig1 not found') -- returns void***
local char_match = ffi.cast('char*', match) + 1
local hud = ffi.cast('void**', char_match)[0] or error('hud is nil') -- returns void**
match = cache.findSig('client_panorama.dll', signature_FindElement) or error('FindHudElement not found')
local find_hud_element = ffi.cast('FindHudElement_t', match)
local hudchat = find_hud_element(hud, 'CHudChat') or error('CHudChat not found')
local chudchat_vtbl = hudchat[0] or error('CHudChat instance vtable is nil')
local raw_print_to_chat = chudchat_vtbl[27] -- void*
local print_to_chat = ffi.cast('ChatPrintf_t', raw_print_to_chat)
local function Send(text)
print_to_chat(hudchat, 0, 0, text)
end
C.Libs.ChatPrint.Send = Send
end
}
}
for _, lib in pairs(C.Libs) do
lib.Initialise()
end
C.Notifications = {
UIToggle = function(name, bool)
if (C.UI.ShowUIMessages.Element:get()) then
local col = C.Colours
local toggleMsg = bool and col.LightGreen .. 'Enabled' or col.LightRed .. 'Disabled'
local tab = cache.get(C.UI.NotificationType.Element)
local options = cache.get(C.UI.NotificationType.Element)
local hasValue = C.Funcs.TableHasValue
if (hasValue(options, 'Console')) then
C.Notifications.Console.Log({text = name, bool = bool})
end
if (hasValue(options, 'Chat Print')) then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] %s%s%s was %s', col.Blue, col.White, col.Gold, name, col.White, toggleMsg))
end
end
end,
UIChange = function(name, tab)
if (C.UI.ShowUIMessages.Element:get()) then
local col = C.Colours
local options = cache.get(C.UI.NotificationType.Element)
for _, v in pairs(options) do
if (#tab > 0) then
local tmpArr = {}
for _, msg in pairs(tab) do
table.insert(tmpArr, (v == 'Console' and msg or (col.Purple .. msg .. col.White)))
end
tmpArr = table.concat(tmpArr, ', ')
if (v == 'Chat Print') then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] %s%s%s set to (%s)', col.Blue, col.White, col.Gold, name, col.White, tmpArr))
else
C.Notifications.Console.Log({text = cache.format('%s was set to (%s)', name, tmpArr), bool = true})
end
else
if (v == 'Chat Print') then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] %s%s%s was %sDisabled', col.Blue, col.White, col.Gold, name, col.White, col.Red))
else
C.Notifications.Console.Log({text = cache.format('%s was disabled', name), bool = false})
end
end
end
end
end,
Votes = {
Kick = function(tab)
local col = C.Colours
local team = tab.team
local teamInitials = team == 2 and 'T' or 'CT'
local teamCol = team == 2 and col.LightYellow or col.Blue
local description = tab.description
local descriptionFormatted = cache.format('%s', col.Purple .. description)
local teamFormatted = cache.format('%s%s', teamCol .. teamInitials, col.White)
local target = tab.target
local targetFormatted = cache.format('%s', teamCol .. target)
local options = cache.get(C.UI.NotificationType.Element)
local hasValue = C.Funcs.TableHasValue
if (hasValue(options, 'Console')) then
C.Notifications.Console.Log({text = cache.format('Vote - The %s\'s started a vote to %s %s', teamInitials, description, target), normal_log = true})
end
if (hasValue(options, 'Chat Print')) then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] %s The %s\'s started a vote to %s %s', col.Blue, col.White, col.Gold .. 'Vote' .. col.White .. ' -', teamFormatted, descriptionFormatted, targetFormatted))
end
end,
Start = function(tab)
local col = C.Colours
local player = tab.player
local playerFormatted = cache.format('%s%s%s', tab.team == 3 and col.Blue or col.LightYellow, player, col.White)
local description = tab.description
local descriptionFormatted = cache.format('%s', col.Purple .. description)
local options = cache.get(C.UI.NotificationType.Element)
local hasValue = C.Funcs.TableHasValue
if (hasValue(options, 'Console')) then
C.Notifications.Console.Log({text = cache.format('Vote - %s called a vote to %s', player, description), normal_log = true})
end
if (hasValue(options, 'Chat Print')) then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] %s %s called a vote to %s', col.Blue, col.White, col.Gold .. 'Vote' .. col.White .. ' -', playerFormatted, descriptionFormatted))
end
end,
Vote = function(tab)
local col = C.Colours
local player = tab.player
local playerFormatted = cache.format('%s%s%s', tab.team == 3 and col.Blue or col.LightYellow, player, col.White)
local vote = tab.vote
local voteFormatted = cache.format('%s%s', vote and col.Green .. 'Yes' or col.Red .. 'No', col.White)
local options = cache.get(C.UI.NotificationType.Element)
local hasValue = C.Funcs.TableHasValue
if (hasValue(options, 'Console')) then
C.Notifications.Console.Log({text = cache.format('Vote - %s voted %s', player, vote and 'Yes' or 'No'), bool = vote})
end
if (hasValue(options, 'Chat Print')) then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] %sVote %s- %s voted %s', col.Blue, col.White, col.Gold, col.White, playerFormatted, voteFormatted))
end
end
},
Logs = {
Hit = function(tab)
C.Vars.HitLog.AimHit = true
local hit = tab.hit
local fired = tab.fired
local col = C.Colours
local name = cache.getName(hit.target)
local nameFormatted = col.Gold .. name .. col.White
local hitbox = C.Vars.HitLog.HitGroups[hit.hitgroup + 1]
local hitboxFormatted = col.Purple .. hitbox .. col.White
local firedAtHitbox = C.Vars.HitLog.HitGroups[fired.hitgroup + 1]
local firedAtHitboxFormatted = col.Blue .. firedAtHitbox .. col.White
local hitchance = math.floor(fired.hit_chance)
local hitchanceFormatted = col.LightRed .. hitchance .. col.White
local hitDamage = hit.damage
local hitDamageFormatted = col.LightRed .. hitDamage .. col.White
local firedDamage = fired.damage
local firedDamageFormatted = col.LightGreen .. firedDamage .. col.White
local health = cache.getProp(hit.target, 'm_iHealth') or -1
local healthFormatted = col.LightRed .. health .. col.White
local flags = {
fired.boosted and 'B' or '',
fired.extrapolated and 'E' or '',
fired.high_priority and 'H' or '',
fired.interpolated and 'I' or '',
fired.teleported and 'T' or ''
}
flags = table.concat(flags)
local options = cache.get(C.UI.NotificationType.Element)
local hasValue = C.Funcs.TableHasValue
if (hasValue(options, 'Console')) then
C.Notifications.Console.Log({text = cache.format('Hit %s\'s %s (fired: %s, hc: %s, dmg: %s) for %s (%s) (%s hp)', name, hitbox, firedAtHitbox, hitchance, firedDamage, hitDamage, flags, health), normal_log = true})
end
if (hasValue(options, 'Chat Print')) then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] Hit %s\'s %s (fired: %s, hc: %s, dmg: %s) for: %s (%s) (%s hp)', col.Blue, col.White, nameFormatted, hitboxFormatted, firedAtHitboxFormatted, hitchanceFormatted, firedDamageFormatted, hitDamageFormatted, flags, healthFormatted))
end
cache.delay(0, function()
C.Vars.HitLog.AimHit = false
end)
end,
HitNormal = function(tab)
if (not C.Vars.HitLog.AimHit) then
local hit = tab
local col = C.Colours
local name = cache.getName(hit.victim)
local nameFormatted = col.Gold .. name .. col.White
local hitbox = C.Vars.HitLog.HitGroups[hit.hitgroup + 1]
local formattedHitbox = col.Purple .. (hitbox == 'generic' and 'body' or hitbox) .. col.White
local hitDamage = hit.dmg_health
local hitDamageFormatted = col.Green .. hitDamage .. col.White
local hpRemaining = hit.health
local hpRemainingFormatted = col.LightRed .. hpRemaining .. col.White
local options = cache.get(C.UI.NotificationType.Element)
local hasValue = C.Funcs.TableHasValue
if (hasValue(options, 'Console')) then
C.Notifications.Console.Log({text = cache.format('Hit %s\'s %s for %s dmg (%s hp remaining)', name, hitbox == 'generic' and 'body' or hitbox, hitDamage, hpRemaining), normal_log = true})
end
if (hasValue(options, 'Chat Print')) then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] Hit %s\'s %s for %s dmg (%s hp remaining)', col.Blue, col.White, nameFormatted, formattedHitbox, hitDamageFormatted, hpRemainingFormatted))
end
end
end,
Miss = function(tab)
local miss = tab.miss
local fired = tab.fired
local col = C.Colours
local name = cache.getName(miss.target)
local nameFormatted = col.Gold .. name .. col.White
local hitbox = C.Vars.HitLog.HitGroups[miss.hitgroup + 1]
local hitboxFormatted = col.Purple .. hitbox .. col.White
local reason = miss.reason
local reasonFormatted = col.Green .. miss.reason .. col.White
local hitchance = math.floor(miss.hit_chance)
local hitchanceFormatted = col.LightRed .. hitchance .. col.White
local damage = fired.damage
local damageFormatted = col.LightRed .. damage .. col.White
local flags = {
fired.boosted and 'B' or '',
fired.extrapolated and 'E' or '',
fired.high_priority and 'H' or '',
fired.interpolated and 'I' or '',
fired.teleported and 'T' or ''
}
local options = cache.get(C.UI.NotificationType.Element)
local hasValue = C.Funcs.TableHasValue
flags = table.concat(flags)
if (hasValue(options, 'Console')) then
C.Notifications.Console.Log({text = cache.format('Missed %s\'s %s (r: %s, hc: %s, dmg: %s) (%s)', name, hitbox, reason, hitchance, damage, flags), normal_log = true})
end
if (hasValue(options, 'Chat Print')) then
C.Libs.ChatPrint.Send(cache.format('[%sCyrus%s] Missed %s\'s %s (r: %s, hc: %s, dmg: %s) (%s)', col.Blue, col.White, nameFormatted, hitboxFormatted, reasonFormatted, hitchanceFormatted, damageFormatted, flags))
end
end,