-
Notifications
You must be signed in to change notification settings - Fork 6
/
am_prison.c4
1020 lines (971 loc) · 29.5 KB
/
am_prison.c4
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
// listener's C4 decompiler
void main() {
l_2 = 1;
l_3 = 134;
l_4 = 134;
l_5 = 1;
l_6 = 1;
l_7 = 1;
l_8 = 134;
l_9 = 1;
l_A = 12;
l_B = 12;
l_E = 0.001;
l_11 = -1;
l_14 = "NULL";
l_17 = 80.0;
l_18 = 140.0;
l_19 = 180.0;
l_1C = 0.0;
l_20 = -0.0375;
l_21 = 0.17;
l_24 = 3;
l_28 = 1;
l_29 = 65;
l_2A = 49;
l_2B = 64;
l_5B = (0.05 + 0.275) - 0.009999999999999998;
l_5E = -0.05;
l_5F = 0.9200000166893;
l_60 = 1.94;
l_61 = 2.99;
l_62 = 3.7;
if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) {
sub_172f(l_8C);
} else {
sub_1717();
}
while (1) {
sub_170a();
if (sub_1474() || NETWORK::NETWORK_IS_IN_TUTORIAL_SESSION()) {
sub_1717();
}
if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) {
if (sub_12f0()) {
sub_1717();
}
if ((!sub_12b8()) || sub_125a(PLAYER::PLAYER_ID(), 0)) {
if ((((((((!g_180268) && (!sub_1248(3))) && (!sub_11b0(PLAYER::PLAYER_ID(), 0))) && (!STREAMING::IS_PLAYER_SWITCH_IN_PROGRESS())) && PLAYER::IS_PLAYER_CONTROL_ON(PLAYER::PLAYER_ID())) && (!sub_115d(PLAYER::PLAYER_ID()))) && (!sub_1101(sub_113f(PLAYER::PLAYER_ID())))) && (!sub_10bd(PLAYER::PLAYER_ID(), 146))) {
if (sub_369(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0), 4, 100, 0)) {
if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID())) {
if (PED::IS_PED_IN_ANY_PLANE(PLAYER::PLAYER_PED_ID()) || PED::IS_PED_IN_ANY_HELI(PLAYER::PLAYER_PED_ID())) {
if (!sub_359(&l_87._f1)) {
sub_304(&l_87._f1);
} else if (sub_26d(&l_87._f1) > 20.0) {
if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) < 4) {
PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(), 36, PLAYER::GET_WANTED_LEVEL_THRESHOLD(4) - PLAYER::GET_WANTED_LEVEL_THRESHOLD(PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID())));
} else {
PLAYER::_DC64D2C53493ED12(PLAYER::PLAYER_ID());
}
}
} else if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) < 4) {
PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(), 36, PLAYER::GET_WANTED_LEVEL_THRESHOLD(4) - PLAYER::GET_WANTED_LEVEL_THRESHOLD(PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID())));
} else {
PLAYER::_DC64D2C53493ED12(PLAYER::PLAYER_ID());
}
} else if (sub_359(&l_87._f1)) {
sub_257(&l_87._f1);
}
}
}
}
} else {
sub_1717();
}
}
}
void sub_257(auto a_0) {
a_0._f1 = 0.0;
a_0._f2 = 0.0;
a_0 = 0;
}
auto sub_26d(auto a_0) {
if (sub_359(a_0)) {
if (sub_2f4(a_0)) {
return a_0._f2;
} else {
return sub_2ac(GAMEPLAY::IS_BIT_SET(a_0, 4)) - a_0._f1;
}
} else {
return a_0._f1;
}
}
auto sub_2ac(auto a_0) {
if (a_0) {
return __678_$BBDA792448DB5A89(GAMEPLAY::GET_GAME_TIMER()) / 1000.0;
}
if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) {
v_3 = NETWORK::GET_NETWORK_TIME();
return __678_$BBDA792448DB5A89(v_3) / 1000.0;
}
return __678_$BBDA792448DB5A89(GAMEPLAY::GET_GAME_TIMER()) / 1000.0;
}
auto sub_2f4(auto a_0) {
return GAMEPLAY::IS_BIT_SET(a_0, 2);
}
void sub_304(auto a_0) {
if (!sub_359(a_0)) {
sub_31c(a_0);
}
}
void sub_31c(auto a_0) {
sub_32b(a_0, 0.0);
}
void sub_32b(auto a_0, auto a_1) {
a_0._f1 = sub_2ac(GAMEPLAY::IS_BIT_SET(a_0, 4)) - a_1;
GAMEPLAY::SET_BIT(a_0, 1);
GAMEPLAY::CLEAR_BIT(a_0, 2);
a_0._f2 = 0.0;
}
auto sub_359(auto a_0) {
return GAMEPLAY::IS_BIT_SET(a_0, 1);
}
auto sub_369(auto a_0, auto a_1, auto a_2, auto a_3, auto a_4, auto a_5) {
asm .vardef<F> 8, "[{\"offset\":0,\"value\":15}]"
asm .vardef<F> 0x36, "[{\"offset\":0,\"value\":15}]"
asm .vardef<F> 0x64, "[{\"offset\":0,\"value\":15}]"
v_76 = 0;
switch (a_3) {
case 1:
v_8[0/*3*/]/*{3}*/ = {-1332.2113037109375, 100.46083068847656, 40.38437271118164 };
v_36[0/*3*/]/*{3}*/ = {-1094.2381591796875, 148.427444458, 73.0 };
v_64[0/*1*/] = 171.25;
v_8[1/*3*/]/*{3}*/ = {-999.734375, -110.22309112548828, 25.257057189941406 };
v_36[1/*3*/]/*{3}*/ = {-1149.4937744140625, 109.25582885742188, 73.0 };
v_64[1/*1*/] = 132.0;
v_8[2/*3*/]/*{3}*/ = {-1035.1129150390625, -84.95885467529297, 28.2746 };
v_36[2/*3*/]/*{3}*/ = {-1261.1031494140625, 50.08148193359375, 73.0 };
v_64[2/*1*/] = 132.0;
v_74 = 3;
break;
case 2:
v_8[0/*3*/]/*{3}*/ = {-804.3438720703125, -3346.5, 10.0 };
v_36[0/*3*/]/*{3}*/ = {-1816.953857421875, -2768.893310546875, (float)(250 + a_4) };
v_64[0/*1*/] = 247.0;
v_8[1/*3*/]/*{3}*/ = {-1911.4879150390625, -2934.197021484375, 10.0 };
v_36[1/*3*/]/*{3}*/ = {-968.6235961914062, -3477.74755859375, (float)(250 + a_4) };
v_64[1/*1*/] = 149.0;
v_8[2/*3*/]/*{3}*/ = {-844.9432983398438, -2802.78515625, 10.0 };
v_36[2/*3*/]/*{3}*/ = {-1011.0810546875, -3086.90380859375, (float)(250 + a_4) };
v_64[2/*1*/] = 185.5;
v_8[3/*3*/]/*{3}*/ = {-1021.0861206054688, -2952.277099609375, 10.0 };
v_36[3/*3*/]/*{3}*/ = {-1599.0081787109375, -2616.2705078125, (float)(250 + a_4) };
v_64[3/*1*/] = 250.0;
v_8[4/*3*/]/*{3}*/ = {-1027.1363525390625, -2436.45703125, 10.0 };
v_36[4/*3*/]/*{3}*/ = {-1392.6104736328125, -2226.763427734375, (float)(250 + a_4) };
v_64[4/*1*/] = 193.5;
v_8[5/*3*/]/*{3}*/ = {-1497.54931640625, -2408.712158203125, 10.0 };
v_36[5/*3*/]/*{3}*/ = {-1136.9173583984375, -2617.95458984375, (float)(250 + a_4) };
v_64[5/*1*/] = 234.5;
v_8[6/*3*/]/*{3}*/ = {-982.7923583984375, -2831.708740234375, 12.933130264282227 };
v_36[6/*3*/]/*{3}*/ = {-966.4676513671875, -2803.458, 16.683130264282227 };
v_64[6/*1*/] = 16.0;
v_8[7/*3*/]/*{3}*/ = {-1110.0831298828125, -3496.8056640625, 12.0 };
v_36[7/*3*/]/*{3}*/ = {-1955.2982177734375, -3010.431396484375, (float)(250 + a_4) };
v_64[7/*1*/] = 80.0;
v_8[8/*3*/]/*{3}*/ = {-1886.8994140625, -3193.023681640625, 12.0 };
v_36[8/*3*/]/*{3}*/ = {-1836.1429443359375, -3105.268310546875, (float)(250 + a_4) };
v_64[8/*1*/] = 142.0;
v_8[9/*3*/]/*{3}*/ = {-1134.336669921875, -3535.648193359375, 12.0 };
v_36[9/*3*/]/*{3}*/ = {-1259.6485595703125, -3463.486328125, (float)(250 + a_4) };
v_64[9/*1*/] = 30.75;
v_8[10/*3*/]/*{3}*/ = {-969.1278686523438, -3463.8994140625, 12.0 };
v_36[10/*3*/]/*{3}*/ = {-896.3734130859375, -3505.71484375, (float)(250 + a_4) };
v_64[10/*1*/] = 150.0;
v_8[11/*3*/]/*{3}*/ = {-1369.491333, -2173.578857421875, 10.0 };
v_36[11/*3*/]/*{3}*/ = {-1685.6256103515625, -2720.363525390625, (float)(250 + a_4) };
v_64[11/*1*/] = 29.25;
v_8[12/*3*/]/*{3}*/ = {-1010.9255981445312, -3550.943359375, 10.0 };
v_36[12/*3*/]/*{3}*/ = {-1110.19775390625, -3493.6171875, (float)(250 + a_4) };
v_64[12/*1*/] = 43.0;
v_74 = 13;
break;
case 3:
v_8[0/*3*/]/*{3}*/ = {-1773.9439697265625, 3287.334228515625, 30.0 };
v_36[0/*3*/]/*{3}*/ = {-2029.7764892578125, 2845.083251953125, (float)(250 + a_4) };
v_64[0/*1*/] = 250.0;
v_8[1/*3*/]/*{3}*/ = {-2725.889404296875, 3291.0986328125, 30.0 };
v_36[1/*3*/]/*{3}*/ = {-2009.1815185546875, 2879.835205078125, (float)(250 + a_4) };
v_64[1/*1*/] = 180.0;
v_8[2/*3*/]/*{3}*/ = {-2442.026123046875, 3326.69873046875, 30.0 };
v_36[2/*3*/]/*{3}*/ = {-2033.9278564453125, 3089.048828125, (float)(250 + a_4) };
v_64[2/*1*/] = 200.0;
v_8[3/*3*/]/*{3}*/ = {-1917.1654052734375, 3374.208984375, 30.0 };
v_36[3/*3*/]/*{3}*/ = {-2016.7908935546875, 3195.05810546875, (float)(250 + a_4) };
v_64[3/*1*/] = 86.25;
v_8[4/*3*/]/*{3}*/ = {-2192.7529296875, 3373.27783203125, 30.0 };
v_36[4/*3*/]/*{3}*/ = {-2191.54443359375, 3150.41650390625, (float)(250 + a_4) };
v_64[4/*1*/] = 140.5;
v_8[5/*3*/]/*{3}*/ = {-2077.66333, 3344.51416015625, 30.0 };
v_36[5/*3*/]/*{3}*/ = {-2191.54443359375, 3150.41650390625, (float)(250 + a_4) };
v_64[5/*1*/] = 140.5;
v_8[6/*3*/]/*{3}*/ = {-2861.75537109375, 3352.66064453125, 30.0 };
v_36[6/*3*/]/*{3}*/ = {-2715.870849609375, 3269.91552734375, (float)(250 + a_4) };
v_64[6/*1*/] = 90.0;
v_8[7/*3*/]/*{3}*/ = {-2005.574462890625, 3364.53271484375, 30.0 };
v_36[7/*3*/]/*{3}*/ = {-1977.56884765625, 3330.88818359375, (float)(250 + a_4) };
v_64[7/*1*/] = 100.0;
v_8[8/*3*/]/*{3}*/ = {-1682.2349853515625, 3004.28515625, 30.0 };
v_36[8/*3*/]/*{3}*/ = {-1942.7469482421875, 2947.441162109375, (float)(250 + a_4) };
v_64[8/*1*/] = 248.75;
v_8[9/*3*/]/*{3}*/ = {-2393.29541015625, 2936.406, 31.680103302 };
v_36[9/*3*/]/*{3}*/ = {-2453.03662109375, 3006.863037109375, 52.31 };
v_64[9/*1*/] = 128.0;
v_8[10/*3*/]/*{3}*/ = {-2347.184814453125, 3023.829833984375, 31.56572914123535 };
v_36[10/*3*/]/*{3}*/ = {-2517.329833984375, 2989.0634765625, 49.956443786621094 };
v_64[10/*1*/] = 127.25;
v_8[11/*3*/]/*{3}*/ = {-2259.921875, 3358.039794921875, 30 };
v_36[11/*3*/]/*{3}*/ = {-2299.77197265625, 3385.79, 38.060142517089844 };
v_64[11/*1*/] = 16.0;
v_8[12/*3*/]/*{3}*/ = {-2476.309326171875, 3363.9140625, 31.67932891845703 };
v_36[12/*3*/]/*{3}*/ = {-2431.980712890625, 3287.66943359375, 39.97826385498047 };
v_64[12/*1*/] = 214.25;
v_8[13/*3*/]/*{3}*/ = {-2103.081298828125, 2797.783447265625, 29.378639221191406 };
v_36[13/*3*/]/*{3}*/ = {-2096.8212890625, 2874.42333984375, 57.80989074707031 };
v_64[13/*1*/] = 65.75;
if (a_5) {
v_77 = a_4;
} else {
v_77 = 0;
}
v_36[9/*3*/]._f2 += (float)v_77;
v_36[10/*3*/]._f2 += (float)v_77;
v_36[11/*3*/]._f2 += (float)v_77;
v_36[12/*3*/]._f2 += (float)v_77;
v_36[13/*3*/]._f2 += (float)v_77;
v_74 = 14;
break;
case 4:
v_8[0/*3*/]/*{3}*/ = {1541.607177734375, 2527.554931640625, 40.0 };
v_36[0/*3*/]/*{3}*/ = {1815.5753173828125, 2535.0595703125, (float)(150 + a_4) };
v_64[0/*1*/] = 114.0;
v_8[1/*3*/]/*{3}*/ = {1788.878662109375, 2445.727294921875, 40.0 };
v_36[1/*3*/]/*{3}*/ = {1716.9603271484375, 2502.95703125, (float)(150 + a_4) };
v_64[1/*1*/] = 88.5;
v_8[2/*3*/]/*{3}*/ = {1601.157470703125, 2436.244140625, 40.0 };
v_36[2/*3*/]/*{3}*/ = {1650.07763671875, 2515.922607421875, (float)(150 + a_4) };
v_64[2/*1*/] = 133.25;
v_8[3/*3*/]/*{3}*/ = {1706.3306884765625, 2407.59716796875, 40.0 };
v_36[3/*3*/]/*{3}*/ = {1698.5545654296875, 2460.207763671875, (float)(150 + a_4) };
v_64[3/*1*/] = 104.5;
v_8[4/*3*/]/*{3}*/ = {1712.45166015625, 2756.217529296875, 40.0 };
v_36[4/*3*/]/*{3}*/ = {1718.84765625, 2589.16162109375, (float)(150 + a_4) };
v_64[4/*1*/] = 121.75;
v_8[5/*3*/]/*{3}*/ = {1830.227783203125, 2661.240234375, 40.0 };
v_36[5/*3*/]/*{3}*/ = {1774.8123779296875, 2679.418701171875, (float)(150 + a_4) };
v_64[5/*1*/] = 84.5;
v_8[6/*3*/]/*{3}*/ = {1559.05029296875, 2632.220458984375, 40.0 };
v_36[6/*3*/]/*{3}*/ = {1657.208251953125, 2595.484375, (float)(150 + a_4) };
v_64[6/*1*/] = 103.75;
v_8[7/*3*/]/*{3}*/ = {1612.0208740234375, 2716.868896484375, 40.0 };
v_36[7/*3*/]/*{3}*/ = {1657.1646728515625, 2669.720947265625, (float)(150 + a_4) };
v_64[7/*1*/] = 104.25;
v_8[8/*3*/]/*{3}*/ = {1809.8720703125, 2729.826904296875, 40.0 };
v_36[8/*3*/]/*{3}*/ = {1789.8551025390625, 2705.036865234375, (float)(150 + a_4) };
v_64[8/*1*/] = 91.0;
v_8[9/*3*/]/*{3}*/ = {1818.788818359375, 2605.94775390625, 40.0 };
v_36[9/*3*/]/*{3}*/ = {1783.1142578125, 2606.783203125, (float)(150 + a_4) };
v_64[9/*1*/] = 51.25;
v_74 = 10;
break;
case 5:
v_8[0/*3*/]/*{3}*/ = {3411.001953125, 3663.1845703125, 20.0 };
v_36[0/*3*/]/*{3}*/ = {3615.583, 3626.193603515625, (float)(40 + a_4) };
v_64[0/*1*/] = 45.75;
v_8[1/*3*/]/*{3}*/ = {3426.659912109375, 3733.077880859375, 20.0 };
v_36[1/*3*/]/*{3}*/ = {3643.8, 3694.36181640625, (float)(40 + a_4) };
v_64[1/*1*/] = 99.0;
v_8[2/*3*/]/*{3}*/ = {3446.036376953125, 3795.688232421875, 20.0 };
v_36[2/*3*/]/*{3}*/ = {3650.914306640625, 3766.151611328125, (float)(40 + a_4) };
v_64[2/*1*/] = 81.5;
v_74 = 3;
break;
case 6:
v_8[0/*3*/]/*{3}*/ = {526.0530395507812, -3391.496826171875, -10.0 };
v_36[0/*3*/]/*{3}*/ = {523.2289428710938, -3118.677978515625, (float)(10 + a_4) };
v_64[0/*1*/] = 120.0;
v_8[1/*3*/]/*{3}*/ = {459.439697265625, -3199.989501953125, 4.819675922393799 };
v_36[1/*3*/]/*{3}*/ = {593.8927612304688, -3199.998046875, 30.069255828857422 };
v_64[1/*1*/] = 170.0;
v_8[2/*3*/]/*{3}*/ = {552.8466796875, -3111.0537109375, 4.819394111633301 };
v_36[2/*3*/]/*{3}*/ = {585.313720703125, -3111.84423828125, 17.569231033325195 };
v_64[2/*1*/] = 12.5;
v_8[3/*3*/]/*{3}*/ = {598.466552734375, -3140.1474609375, 4.819256782531738 };
v_36[3/*3*/]/*{3}*/ = {597.497314453125, -3117.062744140625, 17.319257736206055 };
v_64[3/*1*/] = 9.75;
v_74 = 4;
break;
case 7:
v_8[0/*3*/]/*{3}*/ = {-1108.5496826171875, -570.8797607421875, 20.0 };
v_36[0/*3*/]/*{3}*/ = {-1187.810791015625, -477.503662109375, (float)(50 + a_4) };
v_64[0/*1*/] = 162.0;
v_8[1/*3*/]/*{3}*/ = {-1201.3775634765625, -485.9673156738281, 20.0 };
v_36[1/*3*/]/*{3}*/ = {-1215.7958984375, -464.82806396484375, (float)(50 + a_4) };
v_64[1/*1*/] = 124.0;
v_8[2/*3*/]/*{3}*/ = {-985.631103515625, -525.42333984375, 20.0 };
v_36[2/*3*/]/*{3}*/ = {-1013.3931884765625, -475.20574951171875, (float)(50 + a_4) };
v_64[2/*1*/] = 55.0;
v_8[3/*3*/]/*{3}*/ = {-1055.8492431640625, -477.8226013183594, 20.0 };
v_36[3/*3*/]/*{3}*/ = {-1073.33251953125, -498.7170104980469, (float)(50 + a_4) };
v_64[3/*1*/] = 142.0;
v_74 = 4;
break;
case 8:
v_8[0/*3*/]/*{3}*/ = {461.5683898925781, -984.5719604492188, 29.43950843811035 };
v_36[0/*3*/]/*{3}*/ = {471.17, -984.42919921875, 40.142120361328125 };
v_64[0/*1*/] = 7.75;
v_8[1/*3*/]/*{3}*/ = {457.34039306640625, -984.7560424804688, 34.43950653076172 };
v_36[1/*3*/]/*{3}*/ = {457.2083740234375, -993.7189331054688, 29.389583587646484 };
v_64[1/*1*/] = 14.75;
v_8[2/*3*/]/*{3}*/ = {477.6226806640625, -986.6, 40.0081901550293 };
v_36[2/*3*/]/*{3}*/ = {424.86871337890625, -986.327880859375, 48.712406158447266 };
v_64[2/*1*/] = 31.5;
v_8[3/*3*/]/*{3}*/ = {474.3889465332031, -974.4613037109375, 39.5576057434082 };
v_36[3/*3*/]/*{3}*/ = {474.0357971191406, -1021.9721069335938, 49.1 };
v_64[3/*1*/] = 30.5;
v_8[4/*3*/]/*{3}*/ = {442.1768493652344, -974.1887817382812, 29.68950843811035 };
v_36[4/*3*/]/*{3}*/ = {442.1855163574219, -979.863525390625, 33.43950653076172 };
v_64[4/*1*/] = 6.75;
v_74 = 5;
break;
}
for (v_75 = 0; v_75 < v_74; v_75 += 1) {
if (OBJECT::IS_POINT_IN_ANGLED_AREA(a_0, v_8[v_75/*3*/], v_36[v_75/*3*/], v_64[v_75/*1*/], v_76, 1)) {
return 1;
}
}
return 0;
}
auto sub_10bd(auto a_0, auto a_1) {
if (g_188C6B[a_0/*109*/] == a_1) {
return sub_10dc(a_0);
}
return 0;
}
auto sub_10dc(auto a_0) {
v_3 = a_0;
if (v_3 != -1) {
return GAMEPLAY::IS_BIT_SET(g_188C6B[v_3/*109*/]._f1, 0);
}
return 0;
}
auto sub_1101(auto a_0) {
switch (a_0) {
case 129:
case 136:
case 144:
return 1;
case 141:
if (sub_10dc(PLAYER::PLAYER_ID())) {
return 1;
}
break;
}
return 0;
}
auto sub_113f(auto a_0) {
v_3 = a_0;
if (v_3 != -1) {
return g_188C6B[v_3/*109*/];
}
return -1;
}
auto sub_115d(auto a_0) {
if (sub_11b0(a_0, 0)) {
return 1;
}
if (sub_119f()) {
if (a_0 == PLAYER::PLAYER_ID()) {
return 1;
}
}
if (GAMEPLAY::IS_BIT_SET(g_24E1AF[a_0/*306*/]._fC2, 2)) {
return 1;
}
return 0;
}
auto sub_119f() {
return GAMEPLAY::IS_BIT_SET(g_240005, 3);
}
auto sub_11b0(auto a_0, auto a_1) {
if (a_0 == PLAYER::PLAYER_ID()) {
v_4 = sub_11fb(-1, 0) == 8;
} else {
v_4 = g_1837E7[a_0/*410*/]._fC0 == 8;
}
if (a_1 == 1) {
if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(a_0)) {
v_4 = PLAYER::GET_PLAYER_TEAM(a_0) == 8;
}
}
return v_4;
}
auto sub_11fb(auto a_0, auto a_1) {
v_5 = a_0;
if (v_5 == -1) {
v_5 = sub_123c();
}
if (g_141431[v_5/*1*/] == 1) {
if (a_1) {}
v_4 = 8;
} else {
v_4 = g_1407E4[v_5/*1*/];
if (a_1) {}
}
return v_4;
}
auto sub_123c() {
return g_1407EA;
}
auto sub_1248(auto a_0) {
return GAMEPLAY::IS_BIT_SET(g_180267, a_0);
}
auto sub_125a(auto a_0, auto a_1) {
if (g_1406BF != 0) {
return 0;
}
if (!sub_1293(a_0)) {
return 0;
}
v_4 = a_0;
if (g_1837E7[v_4/*410*/] == a_1) {
return 1;
}
return 0;
}
auto sub_1293(auto a_0) {
if (a_0 == -1) {
return 0;
} else {
return GAMEPLAY::IS_BIT_SET(g_2507F3._f1, a_0);
}
return 1;
}
auto sub_12b8() {
if (g_1406BF != 0) {
return 0;
}
if (!sub_1293(PLAYER::PLAYER_ID())) {
return 0;
}
if (g_1837E7[PLAYER::PLAYER_ID()/*410*/] == -1) {
return 0;
}
return 1;
}
auto sub_12f0() {
v_2 = 0;
if (NETWORK::NETWORK_IS_HOST_OF_THIS_SCRIPT()) {
if (sub_13f7()) {
v_2 = 1;
}
}
if (sub_1318()) {
v_2 = 1;
}
return v_2;
}
auto sub_1318() {
switch (l_87) {
case 0:
if (g_180268 || sub_1248(3)) {
l_87._f4 = PED::ADD_SCENARIO_BLOCKING_AREA(1413.7027587890625, 2341.516845703125, -232.3945, 2016.20947265625, 2998.89306640625, 161.0299072265625, 0, 1, 1, 1);
}
sub_13d6(&l_66[NETWORK::PARTICIPANT_ID_TO_INT()/*1*/], 1);
l_87 = 1;
break;
case 1:
if (SYSTEM::VDIST2(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0), 1693.16357421875, 2559.6162109375, 44.56489944458) >= 1030225.0) {
l_87 = 2;
}
break;
case 2:
if (g_180268 || sub_1248(3)) {
PED::REMOVE_SCENARIO_BLOCKING_AREA(l_87._f4, 0);
}
return 1;
break;
}
return 0;
}
void sub_13d6(auto a_0, auto a_1) {
sub_13e6(a_0, a_1);
}
void sub_13e6(auto a_0, auto a_1) {
a_0 |= a_1;
}
auto sub_13f7() {
switch (l_64) {
case 0:
l_64 = 1;
break;
case 1:
if (sub_1433()) {
l_64 = 2;
}
break;
case 2:
return 1;
break;
}
return 0;
}
auto sub_1433() {
if (NETWORK::NETWORK_GET_NUM_PARTICIPANTS() > 1) {
return 0;
}
if (SYSTEM::VDIST2(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0), 1693.16357421875, 2559.6162109375, 44.56489944458) >= 1030225.0) {
return 1;
} else {
return 0;
}
}
auto sub_1474() {
sub_1587(&v_2);
if (v_2) {
return 1;
}
if (g_14142E == 0) {
if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) {
return 1;
}
}
if (sub_1578()) {
return 1;
}
if (g_254824) {
return 1;
}
if (sub_156c()) {
return 1;
}
if (sub_1555(157)) {
if (!sub_1546()) {
return 1;
}
}
if (sub_1555(155)) {
return 1;
}
if (!NETWORK::NETWORK_IS_SIGNED_ONLINE()) {
return 1;
}
if (sub_1507() != 0) {
if (SCRIPT::_GET_NUMBER_OF_INSTANCES_OF_STREAMED_SCRIPT(sub_1507()) == 0) {
return 1;
}
}
return 0;
}
auto sub_1507() {
switch (sub_153b()) {
case 0:
return ${freemode};
break;
case 2:
return ${creator};
break;
}
return 0;
}
auto sub_153b() {
return g_621B;
}
auto sub_1546() {
return g_25204A._f23E;
}
auto sub_1555(auto a_0) {
if (SCRIPT::GET_EVENT_EXISTS(1, a_0)) {
return 1;
}
return 0;
}
auto sub_156c() {
return g_2540A5;
}
auto sub_1578() {
return g_25204A._f239;
}
void sub_1587(auto a_0) {
for (v_3 = 0; v_3 < SCRIPT::GET_NUMBER_OF_EVENTS(1); v_3 += 1) {
v_4 = SCRIPT::GET_EVENT_AT_INDEX(1, v_3);
if (v_4 == 168) {
SCRIPT::GET_EVENT_DATA(1, v_3, &v_5, 2);
switch (v_5) {
case 325:
sub_15f7(v_3);
break;
case 2:
SCRIPT::GET_EVENT_DATA(1, v_3, &v_7, 3);
if (v_7._f2 == 55) {
a_0 = 1;
}
break;
}
}
}
}
void sub_15f7(auto a_0) {
if (SCRIPT::GET_EVENT_DATA(1, a_0, &v_3, 3)) {
if (sub_16c6(v_3._f1, 1, 1)) {
v_6 = PLAYER::GET_PLAYER_PED(v_3._f1);
if (ENTITY::DOES_ENTITY_EXIST(v_6)) {
if (PED::IS_PED_IN_ANY_VEHICLE(v_6, 0)) {
v_7 = PED::GET_VEHICLE_PED_IS_IN(v_6, 0);
if (VEHICLE::IS_VEHICLE_WINDOW_INTACT(v_7, v_3._f2) && NETWORK::NETWORK_GET_THIS_SCRIPT_IS_NETWORK_SCRIPT()) {
if (sub_1678(v_7, &v_8)) {
VEHICLE::REMOVE_VEHICLE_WINDOW(v_7, v_3._f2);
}
if (v_8) {
ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&v_7);
}
}
}
}
}
} else { }
}
auto sub_1678(auto a_0, auto a_1) {
if (ENTITY::DOES_ENTITY_EXIST(a_0)) {
if (!ENTITY::IS_ENTITY_A_MISSION_ENTITY(a_0)) {
if (NETWORK::NETWORK_GET_ENTITY_IS_LOCAL(a_0)) {
ENTITY::SET_ENTITY_AS_MISSION_ENTITY(a_0, 0, 1);
a_1 = 1;
}
}
if (ENTITY::DOES_ENTITY_BELONG_TO_THIS_SCRIPT(a_0, 0)) {
if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(a_0)) {
return 1;
}
} else { }
} else { }
return 0;
}
auto sub_16c6(auto a_0, auto a_1, auto a_2) {
v_5 = a_0;
if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(a_0)) {
if (a_1) {
if (!PLAYER::IS_PLAYER_PLAYING(a_0)) {
return 0;
}
}
if (a_2) {
if (!g_2507F3._f3[v_5/*1*/]) {
return 0;
}
}
return 1;
}
return 0;
}
void sub_170a() {
SYSTEM::WAIT(0);
}
void sub_1717() {
sub_1723();
}
void sub_1723() {
SCRIPT::TERMINATE_THIS_THREAD();
}
void sub_172f(auto a_0, auto a_1, auto a_2, auto a_3, auto a_4, auto a_5, auto a_6, auto a_7, auto a_8, auto a_9, auto a_10, auto a_11, auto a_12, auto a_13, auto a_14, auto a_15, auto a_16, auto a_17, auto a_18, auto a_19) {
sub_18f4(sub_1913(a_0), a_0);
sub_17d3(0, -1, 0);
NETWORK::NETWORK_REGISTER_HOST_BROADCAST_VARIABLES(&l_64, 2);
NETWORK::NETWORK_REGISTER_PLAYER_BROADCAST_VARIABLES(&l_66, 33);
GAMEPLAY::SET_THIS_SCRIPT_CAN_BE_PAUSED(0);
if (!sub_177a()) {
sub_1717();
}
if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(3)) {
sub_1717();
}
}
auto sub_177a() {
v_2 = 0;
while (1) {
v_2 += 1;
if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) {
return 0;
}
if (NETWORK::_5D10B3795F3FC886()) {
return 1;
}
if (sub_1578()) {
return 0;
}
if (sub_1555(155)) {
return 0;
}
if (v_2 >= 3600) {
return 0;
}
SYSTEM::WAIT(0);
}
return 0;
}
auto sub_17d3(auto a_0, auto a_1, auto a_2) {
v_5 = NETWORK::NETWORK_GET_SCRIPT_STATUS();
while (v_5 != 2) {
if ((((v_5 == 3) || (v_5 == 4)) || (v_5 == 5)) || (v_5 == 6)) {
if (!a_2) {
sub_1723();
} else {
return 0;
}
}
if (!sub_18e8()) {
if (a_0 == 0) {
if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) {
if (!a_2) {
sub_1723();
} else {
return 0;
}
}
if (sub_1578()) {
if (!a_2) {
sub_1723();
} else {
return 0;
}
}
if (sub_1555(155)) {
if (!a_2) {
sub_1723();
} else {
return 0;
}
}
} else if (!NETWORK::NETWORK_IS_IN_SESSION()) {
if (!a_2) {
sub_1723();
} else {
return 0;
}
}
}
SYSTEM::WAIT(0);
v_5 = NETWORK::NETWORK_GET_SCRIPT_STATUS();
}
if (a_1 > -1) {
g_1406F6 = v_5;
}
if (a_0 == 0) {
if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) {
if (!a_2) {
sub_1723();
} else {
return 0;
}
}
} else if (!NETWORK::NETWORK_IS_IN_SESSION()) {
if (!a_2) {
sub_1723();
} else {
return 0;
}
}
return 1;
}
auto sub_18e8() {
return g_14142E;
}
void sub_18f4(auto a_0, auto a_1, auto a_2, auto a_3, auto a_4, auto a_5, auto a_6, auto a_7, auto a_8, auto a_9, auto a_10, auto a_11, auto a_12, auto a_13, auto a_14, auto a_15, auto a_16, auto a_17, auto a_18, auto a_19, auto a_20) {
if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) {
sub_1723();
}
NETWORK::NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT(a_0, 0, a_1._f10);
}
auto sub_1913(auto a_0) {
switch (a_0) {
case 3:
return 2;
case 1:
return 32;
case 2:
return 32;
case 32:
return 32;
case 33:
return 32;
case 34:
return 32;
case 35:
return 32;
case 36:
return 32;
case 37:
return 32;
case 38:
return 32;
case 39:
return 32;
case 40:
return 32;
case 41:
return 32;
case 42:
return 32;
case 43:
return 32;
case 44:
return 32;
case 45:
return 32;
case 46:
return 32;
case 47:
return 32;
case 48:
return 32;
case 49:
return 32;
case 50:
return 4;
case 51:
return 32;
case 52:
return 32;
case 53:
return 32;
case 54:
return 32;
case 55:
return 32;
case 56:
return 32;
case 57:
return 32;
case 58:
return 32;
case 59:
return 32;
case 60:
return 32;
case 61:
return 32;
case 62:
return 32;
case 63:
return 32;
case 64:
return 4;
case 12:
return 32;
case 4:
return 16;
case 13:
return 32;
case 5:
return 16;
case 6:
return 2;
case 8:
return 2;
case 9:
return 2;
case 7:
return 16;
case 10:
return 2;
case 11:
return 4;
case 15:
return 32;
case 16:
return 32;
case 27:
return 2;
case 25:
return 2;
case 26:
return 2;
case 18:
return 32;
case 28:
return 32;
case 29:
return 2;
case 30:
return 32;
case 31:
return 32;
case 17:
return 2;
case 65:
return 32;
case 66:
return 32;
case 19:
return 32;
case 22:
return 32;
case 23:
return 32;
case 24:
return 32;
case 20:
return 2;
case 0:
return 0;
case 21:
return 32;
case 77:
return 32;
case 78:
return 32;
case 67:
return 32;
case 68:
return 32;
case 72:
return 32;
case 70:
return 32;
case 71:
return 32;
case 75:
return 32;
case 76:
return 32;
case 73:
return 32;
case 74:
return 32;
case 79:
return 32;
case 80:
return 32;
case 81:
return 32;
case 82:
return 32;
case 83:
return 2;
case 88:
return 1;
case 84:
return 2;
case 85:
return 4;
case 86: