forked from root-cause/v-decompiled-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
am_lester_cut.c
8689 lines (7584 loc) · 139 KB
/
am_lester_cut.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
var uLocal_0 = 0;
var uLocal_1 = 0;
int iLocal_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;
float fLocal_12 = 0f;
var uLocal_13 = 0;
var uLocal_14 = 0;
int iLocal_15 = 0;
char* sLocal_16 = NULL;
var uLocal_17 = 0;
var uLocal_18 = 0;
var uLocal_19 = 0;
var uLocal_20 = 0;
float fLocal_21 = 0f;
float fLocal_22 = 0f;
float fLocal_23 = 0f;
var uLocal_24 = 0;
var uLocal_25 = 0;
int iLocal_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;
int iLocal_37 = 0;
int iLocal_38 = 0;
int iLocal_39 = 0;
int iLocal_40 = 0;
var uLocal_41 = 0;
var uLocal_42 = 0;
var uLocal_43 = 0;
var uLocal_44 = 0;
var uLocal_45 = 0;
var uLocal_46 = 0;
var uLocal_47 = 0;
var uLocal_48 = 0;
var uLocal_49 = 0;
var uLocal_50 = 0;
var uLocal_51 = 0;
var uLocal_52 = 0;
var uLocal_53 = 0;
var uLocal_54 = 0;
var uLocal_55 = 0;
var uLocal_56 = 0;
var uLocal_57 = 0;
var uLocal_58 = 0;
float fLocal_59 = 0f;
var uLocal_60 = 0;
var uLocal_61 = 0;
var uLocal_62 = 0;
var uLocal_63 = 0;
var uLocal_64 = 0;
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 = 0;
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;
struct<4> Local_88 = { 0, 0, 0, 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 = 32;
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 = 32;
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;
int iLocal_167 = 0;
struct<3> Local_168[32];
int iLocal_265 = 0;
int iLocal_266 = 0;
int iLocal_267 = 0;
int iLocal_268 = 0;
int iLocal_269 = 0;
var uLocal_270 = 16;
var uLocal_271 = 0;
var uLocal_272 = 0;
var uLocal_273 = 0;
var uLocal_274 = 0;
var uLocal_275 = 0;
var uLocal_276 = 0;
var uLocal_277 = 0;
var uLocal_278 = 0;
var uLocal_279 = 0;
var uLocal_280 = 0;
var uLocal_281 = 0;
var uLocal_282 = 0;
var uLocal_283 = 0;
var uLocal_284 = 0;
var uLocal_285 = 0;
var uLocal_286 = 0;
var uLocal_287 = 0;
var uLocal_288 = 0;
var uLocal_289 = 0;
var uLocal_290 = 0;
var uLocal_291 = 0;
var uLocal_292 = 0;
var uLocal_293 = 0;
var uLocal_294 = 0;
var uLocal_295 = 0;
var uLocal_296 = 0;
var uLocal_297 = 0;
var uLocal_298 = 0;
var uLocal_299 = 0;
var uLocal_300 = 0;
var uLocal_301 = 0;
var uLocal_302 = 0;
var uLocal_303 = 0;
var uLocal_304 = 0;
var uLocal_305 = 0;
var uLocal_306 = 0;
var uLocal_307 = 0;
var uLocal_308 = 0;
var uLocal_309 = 0;
var uLocal_310 = 0;
var uLocal_311 = 0;
var uLocal_312 = 0;
var uLocal_313 = 0;
var uLocal_314 = 0;
var uLocal_315 = 0;
var uLocal_316 = 0;
var uLocal_317 = 0;
var uLocal_318 = 0;
var uLocal_319 = 0;
var uLocal_320 = 0;
var uLocal_321 = 0;
var uLocal_322 = 0;
var uLocal_323 = 0;
var uLocal_324 = 0;
var uLocal_325 = 0;
var uLocal_326 = 0;
var uLocal_327 = 0;
var uLocal_328 = 0;
var uLocal_329 = 0;
var uLocal_330 = 0;
var uLocal_331 = 0;
var uLocal_332 = 0;
var uLocal_333 = 0;
var uLocal_334 = 0;
var uLocal_335 = 0;
var uLocal_336 = 0;
var uLocal_337 = 0;
var uLocal_338 = 0;
var uLocal_339 = 0;
var uLocal_340 = 0;
var uLocal_341 = 0;
var uLocal_342 = 0;
var uLocal_343 = 0;
var uLocal_344 = 0;
var uLocal_345 = 0;
var uLocal_346 = 0;
var uLocal_347 = 0;
var uLocal_348 = 0;
var uLocal_349 = 0;
var uLocal_350 = 0;
var uLocal_351 = 0;
var uLocal_352 = 0;
var uLocal_353 = 0;
var uLocal_354 = 0;
var uLocal_355 = 0;
var uLocal_356 = 0;
var uLocal_357 = 0;
var uLocal_358 = 0;
var uLocal_359 = 0;
var uLocal_360 = 0;
var uLocal_361 = 0;
var uLocal_362 = 0;
var uLocal_363 = 0;
var uLocal_364 = 0;
var uLocal_365 = 0;
var uLocal_366 = 0;
var uLocal_367 = 0;
var uLocal_368 = 0;
var uLocal_369 = 0;
var uLocal_370 = 0;
var uLocal_371 = 0;
var uLocal_372 = 0;
var uLocal_373 = 0;
var uLocal_374 = 0;
var uLocal_375 = 0;
var uLocal_376 = 0;
var uLocal_377 = 0;
var uLocal_378 = 0;
var uLocal_379 = 0;
var uLocal_380 = 0;
var uLocal_381 = 0;
var uLocal_382 = 0;
var uLocal_383 = 0;
var uLocal_384 = 0;
var uLocal_385 = 0;
var uLocal_386 = 0;
var uLocal_387 = 0;
var uLocal_388 = 0;
var uLocal_389 = 0;
var uLocal_390 = 0;
var uLocal_391 = 0;
var uLocal_392 = 0;
var uLocal_393 = 0;
var uLocal_394 = 0;
var uLocal_395 = 0;
var uLocal_396 = 0;
var uLocal_397 = 0;
var uLocal_398 = 0;
var uLocal_399 = 0;
var uLocal_400 = 0;
var uLocal_401 = 0;
var uLocal_402 = 0;
var uLocal_403 = 0;
var uLocal_404 = 0;
var uLocal_405 = 0;
var uLocal_406 = 0;
var uLocal_407 = 0;
var uLocal_408 = 0;
var uLocal_409 = 0;
var uLocal_410 = 0;
var uLocal_411 = 0;
var uLocal_412 = 0;
var uLocal_413 = 0;
var uLocal_414 = 0;
var uLocal_415 = 0;
var uLocal_416 = 0;
var uLocal_417 = 0;
var uLocal_418 = 0;
var uLocal_419 = 0;
var uLocal_420 = 0;
var uLocal_421 = 0;
var uLocal_422 = 0;
var uLocal_423 = 0;
var uLocal_424 = 0;
var uLocal_425 = 0;
var uLocal_426 = 0;
var uLocal_427 = 0;
var uLocal_428 = 0;
var uLocal_429 = 0;
var uLocal_430 = 0;
var uLocal_431 = 0;
var uLocal_432 = 0;
var uLocal_433 = 0;
var uLocal_434 = 0;
bool bLocal_435 = 0;
bool bLocal_436 = 0;
var uLocal_437 = 0;
char* sLocal_438 = NULL;
int iLocal_439 = 0;
var uLocal_440 = 0;
var uLocal_441 = 0;
int iLocal_442 = 0;
int iLocal_443 = 0;
int iLocal_444 = 0;
int iLocal_445 = 0;
int iLocal_446 = 0;
var uLocal_447 = 0;
var uLocal_448 = 0;
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_2 = 1;
iLocal_3 = 134;
iLocal_4 = 134;
iLocal_5 = 1;
iLocal_6 = 1;
iLocal_7 = 1;
iLocal_8 = 134;
iLocal_9 = 1;
iLocal_10 = 12;
iLocal_11 = 12;
fLocal_12 = 0.001f;
iLocal_15 = -1;
sLocal_16 = "NULL";
fLocal_21 = 80f;
fLocal_22 = 140f;
fLocal_23 = 180f;
iLocal_26 = 3;
fLocal_27 = 0f;
fLocal_31 = -0.0375f;
fLocal_32 = 0.17f;
iLocal_37 = 1;
iLocal_38 = 65;
iLocal_39 = 49;
iLocal_40 = 64;
fLocal_59 = ((0.05f + 0.275f) - 0.01f);
bLocal_436 = true;
sLocal_438 = "MP_INTRO_MCS_13";
func_261(ScriptParam_0);
while (true)
{
func_260();
if (func_253())
{
func_249();
}
func_244(&Global_1927671);
switch (func_243(NETWORK::PARTICIPANT_ID_TO_INT()))
{
case 0:
if (func_242() == 2)
{
Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/] = 2;
}
else if (func_242() == 6)
{
Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/] = 5;
}
break;
case 2:
if (func_242() == 2)
{
if (!func_241(PLAYER::PLAYER_ID()))
{
func_19();
}
else if (HUD::DOES_BLIP_EXIST(Global_1927671))
{
func_12();
HUD::SET_BLIP_ROUTE(Global_1927671, false);
HUD::REMOVE_BLIP(&Global_1927671);
if (BitTest(uLocal_437, 3))
{
CUTSCENE::REMOVE_CUTSCENE();
}
MISC::SET_BIT(&(Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/].f_2), 0);
}
if (func_8(PLAYER::PLAYER_ID()))
{
Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/] = 3;
Global_2738587.f_1817 = 0;
}
}
else if (func_242() == 6)
{
Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/] = 5;
}
break;
case 5:
func_6(&(Local_88.f_3));
if (func_5(&(Local_88.f_3)))
{
Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/] = 6;
}
break;
case 3:
Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/] = 6;
case 6:
func_249();
break;
}
if (NETWORK::NETWORK_IS_HOST_OF_THIS_SCRIPT())
{
switch (func_242())
{
case 0:
Local_88.f_2 = -1;
Local_88.f_0 = 2;
break;
case 2:
func_3();
func_2();
if (func_1())
{
Local_88.f_0 = 6;
}
break;
case 6:
break;
}
}
}
}
int func_1()//Position - 0x205
{
if (BitTest(Local_88.f_1, 0))
{
return 1;
}
return 0;
}
void func_2()//Position - 0x21B
{
if (NETWORK::NETWORK_IS_HOST_OF_THIS_SCRIPT())
{
}
}
void func_3()//Position - 0x22A
{
int iVar0;
int iVar1;
if (NETWORK::NETWORK_IS_HOST_OF_THIS_SCRIPT())
{
if (iLocal_167 == 0)
{
MISC::CLEAR_BIT(&uLocal_437, 0);
MISC::SET_BIT(&uLocal_437, 1);
if (Local_88.f_2 != -1)
{
if (!NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(PLAYER::INT_TO_PARTICIPANTINDEX(Local_88.f_2)))
{
Local_88.f_2 = -1;
}
}
}
iVar0 = iLocal_167;
if (NETWORK::NETWORK_IS_PARTICIPANT_ACTIVE(iVar0))
{
iVar1 = NETWORK::NETWORK_GET_PLAYER_INDEX(iVar0);
if (!BitTest(Local_168[iLocal_167 /*3*/].f_2, 0))
{
MISC::CLEAR_BIT(&uLocal_437, 1);
}
if (func_4(iVar1, 0, 1))
{
if (BitTest(Local_168[iLocal_167 /*3*/].f_2, 1))
{
MISC::SET_BIT(&uLocal_437, 12);
if (Local_88.f_2 == -1)
{
if (Local_88.f_2 != iLocal_167)
{
Local_88.f_2 = iLocal_167;
}
}
}
else if (Local_88.f_2 == iLocal_167)
{
Local_88.f_2 = -1;
}
}
}
iLocal_167++;
if (iLocal_167 == 32)
{
if (BitTest(uLocal_437, 1))
{
MISC::SET_BIT(&(Local_88.f_1), 0);
}
if (!BitTest(uLocal_437, 12))
{
if (Local_88.f_2 != -1)
{
Local_88.f_2 = -1;
}
}
MISC::SET_BIT(&uLocal_437, 0);
iLocal_167 = 0;
}
}
}
int func_4(int iParam0, bool bParam1, bool bParam2)//Position - 0x320
{
int iVar0;
iVar0 = iParam0;
if (iVar0 != -1)
{
if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iParam0))
{
if (bParam1)
{
if (!PLAYER::IS_PLAYER_PLAYING(iParam0))
{
return 0;
}
}
if (bParam2)
{
if (iVar0 == Global_2672741.f_3)
{
return Global_2672741.f_2;
}
else if (Global_2657921[iVar0 /*463*/] != 4)
{
return 0;
}
}
return 1;
}
}
return 0;
}
int func_5(var uParam0)//Position - 0x380
{
if (uParam0->f_1)
{
if (MISC::ABSI(NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), *uParam0)) >= 1000)
{
return 1;
}
}
return 0;
}
void func_6(var uParam0)//Position - 0x3A9
{
if (!uParam0->f_1)
{
if (NETWORK::NETWORK_IS_HOST_OF_THIS_SCRIPT())
{
func_7(uParam0, 0, 0);
}
}
}
void func_7(var uParam0, bool bParam1, bool bParam2)//Position - 0x3C8
{
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;
}
}
int func_8(int iParam0)//Position - 0x40D
{
if (func_11(iParam0))
{
return 1;
}
if (func_9(iParam0))
{
return 1;
}
return 0;
}
int func_9(int iParam0)//Position - 0x430
{
int iVar0;
iVar0 = iParam0;
if (iVar0 != -1)
{
return func_10(iParam0, 9);
}
return 0;
}
var func_10(int iParam0, int iParam1)//Position - 0x44E
{
return BitTest(Global_1886967[iParam0 /*609*/].f_10.f_4, iParam1);
}
int func_11(var uParam0)//Position - 0x466
{
int iVar0;
iVar0 = uParam0;
if (iVar0 != -1)
{
return BitTest(Global_1886967[iVar0 /*609*/].f_1, 0);
}
return 0;
}
void func_12()//Position - 0x489
{
if (!func_18())
{
return;
}
if (!MISC::GET_HASH_KEY(SCRIPT::GET_THIS_SCRIPT_NAME()) == Global_1574764.f_9)
{
return;
}
func_13();
}
void func_13()//Position - 0x4B6
{
func_15();
func_14(0);
}
void func_14(bool bParam0)//Position - 0x4C7
{
bool bVar0;
bVar0 = NETWORK::NETWORK_IS_GAME_IN_PROGRESS();
Global_1574764 = 20;
StringCopy(&(Global_1574764.f_1), "", 32);
Global_1574764.f_9 = 0;
if (bVar0)
{
Global_1574764.f_10 = NETWORK::GET_NETWORK_TIME();
Global_1574764.f_11 = NETWORK::GET_NETWORK_TIME();
}
StringCopy(&(Global_1574764.f_12), "", 16);
StringCopy(&(Global_1574764.f_16), "", 64);
StringCopy(&(Global_1574764.f_32), "", 64);
Global_1574764.f_52 = 0;
Global_1574764.f_53 = 0;
Global_1574764.f_54 = 0;
Global_1574764.f_55 = -1;
Global_1574764.f_56 = 0;
Global_1574764.f_59 = 0;
if (bParam0)
{
return;
}
}
void func_15()//Position - 0x559
{
if (!func_17())
{
}
if (func_18())
{
HUD::BEGIN_TEXT_COMMAND_CLEAR_PRINT(&(Global_1574764.f_12));
func_16();
HUD::END_TEXT_COMMAND_CLEAR_PRINT();
}
}
void func_16()//Position - 0x582
{
switch (Global_1574764)
{
case 20:
return;
case 0:
return;
case 1:
HUD::ADD_TEXT_COMPONENT_INTEGER(Global_1574764.f_52);
return;
case 2:
HUD::ADD_TEXT_COMPONENT_INTEGER(Global_1574764.f_52);
HUD::ADD_TEXT_COMPONENT_INTEGER(Global_1574764.f_53);
return;
case 3:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_16));
return;
case 4:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_16));
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_32));
return;
case 5:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
return;
case 6:
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
return;
case 7:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_16));
return;
case 8:
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_16));
return;
case 9:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_KEYBOARD_DISPLAY(&(Global_1574764.f_16));
return;
case 10:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_32));
return;
case 12:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_32));
return;
case 13:
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_16));
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_57);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_32));
return;
case 11:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_KEYBOARD_DISPLAY(&(Global_1574764.f_16));
return;
case 14:
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_32));
return;
case 15:
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_57);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_32));
return;
case 17:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_32));
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_48));
return;
case 16:
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
return;
case 19:
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_16));
return;
case 18:
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_16));
HUD::SET_COLOUR_OF_NEXT_TEXT_COMPONENT(Global_1574764.f_56);
HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(&(Global_1574764.f_48));
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(&(Global_1574764.f_32));
return;
default:
}
}
bool func_17()//Position - 0x7F4
{
if (!func_18())
{
return 0;
}
HUD::BEGIN_TEXT_COMMAND_IS_MESSAGE_DISPLAYED(&(Global_1574764.f_12));
func_16();
return HUD::END_TEXT_COMMAND_IS_MESSAGE_DISPLAYED();
}
int func_18()//Position - 0x81A
{
if (Global_1574764 == 20)
{
return 0;
}
return 1;
}
void func_19()//Position - 0x830
{
int iVar0;
switch (Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/].f_1)
{
case 0:
if (!BitTest(uLocal_437, 2))
{
if (!BitTest(uLocal_437, 5))
{
if (!func_240())
{
if (!func_239())
{
if (!func_237())
{
if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) == 0)
{
if (!func_236(0))
{
if (!func_233(PLAYER::PLAYER_ID(), 1, 0))
{
if (!func_232())
{
if (func_231() == 0)
{
}
}
}
}
}
}
}
}
}
}
if (!BitTest(uLocal_437, 5))
{
if ((((((((func_233(PLAYER::PLAYER_ID(), 1, 0) || func_232()) || func_231() > 0) || func_230()) || func_226()) || func_225()) || func_203(0)) || func_202(PLAYER::PLAYER_ID(), 21)) || func_202(PLAYER::PLAYER_ID(), 25))
{
MISC::SET_BIT(&uLocal_437, 5);
func_12();
if (HUD::DOES_BLIP_EXIST(Global_1927671))
{
HUD::SET_BLIP_ROUTE(Global_1927671, false);
HUD::REMOVE_BLIP(&Global_1927671);
}
}
else
{
if (HUD::DOES_BLIP_EXIST(Global_1927671))
{
if (!BitTest(uLocal_437, 14))
{
if (Local_88.f_2 != -1)
{
if (Local_88.f_2 != NETWORK::PARTICIPANT_ID_TO_INT())
{
HUD::SET_BLIP_COLOUR(Global_1927671, 39);
HUD::SET_BLIP_SCALE(Global_1927671, 0.7f);
MISC::SET_BIT(&uLocal_437, 14);
}
}
}
else if (Local_88.f_2 == -1 || Local_88.f_2 == NETWORK::PARTICIPANT_ID_TO_INT())
{
HUD::SET_BLIP_COLOUR(Global_1927671, 0);
HUD::SET_BLIP_SCALE(Global_1927671, 1f);
MISC::CLEAR_BIT(&uLocal_437, 14);
}
}
if (BitTest(uLocal_437, 8))
{
MISC::CLEAR_BIT(&uLocal_437, 8);
}
if (func_201())
{
if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) == 0)
{
if ((bLocal_435 && CUTSCENE::HAS_CUTSCENE_LOADED()) || !bLocal_435)
{
if (!BitTest(Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/].f_2, 1))
{
MISC::SET_BIT(&(Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/].f_2), 1);
}
if (BitTest(Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/].f_2, 1))
{
if (Local_88.f_2 == NETWORK::PARTICIPANT_ID_TO_INT())
{
func_12();
if (HUD::DOES_BLIP_EXIST(Global_1927671))
{
HUD::SET_BLIP_ROUTE(Global_1927671, false);
HUD::REMOVE_BLIP(&Global_1927671);
}
HUD::CLEAR_HELP(true);
func_200(12, 1);
func_198();
PLAYER::SET_PLAYER_INVINCIBLE(PLAYER::PLAYER_ID(), true);
MISC::SET_BIT(&uLocal_437, 25);
MISC::CLEAR_AREA(1274.854f, -1721.1538f, 53.6808f, 2f, true, false, false, true);
if (bLocal_436)
{
func_197();
iLocal_445 = GRAPHICS::REQUEST_SCALEFORM_MOVIE("SECURITY_CAM");
}
Local_168[NETWORK::PARTICIPANT_ID_TO_INT() /*3*/].f_1 = 1;
}
else if (Local_88.f_2 != -1)
{
if (!BitTest(uLocal_437, 13))
{
if (func_191(1, 1, 1, 1))
{
func_190("FM_LCUT_LRB" /* GXT: ~s~Lester is currently busy. This is shown on the map with ~HUD_COLOUR_INACTIVE_MISSION~~BLIP_LESTER_FAMILY~ */, -1);
MISC::SET_BIT(&uLocal_437, 13);
}
}
}
}
}
}
else if (!HUD::IS_HELP_MESSAGE_BEING_DISPLAYED())
{
if (!func_189("FM_LCUT_LCP" /* GXT: ~s~You need to lose the Cops before Lester will speak to you. */))
{
func_190("FM_LCUT_LCP" /* GXT: ~s~You need to lose the Cops before Lester will speak to you. */, -1);
}