-
Notifications
You must be signed in to change notification settings - Fork 9
/
script_2be661251429fd1a.gsc
2321 lines (2270 loc) · 60.6 KB
/
script_2be661251429fd1a.gsc
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
// Decompiled by Serious. Credits to Scoba for his original tool, Cerberus, which I heavily upgraded to support remaining features, other games, and other platforms.
#using scripts\weapons\localheal.gsc;
#using scripts\killstreaks\killstreaks_shared.gsc;
#using scripts\killstreaks\killstreakrules_shared.gsc;
#using scripts\killstreaks\killstreaks_util.gsc;
#using scripts\mp_common\teams\teams.gsc;
#using scripts\mp_common\supplypod.gsc;
#using scripts\abilities\gadgets\gadget_smart_cover.gsc;
#using scripts\abilities\gadgets\gadget_concertina_wire.gsc;
#using scripts\weapons\deployable.gsc;
#using scripts\core_common\util_shared.gsc;
#using scripts\core_common\array_shared.gsc;
#using scripts\core_common\system_shared.gsc;
#using scripts\core_common\bots\bot_position.gsc;
#using scripts\core_common\bots\bot_action.gsc;
#using scripts\core_common\bots\bot.gsc;
#using scripts\core_common\ai_shared.gsc;
#namespace namespace_104c3c75;
/*
Name: __init__system__
Namespace: namespace_104c3c75
Checksum: 0xB67A7EAB
Offset: 0x130
Size: 0x44
Parameters: 0
Flags: AutoExec
*/
function autoexec __init__system__()
{
system::register(#"hash_67d1c49d4f76fc41", &__init__, &__main__, undefined);
}
/*
Name: __init__
Namespace: namespace_104c3c75
Checksum: 0x80F724D1
Offset: 0x180
Size: 0x4
Parameters: 0
Flags: Linked
*/
function __init__()
{
}
/*
Name: __main__
Namespace: namespace_104c3c75
Checksum: 0xF3E287EE
Offset: 0x190
Size: 0x94
Parameters: 0
Flags: Linked
*/
function __main__()
{
level bot_action::register_actions();
level bot_action::register_weapons();
level bot_action::function_25f1e3c1();
level register_actions();
level register_weapons();
level function_25f1e3c1();
}
/*
Name: register_actions
Namespace: namespace_104c3c75
Checksum: 0xAB322BCC
Offset: 0x230
Size: 0x274
Parameters: 0
Flags: Linked
*/
function register_actions()
{
bot_action::register_action(#"activate_health_gadget", &bot_action::weapon_rank, &function_bcb5ef11, &bot_action::activate_health_gadget);
bot_action::register_action(#"throw_molotov", &bot_action::weapon_rank, &function_1275c409, &bot_action::function_90c011d5);
bot_action::register_action(#"throw_grenade", &bot_action::weapon_rank, &function_32e8b358, &bot_action::function_90c011d5);
bot_action::register_action(#"throw_mine", &bot_action::weapon_rank, &function_369cb1a5, &bot_action::function_94f96101);
bot_action::register_action(#"hash_63c5000998c406e2", &bot_action::weapon_rank, &bot_action::function_39317d6e, &bot_action::test_gadget);
bot_action::register_action(#"hash_7f17997c50415cb7", &bot_action::weapon_rank, &bot_action::function_30636b1c, &bot_action::test_gadget);
bot_action::register_action(#"hash_291f02a64600bb72", &bot_action::weapon_rank, &bot_action::function_38d0d1df, &bot_action::test_gadget);
if(!sessionmodeiswarzonegame())
{
self function_938667bd();
self function_d47799c8();
}
}
/*
Name: register_weapons
Namespace: namespace_104c3c75
Checksum: 0x516F33BD
Offset: 0x4B0
Size: 0x12C
Parameters: 0
Flags: Linked
*/
function register_weapons()
{
bot_action::register_weapon(#"knife_held", &bot_action::function_d31777fa);
bot_action::register_weapon(#"bare_hands", &bot_action::function_d31777fa);
bot_action::function_f4302f2a(#"gadget_health_regen", &bot_action::function_2c39b990, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"gadget_medicalinjectiongun", &bot_action::function_2c39b990, &bot_action::function_a9847723);
self function_b7cdffc();
self function_d5ef6ef3();
self function_c2e797aa();
}
/*
Name: function_25f1e3c1
Namespace: namespace_104c3c75
Checksum: 0x184A97B1
Offset: 0x5E8
Size: 0x10C
Parameters: 0
Flags: Linked
*/
function function_25f1e3c1()
{
bot_action::function_a2c83569(#"knife_held", #"melee_enemy");
bot_action::function_a2c83569(#"bare_hands", #"melee_enemy");
bot_action::function_7e847a84(#"gadget_health_regen", #"activate_health_gadget");
bot_action::function_7e847a84(#"gadget_medicalinjectiongun", #"activate_health_gadget");
self function_aaede90c();
self function_aa5475f();
self function_865733c1();
}
/*
Name: function_938667bd
Namespace: namespace_104c3c75
Checksum: 0x751E4CAA
Offset: 0x700
Size: 0x464
Parameters: 0
Flags: Linked
*/
function function_938667bd()
{
bot_action::register_action(#"hash_5397239dd3c8da8d", &bot_action::weapon_rank, &function_c98fad6b, &function_74ab5468);
bot_action::register_action(#"hash_6fbd1b1c42e3a0c5", &bot_action::weapon_rank, &function_1c7ea685, &bot_action::function_49161e05);
bot_action::register_action(#"activate_localheal", &bot_action::weapon_rank, &function_7fa22be8, &bot_action::function_49161e05);
bot_action::register_action(#"activate_radiation_field", &bot_action::weapon_rank, &function_65b9c7c2, &activate_radiation_field);
bot_action::register_action(#"use_tripwire", &bot_action::weapon_rank, &function_d18123f8, &use_tripwire);
bot_action::register_action(#"activate_dog", &bot_action::weapon_rank, &bot_action::function_38d0d1df, &bot_action::function_49161e05);
bot_action::register_action(#"hash_4600e058d958fc21", &bot_action::weapon_rank, &function_17a8721f, &function_76c8b8e8);
bot_action::register_action(#"activate_vision_pulse", &bot_action::weapon_rank, &bot_action::function_38d0d1df, &bot_action::function_49161e05);
bot_action::register_action(#"activate_noncombat_grapple", &bot_action::weapon_rank, &function_554a6177, &use_grapple);
bot_action::register_action(#"activate_gravity_slam", &bot_action::weapon_rank, &function_97e7772c, &bot_action::function_94f96101);
bot_action::register_action(#"deploy_spawnbeacon", &bot_action::weapon_rank, &function_9a0eb4f0, &bot_action::function_49161e05);
bot_action::register_action(#"hash_17f1a25f8c10e1cd", &bot_action::weapon_rank, &function_4a95cdaf, &bot_action::function_49161e05);
bot_action::register_action(#"hash_5d6b13cfb592ee04", &bot_action::weapon_rank, &function_e43892c4, &function_79988b4b);
bot_action::register_action(#"use_icepick", &bot_action::weapon_rank, &bot_action::function_38d0d1df, &use_icepick);
}
/*
Name: function_d47799c8
Namespace: namespace_104c3c75
Checksum: 0x8D17A214
Offset: 0xB70
Size: 0x4B4
Parameters: 0
Flags: Linked
*/
function function_d47799c8()
{
bot_action::register_action(#"ac130", &bot_action::function_3df363bf, &function_66e1a1ca, &function_39c29cdd);
bot_action::register_action(#"tank_robot", &bot_action::function_3df363bf, &function_d2107b, &function_8f5d7136);
bot_action::register_action(#"counteruav", &bot_action::function_3df363bf, &function_6f232284, &function_39c29cdd);
bot_action::register_action(#"dart", &bot_action::function_3df363bf, &function_85f39927, &function_7d799351);
bot_action::register_action(#"drone_squadron", &bot_action::function_3df363bf, &function_66e1a1ca, &function_39c29cdd);
bot_action::register_action(#"helicopter_comlink", &bot_action::function_3df363bf, &function_66e1a1ca, &function_39c29cdd);
bot_action::register_action(#"overwatch_helicopter", &bot_action::function_3df363bf, &function_66e1a1ca, &function_39c29cdd);
bot_action::register_action(#"planemortar", &bot_action::function_3df363bf, &function_66e1a1ca, &function_942b5513);
bot_action::register_action(#"recon_car", &bot_action::function_3df363bf, &function_66e1a1ca, &function_39c29cdd);
bot_action::register_action(#"remote_missile", &bot_action::function_3df363bf, &function_66e1a1ca, &function_27f291e1);
bot_action::register_action(#"straferun", &bot_action::function_3df363bf, &function_66e1a1ca, &function_39c29cdd);
bot_action::register_action(#"supply_drop", &bot_action::function_3df363bf, &function_d2107b, &function_8f5d7136);
bot_action::register_action(#"swat_team", &bot_action::function_3df363bf, &function_66e1a1ca, &function_39c29cdd);
bot_action::register_action(#"uav", &bot_action::function_3df363bf, &function_66e1a1ca, &function_39c29cdd);
bot_action::register_action(#"ultimate_turret", &bot_action::function_3df363bf, &function_f90909b9, &activate_turret);
}
/*
Name: function_b7cdffc
Namespace: namespace_104c3c75
Checksum: 0x87AE50CF
Offset: 0x1030
Size: 0x684
Parameters: 0
Flags: Linked
*/
function function_b7cdffc()
{
bot_action::function_f4302f2a(#"eq_swat_grenade", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"sig_buckler_dw", &bot_action::function_1879a202, &bot_action::function_ec16df22);
bot_action::function_f4302f2a(#"eq_cluster_semtex_grenade", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"hero_pineapplegun", &bot_action::function_1879a202, &bot_action::function_ec16df22);
bot_action::function_f4302f2a(#"gadget_supplypod", &bot_action::function_1879a202, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"eq_localheal", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"gadget_radiation_field", &bot_action::function_1879a202, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"hero_flamethrower", &bot_action::function_2c39b990, &bot_action::function_ec16df22);
bot_action::function_f4302f2a(#"eq_tripwire", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"ability_dog", &bot_action::function_1879a202, &bot_action::function_8171a298);
bot_action::function_f4302f2a(#"eq_hawk", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"sig_bow_quickshot", &bot_action::function_1879a202, &bot_action::function_ec16df22);
bot_action::function_f4302f2a(#"eq_seeker_mine", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"shock_rifle", &bot_action::function_1879a202, &bot_action::function_ec16df22);
bot_action::function_f4302f2a(#"eq_sensor", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"gadget_vision_pulse", &bot_action::function_1879a202, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"eq_grapple", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"eq_gravityslam", &bot_action::function_1879a202, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"gadget_spawnbeacon", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"hero_annihilator", &bot_action::function_2c39b990, &bot_action::function_ec16df22);
bot_action::function_f4302f2a(#"eq_smoke", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"sig_blade", &bot_action::function_1879a202, &bot_action::function_ec16df22);
bot_action::function_f4302f2a(#"eq_concertina_wire", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"ability_smart_cover", &bot_action::function_1879a202, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"eq_emp_grenade", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"gadget_icepick", &bot_action::function_1879a202, &bot_action::function_ec16df22);
}
/*
Name: function_d5ef6ef3
Namespace: namespace_104c3c75
Checksum: 0x8E1AF72F
Offset: 0x16C0
Size: 0x184
Parameters: 0
Flags: Linked
*/
function function_d5ef6ef3()
{
bot_action::function_f4302f2a(#"eq_molotov", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"eq_sticky_grenade", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"eq_slow_grenade", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"frag_grenade", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"hatchet", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
bot_action::function_f4302f2a(#"trophy_system", &bot_action::registermus_gramophone_electricreactidgunterminate, &bot_action::function_a9847723);
}
/*
Name: function_c2e797aa
Namespace: namespace_104c3c75
Checksum: 0x2460E7C6
Offset: 0x1850
Size: 0x3C4
Parameters: 0
Flags: Linked
*/
function function_c2e797aa()
{
bot_action::function_c67ea19e(#"ac130", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"ai_tank_marker", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"counteruav", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"dart", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"drone_squadron", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"helicopter_comlink", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"overwatch_helicopter", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"planemortar", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"recon_car", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"remote_missile", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"straferun", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"supplydrop_marker", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"swat_team", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"uav", &bot_action::function_791f5097, &bot_action::function_29163ca5);
bot_action::function_c67ea19e(#"ultimate_turret", &bot_action::function_791f5097, &bot_action::function_29163ca5);
}
/*
Name: function_aaede90c
Namespace: namespace_104c3c75
Checksum: 0x1649F8FF
Offset: 0x1C20
Size: 0x754
Parameters: 0
Flags: Linked
*/
function function_aaede90c()
{
bot_action::function_7e847a84(#"eq_swat_grenade", #"throw_grenade");
bot_action::function_7e847a84(#"sig_buckler_dw", #"hash_5397239dd3c8da8d");
bot_action::function_a2c83569(#"sig_buckler_dw", #"hash_7aaeac32a4e1bf84");
bot_action::function_a2c83569(#"sig_buckler_dw", #"hash_3d7dd2878425bcce");
bot_action::function_7e847a84(#"eq_cluster_semtex_grenade", #"throw_grenade");
bot_action::function_7e847a84(#"hero_pineapplegun", #"hash_5397239dd3c8da8d");
bot_action::function_a2c83569(#"hero_pineapplegun", #"fire_grenade");
bot_action::function_7e847a84(#"gadget_supplypod", #"hash_6fbd1b1c42e3a0c5");
bot_action::function_7e847a84(#"eq_localheal", #"activate_localheal");
bot_action::function_7e847a84(#"gadget_radiation_field", #"activate_radiation_field");
bot_action::function_7e847a84(#"hero_flamethrower", #"hash_5397239dd3c8da8d");
bot_action::function_a2c83569(#"hero_flamethrower", #"hash_7aaeac32a4e1bf84");
bot_action::function_a2c83569(#"hero_flamethrower", #"hash_434716893aa869f3");
bot_action::function_7e847a84(#"eq_tripwire", #"use_tripwire");
bot_action::function_7e847a84(#"ability_dog", #"activate_dog");
bot_action::function_7e847a84(#"eq_hawk", #"throw_grenade");
bot_action::function_7e847a84(#"sig_bow_quickshot", #"hash_5397239dd3c8da8d");
bot_action::function_a2c83569(#"sig_bow_quickshot", #"hash_7aaeac32a4e1bf84");
bot_action::function_a2c83569(#"sig_bow_quickshot", #"hash_434716893aa869f3");
bot_action::function_7e847a84(#"eq_seeker_mine", #"throw_mine");
bot_action::function_7e847a84(#"shock_rifle", #"hash_5397239dd3c8da8d");
bot_action::function_a2c83569(#"shock_rifle", #"hash_7aaeac32a4e1bf84");
bot_action::function_a2c83569(#"shock_rifle", #"hash_434716893aa869f3");
bot_action::function_7e847a84(#"eq_sensor", #"hash_4600e058d958fc21");
bot_action::function_7e847a84(#"gadget_vision_pulse", #"activate_vision_pulse");
bot_action::function_7e847a84(#"eq_grapple", #"activate_noncombat_grapple");
bot_action::function_7e847a84(#"eq_gravityslam", #"activate_gravity_slam");
bot_action::function_7e847a84(#"gadget_spawnbeacon", #"deploy_spawnbeacon");
bot_action::function_7e847a84(#"hero_annihilator", #"hash_5397239dd3c8da8d");
bot_action::function_a2c83569(#"hero_annihilator", #"hash_7aaeac32a4e1bf84");
bot_action::function_a2c83569(#"hero_annihilator", #"hash_434716893aa869f3");
bot_action::function_7e847a84(#"eq_smoke", #"throw_grenade");
bot_action::function_7e847a84(#"sig_blade", #"hash_5397239dd3c8da8d");
bot_action::function_a2c83569(#"sig_blade", #"hash_7aaeac32a4e1bf84");
bot_action::function_a2c83569(#"sig_blade", #"hash_434716893aa869f3");
bot_action::function_7e847a84(#"eq_concertina_wire", #"hash_17f1a25f8c10e1cd");
bot_action::function_7e847a84(#"ability_smart_cover", #"hash_5d6b13cfb592ee04");
bot_action::function_7e847a84(#"eq_emp_grenade", #"throw_mine");
bot_action::function_7e847a84(#"gadget_icepick", #"use_icepick");
}
/*
Name: function_aa5475f
Namespace: namespace_104c3c75
Checksum: 0xA1CC272F
Offset: 0x2380
Size: 0x124
Parameters: 0
Flags: Linked
*/
function function_aa5475f()
{
bot_action::function_7e847a84(#"eq_molotov", #"throw_molotov");
bot_action::function_7e847a84(#"eq_sticky_grenade", #"throw_grenade");
bot_action::function_7e847a84(#"eq_slow_grenade", #"throw_grenade");
bot_action::function_7e847a84(#"frag_grenade", #"throw_grenade");
bot_action::function_7e847a84(#"hatchet", #"throw_grenade");
bot_action::function_7e847a84(#"trophy_system", #"throw_mine");
}
/*
Name: function_865733c1
Namespace: namespace_104c3c75
Checksum: 0x5AFB6FEE
Offset: 0x24B0
Size: 0x2D4
Parameters: 0
Flags: Linked
*/
function function_865733c1()
{
bot_action::function_7e847a84(#"ac130", #"ac130");
bot_action::function_7e847a84(#"ai_tank_marker", #"tank_robot");
bot_action::function_7e847a84(#"counteruav", #"counteruav");
bot_action::function_7e847a84(#"dart", #"dart");
bot_action::function_7e847a84(#"drone_squadron", #"drone_squadron");
bot_action::function_7e847a84(#"helicopter_comlink", #"helicopter_comlink");
bot_action::function_7e847a84(#"overwatch_helicopter", #"overwatch_helicopter");
bot_action::function_7e847a84(#"planemortar", #"planemortar");
bot_action::function_7e847a84(#"recon_car", #"recon_car");
bot_action::function_7e847a84(#"remote_missile", #"remote_missile");
bot_action::function_7e847a84(#"straferun", #"straferun");
bot_action::function_7e847a84(#"supplydrop_marker", #"supply_drop");
bot_action::function_7e847a84(#"swat_team", #"swat_team");
bot_action::function_7e847a84(#"uav", #"uav");
bot_action::function_7e847a84(#"ultimate_turret", #"ultimate_turret");
}
/*
Name: function_c98fad6b
Namespace: namespace_104c3c75
Checksum: 0xEC8DE589
Offset: 0x2790
Size: 0x23A
Parameters: 1
Flags: Linked
*/
function function_c98fad6b(actionparams)
{
if(!self bot_action::function_5de4c088(actionparams))
{
return undefined;
}
if(!self bot::in_combat())
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
if(!isalive(self.enemy))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
if(self bot_action::function_b70a8fcf(actionparams))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
return 100;
}
/*
Name: function_74ab5468
Namespace: namespace_104c3c75
Checksum: 0x1E17AAE1
Offset: 0x29D8
Size: 0x6E
Parameters: 1
Flags: Linked
*/
function function_74ab5468(actionparams)
{
weapon = actionparams.weapon;
self bot_action::function_ccdcc5d9(weapon);
while(self isswitchingweapons())
{
self waittill(#"hash_347a612b61067eb3");
}
}
/*
Name: function_bcb5ef11
Namespace: namespace_104c3c75
Checksum: 0x41FAC79F
Offset: 0x2A50
Size: 0x3FA
Parameters: 1
Flags: Linked
*/
function function_bcb5ef11(actionparams)
{
if(!self bot_action::function_5de4c088(actionparams))
{
return undefined;
}
if(isdefined(self.heal.enabled) && self.heal.enabled)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
pathenemyfightdist = self.bot.tacbundle.pathenemyfightdist;
if(!self ai::get_behavior_attribute("ignorepathenemyfightdist") && isdefined(self.enemy) && isdefined(pathenemyfightdist) && pathenemyfightdist > 0 && distance2dsquared(self.origin, self.enemy.origin) < (pathenemyfightdist * pathenemyfightdist))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = (("" + self.health) + "") + self.maxhealth;
#/
healthratio = self.health / self.maxhealth;
if(healthratio > self.bot.tacbundle.var_ac1c818f)
{
return undefined;
}
weapon = actionparams.weapon;
slot = self gadgetgetslot(weapon);
power = self gadgetpowerget(slot);
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "" + power;
#/
return 100;
}
/*
Name: function_daa183ff
Namespace: namespace_104c3c75
Checksum: 0xDE935E02
Offset: 0x2E58
Size: 0x3AA
Parameters: 3
Flags: Linked
*/
function function_daa183ff(actionparams, var_2a213a99, var_b5aae32c)
{
actionparams.target = self.enemy;
if(!self bot_action::function_5de4c088(actionparams))
{
return undefined;
}
if(!self bot_action::function_ecf6dc7a(actionparams))
{
return undefined;
}
if(self bot_action::function_b70a8fcf(actionparams))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
if(var_2a213a99)
{
self bot_action::function_26c2bce7(actionparams, "tag_origin");
}
self bot_action::function_8a2b82ad(actionparams);
if(isdefined(var_b5aae32c) && distancesquared(self.origin, actionparams.aimpoint) <= var_b5aae32c)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
self bot_action::function_a3dfc4aa(actionparams);
if(!isdefined(actionparams.var_cb785841))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
self bot_action::function_9004d3ca(actionparams);
if(!self bot_action::function_ade341c(actionparams))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
return 100;
}
/*
Name: function_1275c409
Namespace: namespace_104c3c75
Checksum: 0x6CB8FDCF
Offset: 0x3210
Size: 0x32
Parameters: 1
Flags: Linked
*/
function function_1275c409(actionparams)
{
return self function_daa183ff(actionparams, 1, 250000);
}
/*
Name: function_32e8b358
Namespace: namespace_104c3c75
Checksum: 0x88F1C7A6
Offset: 0x3250
Size: 0x22
Parameters: 1
Flags: Linked
*/
function function_32e8b358(actionparams)
{
return self function_daa183ff(actionparams, 0);
}
/*
Name: function_369cb1a5
Namespace: namespace_104c3c75
Checksum: 0xBF18A92E
Offset: 0x3280
Size: 0x28A
Parameters: 1
Flags: Linked
*/
function function_369cb1a5(actionparams)
{
if(!self bot_action::function_5de4c088(actionparams))
{
return undefined;
}
if(self bot::has_visible_enemy())
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
var_2b3b4fb = self function_f04bd922();
if(!isdefined(var_2b3b4fb))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
target = var_2b3b4fb.var_2cfdc66d + vectorscale((0, 0, 1), 55);
if(distance2dsquared(target, self.origin) < 62500)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
actionparams.target = target;
return 100;
}
/*
Name: function_65b9c7c2
Namespace: namespace_104c3c75
Checksum: 0x9B867FED
Offset: 0x3518
Size: 0x36A
Parameters: 1
Flags: Linked
*/
function function_65b9c7c2(actionparams)
{
actionparams.target = self.enemy;
if(!self bot_action::function_5de4c088(actionparams))
{
return undefined;
}
if(!self bot_action::function_ecf6dc7a(actionparams))
{
return undefined;
}
if(self bot_action::function_b70a8fcf(actionparams))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
if(distance2dsquared(self.origin, self.enemy.origin) > 90000)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
if(isdefined(self.heal.enabled) && self.heal.enabled)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
healthratio = self.health / self.maxhealth;
if(healthratio <= self.bot.tacbundle.var_ac1c818f)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
return 100;
}
/*
Name: activate_radiation_field
Namespace: namespace_104c3c75
Checksum: 0x98994A8D
Offset: 0x3890
Size: 0x196
Parameters: 1
Flags: Linked
*/
function activate_radiation_field(actionparams)
{
weapon = actionparams.weapon;
self bot_action::function_ccdcc5d9(weapon);
slot = self gadgetgetslot(weapon);
button = self function_c6e02c38(weapon);
while(!self gadgetisactive(slot))
{
self bottapbutton(button);
self waittill(#"hash_347a612b61067eb3");
}
while(self gadgetisactive(slot) && self.health > 20)
{
self bottapbutton(button);
self waittill(#"hash_347a612b61067eb3");
}
while(self isthrowinggrenade() || !self function_a39f313c() || self getcurrentweapon() == level.weaponnone)
{
self waittill(#"hash_347a612b61067eb3");
}
}
/*
Name: function_97e7772c
Namespace: namespace_104c3c75
Checksum: 0x6D44FA6D
Offset: 0x3A30
Size: 0x1D2
Parameters: 1
Flags: Linked
*/
function function_97e7772c(actionparams)
{
actionparams.target = self.enemy;
if(!self bot_action::function_5de4c088(actionparams))
{
return undefined;
}
if(!self bot_action::function_ecf6dc7a(actionparams))
{
return undefined;
}
if(self bot_action::function_b70a8fcf(actionparams))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
if(distance2dsquared(self.origin, self.enemy.origin) > 40000)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
return 100;
}
/*
Name: function_554a6177
Namespace: namespace_104c3c75
Checksum: 0x9CD1330E
Offset: 0x3C10
Size: 0x3DE
Parameters: 1
Flags: Linked
*/
function function_554a6177(actionparams)
{
if(!self bot_action::function_5de4c088(actionparams))
{
return undefined;
}
if(self bot::has_visible_enemy())
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
var_2b3b4fb = self function_f04bd922();
if(!isdefined(var_2b3b4fb))
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
target = var_2b3b4fb.var_2cfdc66d + vectorscale((0, 0, 1), 100);
if(distance2dsquared(target, self.origin) < 40000)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
eye = self geteye();
vectotarget = vectornormalize(target - eye);
traceend = eye + (vectotarget * 2000);
trace = bullettrace(eye, traceend, 0, self);
if(trace[#"fraction"] >= 1)
{
/#
if(!isdefined(actionparams.debug))
{
actionparams.debug = [];
}
else if(!isarray(actionparams.debug))
{
actionparams.debug = array(actionparams.debug);
}
actionparams.debug[actionparams.debug.size] = "";
#/
return undefined;
}
target = trace[#"position"];
actionparams.target = target;
return 100;
}
/*
Name: use_grapple
Namespace: namespace_104c3c75
Checksum: 0x34B4C308
Offset: 0x3FF8
Size: 0x258
Parameters: 1
Flags: Linked
*/
function use_grapple(actionparams)
{
weapon = actionparams.weapon;
if(!isdefined(weapon))
{
/#
self botprinterror("" + "");
#/
self waittill(#"hash_347a612b61067eb3");
return;
}
self bot_action::function_8a2b82ad(actionparams);
self bot_action::aim_at_target(actionparams);
self waittill(#"hash_347a612b61067eb3");
while(self botgetlookdot() < 0.99 || self istraversing())
{
self waittill(#"hash_347a612b61067eb3");
self bot_action::function_8a2b82ad(actionparams);
self bot_action::aim_at_target(actionparams);
}
self bot_action::function_ccdcc5d9(weapon);