-
Notifications
You must be signed in to change notification settings - Fork 50
/
am_airstrike.c
4460 lines (3856 loc) · 81.6 KB
/
am_airstrike.c
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
#region Local Var
int iLocal_0 = 0;
var uLocal_1 = 0;
var uLocal_2 = 0;
int iLocal_3 = 0;
int iLocal_4 = 0;
int iLocal_5 = 0;
int iLocal_6 = 0;
int iLocal_7 = 0;
int iLocal_8 = 0;
int iLocal_9 = 0;
int iLocal_10 = 0;
int iLocal_11 = 0;
int iLocal_12 = 0;
float fLocal_13 = 0f;
var uLocal_14 = 0;
var uLocal_15 = 0;
int iLocal_16 = 0;
var uLocal_17 = 0;
var uLocal_18 = 0;
char* sLocal_19 = NULL;
var uLocal_20 = 0;
var uLocal_21 = 0;
float fLocal_22 = 0f;
float fLocal_23 = 0f;
float fLocal_24 = 0f;
var uLocal_25 = 0;
var uLocal_26 = 0;
float fLocal_27 = 0f;
var uLocal_28 = 0;
var uLocal_29 = 0;
var uLocal_30 = 0;
float fLocal_31 = 0f;
float fLocal_32 = 0f;
var uLocal_33 = 0;
var uLocal_34 = 0;
var uLocal_35 = 0;
var uLocal_36 = 0;
var uLocal_37 = 0;
int iLocal_38 = 0;
int iLocal_39 = 0;
int iLocal_40 = 0;
int iLocal_41 = 0;
var uLocal_42 = 0;
var uLocal_43 = 0;
var uLocal_44 = 0;
int iLocal_45 = 0;
int iLocal_46 = 0;
int iLocal_47 = 0;
int iLocal_48 = 0;
int iLocal_49 = 0;
bool bLocal_50 = 0;
int iLocal_51 = 0;
int iLocal_52 = 0;
int iLocal_53 = 0;
int iLocal_54 = 0;
int iLocal_55 = 0;
int iLocal_56 = 0;
int iLocal_57 = 0;
struct<3> Local_58 = { 0, 0, 0 } ;
struct<3> Local_61 = { 0, 0, 0 } ;
float fLocal_64 = 0f;
var uLocal_65 = 0;
var uLocal_66 = 0;
var uLocal_67 = 0;
var uLocal_68 = 0;
var uLocal_69 = 0;
var uLocal_70 = 0;
var uLocal_71 = 16;
var uLocal_72 = 0;
var uLocal_73 = 0;
var uLocal_74 = 0;
var uLocal_75 = 0;
var uLocal_76 = 0;
var uLocal_77 = 0;
var uLocal_78 = 0;
var uLocal_79 = 0;
var uLocal_80 = 0;
var uLocal_81 = 0;
var uLocal_82 = 0;
var uLocal_83 = 0;
var uLocal_84 = 0;
var uLocal_85 = 0;
var uLocal_86 = 0;
var uLocal_87 = 0;
var uLocal_88 = 0;
var uLocal_89 = 0;
var uLocal_90 = 0;
var uLocal_91 = 0;
var uLocal_92 = 0;
var uLocal_93 = 0;
var uLocal_94 = 0;
var uLocal_95 = 0;
var uLocal_96 = 0;
var uLocal_97 = 0;
var uLocal_98 = 0;
var uLocal_99 = 0;
var uLocal_100 = 0;
var uLocal_101 = 0;
var uLocal_102 = 0;
var uLocal_103 = 0;
var uLocal_104 = 0;
var uLocal_105 = 0;
var uLocal_106 = 0;
var uLocal_107 = 0;
var uLocal_108 = 0;
var uLocal_109 = 0;
var uLocal_110 = 0;
var uLocal_111 = 0;
var uLocal_112 = 0;
var uLocal_113 = 0;
var uLocal_114 = 0;
var uLocal_115 = 0;
var uLocal_116 = 0;
var uLocal_117 = 0;
var uLocal_118 = 0;
var uLocal_119 = 0;
var uLocal_120 = 0;
var uLocal_121 = 0;
var uLocal_122 = 0;
var uLocal_123 = 0;
var uLocal_124 = 0;
var uLocal_125 = 0;
var uLocal_126 = 0;
var uLocal_127 = 0;
var uLocal_128 = 0;
var uLocal_129 = 0;
var uLocal_130 = 0;
var uLocal_131 = 0;
var uLocal_132 = 0;
var uLocal_133 = 0;
var uLocal_134 = 0;
var uLocal_135 = 0;
var uLocal_136 = 0;
var uLocal_137 = 0;
var uLocal_138 = 0;
var uLocal_139 = 0;
var uLocal_140 = 0;
var uLocal_141 = 0;
var uLocal_142 = 0;
var uLocal_143 = 0;
var uLocal_144 = 0;
var uLocal_145 = 0;
var uLocal_146 = 0;
var uLocal_147 = 0;
var uLocal_148 = 0;
var uLocal_149 = 0;
var uLocal_150 = 0;
var uLocal_151 = 0;
var uLocal_152 = 0;
var uLocal_153 = 0;
var uLocal_154 = 0;
var uLocal_155 = 0;
var uLocal_156 = 0;
var uLocal_157 = 0;
var uLocal_158 = 0;
var uLocal_159 = 0;
var uLocal_160 = 0;
var uLocal_161 = 0;
var uLocal_162 = 0;
var uLocal_163 = 0;
var uLocal_164 = 0;
var uLocal_165 = 0;
var uLocal_166 = 0;
var uLocal_167 = 0;
var uLocal_168 = 0;
var uLocal_169 = 0;
var uLocal_170 = 0;
var uLocal_171 = 0;
var uLocal_172 = 0;
var uLocal_173 = 0;
var uLocal_174 = 0;
var uLocal_175 = 0;
var uLocal_176 = 0;
var uLocal_177 = 0;
var uLocal_178 = 0;
var uLocal_179 = 0;
var uLocal_180 = 0;
var uLocal_181 = 0;
var uLocal_182 = 0;
var uLocal_183 = 0;
var uLocal_184 = 0;
var uLocal_185 = 0;
var uLocal_186 = 0;
var uLocal_187 = 0;
var uLocal_188 = 0;
var uLocal_189 = 0;
var uLocal_190 = 0;
var uLocal_191 = 0;
var uLocal_192 = 0;
var uLocal_193 = 0;
var uLocal_194 = 0;
var uLocal_195 = 0;
var uLocal_196 = 0;
var uLocal_197 = 0;
var uLocal_198 = 0;
var uLocal_199 = 0;
var uLocal_200 = 0;
var uLocal_201 = 0;
var uLocal_202 = 0;
var uLocal_203 = 0;
var uLocal_204 = 0;
var uLocal_205 = 0;
var uLocal_206 = 0;
var uLocal_207 = 0;
var uLocal_208 = 0;
var uLocal_209 = 0;
var uLocal_210 = 0;
var uLocal_211 = 0;
var uLocal_212 = 0;
var uLocal_213 = 0;
var uLocal_214 = 0;
var uLocal_215 = 0;
var uLocal_216 = 0;
var uLocal_217 = 0;
var uLocal_218 = 0;
var uLocal_219 = 0;
var uLocal_220 = 0;
var uLocal_221 = 0;
var uLocal_222 = 0;
var uLocal_223 = 0;
var uLocal_224 = 0;
var uLocal_225 = 0;
var uLocal_226 = 0;
var uLocal_227 = 0;
var uLocal_228 = 0;
var uLocal_229 = 0;
var uLocal_230 = 0;
var uLocal_231 = 0;
var uLocal_232 = 0;
var uLocal_233 = 0;
var uLocal_234 = 0;
var uLocal_235 = 0;
int iLocal_236 = 0;
int iLocal_237 = 0;
int iLocal_238 = 0;
var uLocal_239 = 0;
struct<57> Local_240 = { 0, 0, 0, -1281684762, 0, 0, -163714847, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
var uLocal_297 = 0;
struct<5> Local_298[2];
struct<21> ScriptParam_0 = { 0, -1, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, -1 } ;
#endregion
void __EntryFunction__()//Position - 0x0
{
iLocal_0 = 3;
iLocal_3 = 1;
iLocal_4 = 134;
iLocal_5 = 134;
iLocal_6 = 1;
iLocal_7 = 1;
iLocal_8 = 1;
iLocal_9 = 134;
iLocal_10 = 1;
iLocal_11 = 12;
iLocal_12 = 12;
fLocal_13 = 0.001f;
iLocal_16 = -1;
sLocal_19 = "NULL";
fLocal_22 = 80f;
fLocal_23 = 140f;
fLocal_24 = 180f;
fLocal_27 = 0f;
fLocal_31 = -0.0375f;
fLocal_32 = 0.17f;
iLocal_38 = 1;
iLocal_39 = 65;
iLocal_40 = 49;
iLocal_41 = 64;
if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
{
func_117(ScriptParam_0);
}
while (true)
{
func_116();
if (func_108())
{
func_104();
}
if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
{
func_103();
switch (func_102(NETWORK::PARTICIPANT_ID_TO_INT()))
{
case 0:
if (func_101() > 0)
{
Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/] = 2;
}
break;
case 2:
func_100();
if (func_101() == 3)
{
Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/] = 3;
}
break;
case 3:
func_104();
break;
}
if (NETWORK::NETWORK_IS_HOST_OF_THIS_SCRIPT())
{
switch (func_101())
{
case 0:
Local_240.f_0 = 2;
break;
case 2:
func_1();
break;
case 3:
break;
}
}
}
}
}
void func_1()//Position - 0x129
{
switch (Local_240.f_1)
{
case 0:
func_53();
break;
case 1:
func_52();
break;
}
if (Local_240.f_2.f_2 == 3 && iLocal_55 == 0)
{
Local_240.f_0 = 3;
}
func_45();
if (Local_240.f_53 && Local_240.f_50 < 10)
{
func_13();
}
if (Local_240.f_50 >= 10)
{
if (!func_12(&uLocal_67))
{
func_11(&uLocal_67, 0, 0);
}
else if (func_10(&uLocal_67, 10000, 0))
{
Local_240.f_0 = 3;
}
}
if (func_9())
{
Local_240.f_0 = 3;
}
if (!BitTest(Global_45253, 10))
{
if (Local_240.f_55 == 1)
{
if (!Local_240.f_56)
{
if (((!HUD::IS_HELP_MESSAGE_BEING_DISPLAYED() || func_8("AIRSTRIKE_1" /* GXT: Throw a Flare to mark an area for the Airstrike to hit. If you do not mark an area with a Flare before the jet arrives it will leave without deploying any bombs. */)) || func_8("AIRSTRIKE_2" /* GXT: JET RANGE */)) || func_8("AIRSTRIKE_4" /* GXT: Throw a flare to mark an area for the airstrike to hit. If you do not mark an area with a flare before the jet arrives it will leave without deploying any bombs. You cannot throw flares while piloting an air vehicle. */))
{
func_7("AIRSTRIKE_3" /* GXT: If you throw a flare in an interior the jet will not be able to see it and will not deploy any bombs. */, -1);
Local_240.f_56 = 1;
}
}
}
}
if (bLocal_50)
{
if (!func_4(PLAYER::PLAYER_ID(), 1, 0))
{
Local_240.f_0 = 3;
}
}
else if (func_4(PLAYER::PLAYER_ID(), 1, 0) || func_3())
{
Local_240.f_0 = 3;
}
if (CUTSCENE::IS_CUTSCENE_PLAYING())
{
Local_240.f_0 = 3;
}
if (Global_2708057.f_224 || func_2(PLAYER::PLAYER_ID()))
{
Local_240.f_0 = 3;
}
}
int func_2(int iParam0)//Position - 0x26A
{
int iVar0;
int iVar1;
if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
{
return 0;
}
if (iParam0 == PLAYER::PLAYER_ID())
{
return Global_2708056;
}
else
{
iVar0 = PLAYER::GET_PLAYER_PED(iParam0);
if (ENTITY::DOES_ENTITY_EXIST(iVar0))
{
iVar1 = ENTITY::GET_ENTITY_MODEL(iVar0);
if (iVar1 == joaat("MP_M_Freemode_01") || iVar1 == joaat("MP_F_Freemode_01"))
{
return 0;
}
else
{
return 1;
}
}
else
{
return 0;
}
}
return 0;
}
var func_3()//Position - 0x2D6
{
return BitTest(Global_1845281[PLAYER::PLAYER_ID() /*883*/].f_36.f_18, 0);
}
int func_4(int iParam0, bool bParam1, bool bParam2)//Position - 0x2EF
{
if (bParam1)
{
if (func_5(iParam0))
{
return 1;
}
}
if (!bParam2)
{
}
if (Global_1845281[iParam0 /*883*/] == -1)
{
return 0;
}
return 1;
}
bool func_5(int iParam0)//Position - 0x321
{
return func_6(iParam0);
}
var func_6(int iParam0)//Position - 0x32F
{
return BitTest(Global_1845281[iParam0 /*883*/].f_11.f_1, 0);
}
void func_7(char* sParam0, int iParam1)//Position - 0x346
{
HUD::BEGIN_TEXT_COMMAND_DISPLAY_HELP(sParam0);
HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, false, true, iParam1);
}
bool func_8(char* sParam0)//Position - 0x35D
{
HUD::BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(sParam0);
return HUD::END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
}
bool func_9()//Position - 0x370
{
return Global_1574582;
}
int func_10(var uParam0, int iParam1, bool bParam2)//Position - 0x37C
{
if (iParam1 == -1)
{
return 1;
}
func_11(uParam0, bParam2, 0);
if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !bParam2)
{
if (MISC::ABSI(NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), *uParam0)) >= iParam1)
{
return 1;
}
}
else if (MISC::ABSI(NETWORK::GET_TIME_DIFFERENCE(MISC::GET_GAME_TIMER(), *uParam0)) >= iParam1)
{
return 1;
}
return 0;
}
void func_11(var uParam0, bool bParam1, bool bParam2)//Position - 0x3DA
{
if (uParam0->f_1 == 0)
{
if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !bParam1)
{
if (!bParam2)
{
*uParam0 = NETWORK::GET_NETWORK_TIME();
}
else
{
*uParam0 = NETWORK::GET_NETWORK_TIME_ACCURATE();
}
}
else
{
*uParam0 = MISC::GET_GAME_TIMER();
}
uParam0->f_1 = 1;
}
}
bool func_12(var uParam0)//Position - 0x41F
{
return uParam0->f_1;
}
void func_13()//Position - 0x42B
{
int iVar0;
struct<3> Var1;
struct<3> Var4;
int iVar7;
iVar0 = PLAYER::PLAYER_PED_ID();
iVar7 = 200;
if (BitTest(Global_45253, 10))
{
iVar0 = 0;
iVar7 = 300;
}
if (func_44(Local_61))
{
if (func_42(Local_240.f_2))
{
Local_61 = { ENTITY::GET_ENTITY_COORDS(NETWORK::NET_TO_VEH(Local_240.f_2), true) };
Local_61.f_2 = (Local_61.f_2 - 5f);
}
}
switch (Local_240.f_50)
{
case 0:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), PLAYER::PLAYER_PED_ID(), true, false, -1f, iVar0, true, true, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
iLocal_55 = 1;
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
if (func_41())
{
if (func_38())
{
func_15(&uLocal_71, "HS4FAUD", "HS4F_SAAIP1", 12, 0, 0, 0);
}
}
}
}
else if (func_10(&(Local_240.f_51), 750, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 1:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 5f, 5f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 5f, 5f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
else if (func_10(&(Local_240.f_51), 500, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 2:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, -5f, -5f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, -5f, -5f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
else if (func_10(&(Local_240.f_51), 500, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 3:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 5f, -5f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 5f, -5f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
else if (func_10(&(Local_240.f_51), 750, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 4:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, -5f, 5f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, -5f, 5f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
else if (func_10(&(Local_240.f_51), 500, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 5:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 5f, 10f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 5f, 10f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
else if (func_10(&(Local_240.f_51), 750, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 6:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 10f, 10f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 10f, 10f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
else if (func_10(&(Local_240.f_51), 500, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 7:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, -10f, -10f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, -10f, -10f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
else if (func_10(&(Local_240.f_51), 500, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 8:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 10f, -10f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, 10f, -10f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
func_11(&(Local_240.f_51), 0, 0);
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
else if (func_10(&(Local_240.f_51), 500, 0))
{
func_14(&(Local_240.f_51));
Local_240.f_50++;
}
break;
case 9:
if (!func_12(&(Local_240.f_51)))
{
if (!BitTest(uLocal_239, Local_240.f_50))
{
Var1 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, -10f, 10f) };
Var1.f_2 = Local_61.f_2;
Var4 = { Local_298[NETWORK::PARTICIPANT_ID_TO_INT() /*5*/].f_2 + Vector(0f, -10f, 10f) };
Var4 = { Var4 + Vector(0f, 0.1f, 0.1f) };
MISC::GET_GROUND_Z_FOR_3D_COORD(Var4 + Vector(10f, 0f, 0f), &(Var4.f_2), false, false);
Var4.f_2 = (Var4.f_2 - 25f);
MISC::SHOOT_SINGLE_BULLET_BETWEEN_COORDS_IGNORE_ENTITY_NEW(Var1, Var4, iVar7, true, joaat("WEAPON_AIRSTRIKE_ROCKET"), NETWORK::NET_TO_PED(Local_240.f_2.f_3), true, false, -1f, iVar0, true, false, 0, false, 0, 0, 0);
Local_240.f_50++;
iLocal_55 = 0;
MISC::SET_BIT(&uLocal_239, Local_240.f_50);
}
}
break;
}
}
void func_14(var uParam0)//Position - 0xE26
{
uParam0->f_1 = 0;
}
int func_15(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0xE33
{
func_37(uParam0, 145, sParam1, iParam4, iParam5, iParam6);
if (iParam3 > 7)
{
if (iParam3 < 12)
{
iParam3 = 7;
}
}
Global_22293 = 0;
Global_22295 = 0;
Global_22300 = 0;
Global_23277 = 0;
Global_23279 = 0;
Global_23283 = 0;
Global_2883585 = 0;
return func_16(sParam2, iParam3, 0);
}
int func_16(char* sParam0, int iParam1, bool bParam2)//Position - 0xE81
{
Global_22287 = 0;
if (Global_22286 == 0 || Global_22288 == 2)
{
if (Global_22286 != 0)
{
if (iParam1 > Global_22288)
{
if (Global_22293 == 0)
{
AUDIO::STOP_SCRIPTED_CONVERSATION(false);
Global_20930.f_1 = 3;
Global_22286 = 0;
Global_22287 = 1;
Global_22339 = 0;
Global_22282 = 0;
Global_22283 = 0;
Global_22297 = 0;
Global_22296 = 0;
Global_20929 = 0;
}
else
{
func_36();
return 0;
}
}
else
{
return 0;
}
}
if (AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
{
return 0;
}
if (func_35(8, -1))
{
return 0;
}
Global_22362 = { Global_22356 };
func_34();
Global_21575 = { Global_21740 };
Global_22292 = Global_22293;
Global_22299 = Global_22300;
Global_2883586 = Global_2883585;
Global_22301 = { Global_22317 };
Global_22294 = Global_22295;
Global_23276 = Global_23277;
Global_23284 = { Global_23290 };
Global_23278 = Global_23279;
Global_23280 = Global_23281;
Global_23282 = Global_23283;
Global_21905.f_370 = Global_23275;
Global_21905.f_368 = Global_23273;
Global_21905.f_369 = Global_23274;
Global_22282 = Global_22283;
if (Global_22292)
{
MISC::CLEAR_BIT(&Global_8800, 20);
MISC::CLEAR_BIT(&Global_8801, 17);
MISC::CLEAR_BIT(&Global_8802, 0);
if (bParam2)
{
func_26();
if (Global_9605[Global_20930 /*2811*/][0 /*281*/].f_259 == 2)
{
if (iParam1 == 13)
{
}
else
{
return 0;
}
}
if (Global_20930.f_1 > 3)
{
return 0;
}
}
if (Global_20896 == 1)
{
return 0;
}
if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
{
if (PED::IS_PED_IN_MELEE_COMBAT(PLAYER::PLAYER_PED_ID()))
{
return 0;
}
if (func_25())
{
return 0;
}
if (TASK::IS_PED_SPRINTING(PLAYER::PLAYER_PED_ID()))
{
return 0;
}
if (PED::IS_PED_RAGDOLL(PLAYER::PLAYER_PED_ID()))
{
return 0;
}
if (PED::IS_PED_IN_PARACHUTE_FREE_FALL(PLAYER::PLAYER_PED_ID()))
{
return 0;
}
if (WEAPON::GET_IS_PED_GADGET_EQUIPPED(PLAYER::PLAYER_PED_ID(), joaat("GADGET_PARACHUTE")))
{
return 0;
}
if (!Global_79389)
{
if (ENTITY::IS_ENTITY_IN_WATER(PLAYER::PLAYER_PED_ID()))
{
return 0;
}
if (PLAYER::IS_PLAYER_CLIMBING(PLAYER::PLAYER_ID()))
{
return 0;
}
if (PED::IS_PED_PLANTING_BOMB(PLAYER::PLAYER_PED_ID()))
{
return 0;
}
if (PLAYER::IS_SPECIAL_ABILITY_ACTIVE(PLAYER::PLAYER_ID(), 0))
{
return 0;
}
}
}
if (func_24())
{
return 0;
}
else
{
switch (Global_20930.f_1)
{
case 7:
return 0;
break;
case 8:
return 0;
break;
case 9:
break;
case 10:
break;
default:
break;
}
if (BitTest(Global_8800, 9))
{
return 0;
}
}
func_23();
Global_22296 = bParam2;
}
Global_22288 = iParam1;
StringCopy(&Global_21905, sParam0, 24);
Global_21152 = 0;
func_22();
func_17();
return 1;
}
if (Global_22286 == 5)
{
return 0;
}
if (iParam1 < Global_22288 || iParam1 == Global_22288)
{
return 0;
}
if (iParam1 == 2)
{
}
else
{