-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinteriors.sc
3661 lines (3313 loc) · 111 KB
/
interiors.sc
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
MISSION_START
// ********** DECLARE VARIABLES *************************************
VAR_INT wanted_interior
VAR_INT flag_player_in_bank
VAR_INT flag_player_in_malibu
VAR_INT flag_player_in_cop_shop
VAR_INT flag_player_in_shooting_range
VAR_INT flag_player_in_cafe
VAR_INT flag_player_in_apartment3c
VAR_INT flag_player_in_mansion
VAR_INT flag_eject
//VAR_INT flag_bank_job
VAR_INT flag_player_on_lawyer_2
VAR_INT flag_player_on_counter_1
VAR_INT flag_player_on_bank_2
VAR_INT flag_kent_mission_active
VAR_INT flag_player_on_bank1_mission
VAR_INT flag_player_on_finale // SCFIX
VAR_INT flag_player_control
VAR_INT flag_membership
VAR_INT flag_player_on_colonel1_mission flag_open_mansion
VAR_INT flag_player_in_stripclub flag_player_in_mall player_car_interiors
VAR_INT flag_strip_doors_closed flag_strip_doors_open strip_doors
VAR_INT flag_cop_doors_closed flag_cop_doors_open cop_doors
VAR_INT flag_malibu_doors_closed flag_malibu_doors_open malibu_doors
VAR_INT flag_strip_populate
VAR_INT ped_routine_1 ped_routine_2 ped_routine_3 ped_routine_4 ped_routine_5
//VAR_INT ped_routine_6 ped_routine_7 ped_routine_8 ped_routine_9 ped_routine_10
VAR_INT s_punter_1 s_punter_2 s_punter_3 s_punter_4
VAR_INT s_punter_5 s_punter_6 //s_punter_7 s_punter_8
VAR_INT bar_staff1 bar_staff2 flag_arm_barstaff
VAR_INT bouncer_1 bouncer_2 bouncer_3 bouncer_4
VAR_INT flag_launch_bouncers flag_arm_bouncers
VAR_INT ped_rumble ped_flee //ped_cancel_wait
VAR_INT door_man1 door_man2 flag_create_doorman flag_launch_doorman
VAR_INT dancer_1 dancer_2 dancer_3 dancer_4
VAR_INT dancer_5 dancer_6 dancer_7 dancer_8
VAR_INT dancer_9 dancer_10 dancer_11 dancer_12
VAR_INT dancer_13 dancer_14 dancer_15 dancer_16
VAR_INT dancer_17 dancer_18 dancer_19 dancer_20
VAR_INT dancer_21 dancer_22 dancer_23 dancer_24
VAR_INT dancer_25 dancer_26 dancer_27 dancer_28
VAR_INT dancer_29 dancer_30
VAR_INT club_owner
VAR_INT flag_arm_dancer2
VAR_INT jobby_1 jobby_2 jobby_3 jobby_4
VAR_INT jobby_5 jobby_6 jobby_7 jobby_8
VAR_INT jobby_9 stroop weapon_strip
VAR_INT flag_player_on_rc_mission //enables interiors to handle RC vehicles
//VAR_INT testblip_1 testblip_2 testblip_3 testblip_4
//VAR_INT testblip_5 testblip_6 testblip_7 testblip_8
VAR_INT timer_populate_start //flag_ws_set_once timer_populate_now timer_populate_lapsed
VAR_INT counter_tittycash_spent counter_strip_cam
VAR_INT flag_player_in_hotel
VAR_INT flag_malibu_populate counter_dancers var_dancer flag_bought_malibu
VAR_INT flag_ymca //var_pedstat
VAR_INT flag_interiors_cleanup
VAR_INT pooz_counter
VAR_INT flag_strip_asset_cutscene private_dancer
VAR_INT counter_private_dancer
//VAR_FLOAT dancefloor_x dancefloor_y dancefloor_z
VAR_FLOAT dancer_x dancer_y dancer_z
VAR_FLOAT radial_float radius //radial_step radius_increment
VAR_FLOAT float_heading
//VAR_INT flag_shooting_range_blob
//VAR_FLOAT
// ********** SET FLAGS AND VARIABLES *******************************
wanted_interior = 0
//flag_player_inside = 0
flag_player_on_bank_2 = 0
flag_player_on_bank1_mission = 0
flag_player_on_colonel1_mission = 0
//flag_player_on_kent_1 = 0
flag_player_on_lawyer_2 = 0
flag_player_on_counter_1 = 0
flag_kent_mission_active = 0
flag_player_in_stripclub = 0
flag_player_in_mall = 0
flag_player_in_hotel = 0
flag_player_in_shooting_range = 0
flag_player_in_cop_shop = 0
flag_player_in_cafe = 0
flag_player_in_mansion = 0
flag_player_in_malibu = 0
flag_player_in_bank = 0
flag_player_in_apartment3c = 0
flag_open_mansion = 0
flag_strip_doors_open = 0
flag_strip_doors_closed = 0
flag_cop_doors_open = 0
flag_cop_doors_closed = 0
flag_malibu_doors_closed = 0
flag_malibu_doors_open = 0
flag_strip_populate = 0
//flag_ws_set_once = 0
flag_launch_bouncers = 0
flag_arm_barstaff = 0
flag_arm_dancer2 = 0
flag_membership = 0
//flag_membership = 1 // TEST TO COME OUT!!!
flag_arm_bouncers = 0
flag_create_doorman = 0
flag_launch_doorman = 0
counter_tittycash_spent = 0
counter_strip_cam = 0
flag_malibu_populate = 0
//dancefloor_x = 477.0
//dancefloor_y = -64.7
//dancefloor_z = 9.98
dancer_z = 9.0
radial_float = 0.0
radius = 0.0
counter_dancers = 0
flag_bought_malibu = 0
flag_ymca = 0
flag_interiors_cleanup = 0
//flag_stripper_create = 0
flag_strip_asset_cutscene = 0
pooz_counter = 0
counter_private_dancer = 0
flag_player_on_rc_mission = 0
// ********** MAIN SCRIPT *******************************************
SCRIPT_NAME INTERIO
SET_DEATHARREST_STATE OFF //stops script being terminated if Player dies/arrested
mission_start_interiors:
{
START_NEW_SCRIPT interiors
//START_NEW_SCRIPT airport_security
//START_NEW_SCRIPT aport2_security
START_NEW_SCRIPT force_extra_colors_script // SCFIX
MISSION_END
}
interiors:
flag_eject = 0
{
SCRIPT_NAME SHIT
GOTO bingle_bongle
CREATE_OBJECT_NO_OFFSET stripclbdropen 97.203 -1469.731 10.578 strip_doors
CREATE_OBJECT_NO_OFFSET od_clbdr_open 490.34 -77.017 11.598 malibu_doors
CREATE_OBJECT_NO_OFFSET cop_dr_closed 396.545 -472.883 12.6 cop_doors
CREATE_OBJECT_NO_OFFSET strpbckdrclsd 68.988 -1444.242 10.727 strip_door_poledance
bingle_bongle:
VAR_INT flag_is_in_transition1
flag_is_in_transition1 = 0
interiors_inner:
WAIT 0
++ pooz_counter
// **************************** THE STRIP CLUB ********************************************
IF IS_PLAYER_PLAYING player1
flag_interiors_cleanup = 0
IF pooz_counter = 1
IF IS_PLAYER_IN_ZONE player1 BEACH1
OR flag_player_on_rc_mission = 1
IF flag_membership = 1
IF flag_player_on_mission = 0
IF flag_strip_doors_open = 0
DELETE_OBJECT strip_doors
CREATE_OBJECT_NO_OFFSET stripclbdropen 97.203 -1469.731 10.578 strip_doors
DONT_REMOVE_OBJECT strip_doors
flag_strip_doors_open = 1
flag_strip_doors_closed = 0
ENDIF
ELSE
IF flag_strip_doors_closed = 0
AND flag_player_in_stripclub = 0 // SCFIX: we might be inside during a phonecall
DELETE_OBJECT strip_doors
CREATE_OBJECT_NO_OFFSET stripclbdrclsd 97.203 -1469.731 10.578 strip_doors
DONT_REMOVE_OBJECT strip_doors
flag_strip_doors_closed = 1
flag_strip_doors_open = 0
ENDIF
ENDIF
IF IS_PLAYER_PLAYING player1
IF flag_player_in_stripclub = 0
AND flag_player_on_mission = 0
IF IS_PLAYER_IN_REMOTE_MODE player1
GET_REMOTE_CONTROLLED_CAR player1 player_car_interiors
IF NOT IS_CAR_DEAD player_car_interiors
IF LOCATE_CAR_3D player_car_interiors 95.3 -1468.3 9.5 1.5 1.5 3.0 FALSE
BLOW_UP_RC_BUGGY
ENDIF
ENDIF
ELSE
IF LOCATE_PLAYER_ANY_MEANS_3D player1 95.3 -1468.3 9.5 1.5 1.5 3.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
AND NOT IS_PLAYER_IN_MODEL player1 CADDY
GOTO interiors_inner
ENDIF
flag_player_in_stripclub = 1
PRINT_BIG ( STRIP ) 3000 2 //"The Malibu1"
GOSUB transition_1
IF IS_PLAYER_PLAYING player1
IF IS_PLAYER_ON_ANY_BIKE player1
OR IS_PLAYER_IN_MODEL player1 CADDY
STORE_CAR_PLAYER_IS_IN_NO_SAVE player1 player_car_interiors
WARP_PLAYER_FROM_CAR_TO_COORD player1 91.2 -1460.9 10.0
DELETE_CAR player_car_interiors
ENDIF
ENDIF
IF IS_AUSTRALIAN_GAME
GET_CHAR_WEAPON_IN_SLOT scplayer 1 jobby_1 ammo_slot_1 weapon_model_slot_1
GET_CHAR_WEAPON_IN_SLOT scplayer 2 jobby_2 ammo_slot_2 weapon_model_slot_2
GET_CHAR_WEAPON_IN_SLOT scplayer 3 jobby_3 ammo_slot_3 weapon_model_slot_3
GET_CHAR_WEAPON_IN_SLOT scplayer 4 jobby_4 ammo_slot_4 weapon_model_slot_4
GET_CHAR_WEAPON_IN_SLOT scplayer 5 jobby_5 ammo_slot_5 weapon_model_slot_5
GET_CHAR_WEAPON_IN_SLOT scplayer 6 jobby_6 ammo_slot_6 weapon_model_slot_6
GET_CHAR_WEAPON_IN_SLOT scplayer 7 jobby_7 ammo_slot_7 weapon_model_slot_7
GET_CHAR_WEAPON_IN_SLOT scplayer 8 jobby_8 ammo_slot_8 weapon_model_slot_8
GET_CHAR_WEAPON_IN_SLOT scplayer 9 jobby_9 ammo_slot_9 weapon_model_slot_9
REMOVE_ALL_PLAYER_WEAPONS player1
ENDIF
IF flag_eject = 0
SET_AREA_VISIBLE VIS_STRIP_CLUB
LOAD_SCENE 91.2 -1460.9 10.6
SET_PLAYER_COORDINATES player1 91.2 -1460.9 10.0
SET_PLAYER_HEADING player1 40.0
//SET_CAMERA_IN_FRONT_OF_PLAYER
SET_EXTRA_COLOURS 2 FALSE
SET_CAR_DENSITY_MULTIPLIER 0.1
SWITCH_RUBBISH OFF
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
IF flag_player_in_stripclub = 1
IF LOCATE_PLAYER_ANY_MEANS_3D player1 92.23 -1463.1 9.5 1.5 1.5 3.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
//AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( BEACH1 ) 3000 2 //"The Malibu1"
GOSUB transition_1
IF flag_eject = 0
flag_player_in_stripclub = 0
GOSUB outgoing
CLEAR_AREA 97.7 -1472.2 10.5 1.0 FALSE
LOAD_SCENE 97.7 -1472.2 10.5
SET_PLAYER_COORDINATES player1 97.7 -1472.2 9.7
SET_PLAYER_HEADING player1 280.0
SET_CAMERA_IN_FRONT_OF_PLAYER
IF IS_AUSTRALIAN_GAME
GET_CHAR_WEAPON_IN_SLOT scplayer 1 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_1
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_1 ammo_slot_1
ENDIF
GOSUB aussie2
ENDIF
GET_CHAR_WEAPON_IN_SLOT scplayer 2 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_2
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_2 ammo_slot_2
ENDIF
GOSUB aussie2
ENDIF
GET_CHAR_WEAPON_IN_SLOT scplayer 3 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_3
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_3 ammo_slot_3
ENDIF
GOSUB aussie2
ENDIF
GET_CHAR_WEAPON_IN_SLOT scplayer 4 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_4
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_4 ammo_slot_4
ENDIF
GOSUB aussie2
ENDIF
GET_CHAR_WEAPON_IN_SLOT scplayer 5 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_5
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_5 ammo_slot_5
ENDIF
GOSUB aussie2
ENDIF
GET_CHAR_WEAPON_IN_SLOT scplayer 6 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_6
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_6 ammo_slot_6
ENDIF
GOSUB aussie2
ENDIF
GET_CHAR_WEAPON_IN_SLOT scplayer 7 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_7
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_7 ammo_slot_7
ENDIF
GOSUB aussie2
ENDIF
GET_CHAR_WEAPON_IN_SLOT scplayer 8 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_8
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_8 ammo_slot_8
ENDIF
GOSUB aussie2
ENDIF
GET_CHAR_WEAPON_IN_SLOT scplayer 9 stroop stroop weapon_strip
IF NOT weapon_strip = WEAPONTYPE_UNARMED
weapon_strip = weapon_model_slot_9
GOSUB aussie
IF IS_PLAYER_PLAYING player1
GIVE_WEAPON_TO_PLAYER player1 jobby_9 ammo_slot_9
ENDIF
GOSUB aussie2
ENDIF
ENDIF
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
GOSUB interiors_cleanup
ENDIF
// ******************************* HOTEL **************************************************
IF IS_PLAYER_PLAYING player1
flag_interiors_cleanup = 0
IF pooz_counter = 2
IF IS_PLAYER_IN_ZONE player1 BEACH1
OR flag_player_on_rc_mission = 1
IF flag_player_in_hotel = 0
IF IS_PLAYER_IN_REMOTE_MODE player1
GET_REMOTE_CONTROLLED_CAR player1 player_car_interiors
IF NOT IS_CAR_DEAD player_car_interiors
IF LOCATE_CAR_3D player_car_interiors 229.5 -1277.7 11.5 1.5 1.5 3.0 FALSE
BLOW_UP_RC_BUGGY
ENDIF
ENDIF
ELSE
IF IS_PLAYER_IN_AREA_3D player1 222.0 -1274.0 11.0 229.0 -1280.7 14.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( HOTEL ) 3000 2 //"The Malibu1"
GOSUB transition_1
IF IS_PLAYER_PLAYING player1
IF IS_PLAYER_ON_ANY_BIKE player1
STORE_CAR_PLAYER_IS_IN_NO_SAVE player1 player_car_interiors
WARP_PLAYER_FROM_CAR_TO_COORD player1 225.0 -1277.3 11.5
DELETE_CAR player_car_interiors
ENDIF
ENDIF
IF flag_eject = 0
flag_player_in_hotel = 1
SET_AREA_VISIBLE VIS_HOTEL
SWITCH_RUBBISH OFF
LOAD_SCENE 225.0 -1277.3 12.0
SET_PLAYER_COORDINATES player1 225.0 -1277.3 11.5
SET_PLAYER_HEADING player1 80.0
SET_EXTRA_COLOURS 3 FALSE
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
IF flag_player_in_hotel = 1
IF IS_PLAYER_IN_AREA_3D player1 235.0 -1274.0 11.0 227.5.0 -1280.7 16.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( BEACH1 ) 3000 2 //"Ocean Drive"
GOSUB transition_1
IF flag_eject = 0
GOSUB outgoing
flag_player_in_hotel = 0
CLEAR_AREA 233.5 -1278.45 11.0 1.0 FALSE
LOAD_SCENE 233.5 -1278.45 11.0
SET_PLAYER_COORDINATES player1 233.5 -1278.45 11.0
SET_PLAYER_HEADING player1 270.0
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
GOSUB interiors_cleanup
ENDIF
// ******************************* SCAR FACE **************************************************
IF IS_PLAYER_PLAYING player1
flag_interiors_cleanup = 0
IF pooz_counter = 1
IF IS_PLAYER_IN_ZONE player1 BEACH1
OR flag_player_on_rc_mission = 1
IF flag_player_in_apartment3c = 0
IF IS_PLAYER_IN_REMOTE_MODE player1
GET_REMOTE_CONTROLLED_CAR player1 player_car_interiors
IF NOT IS_CAR_DEAD player_car_interiors
IF LOCATE_CAR_3D player_car_interiors 26.73 -1329.8 13.0 1.5 1.5 3.0 FALSE
BLOW_UP_RC_BUGGY
ENDIF
ENDIF
ELSE
IF LOCATE_PLAYER_ANY_MEANS_3D player1 26.95 -1328.3 13.0 1.0 1.0 2.0 FALSE
IF IS_PLAYER_PLAYING player1
IF IS_PLAYER_ON_ANY_BIKE player1
//OR IS_PLAYER_IN_MODEL player1 CADDY
STORE_CAR_PLAYER_IS_IN_NO_SAVE player1 player_car_interiors
WARP_PLAYER_FROM_CAR_TO_COORD player1 27.19 -1327.0 12.0
DELETE_CAR player_car_interiors
ENDIF
ENDIF
IF IS_PLAYER_IN_ANY_CAR player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( SCARF ) 3000 2 //"The Malibu1"
GOSUB transition_1
IF flag_eject = 0
flag_player_in_apartment3c = 1
SET_AREA_VISIBLE VIS_BIKER_BAR
SWITCH_RUBBISH OFF
LOAD_SCENE 27.19 -1327.0 12.0
SET_PLAYER_COORDINATES player1 27.19 -1327.0 12.0
SET_PLAYER_HEADING player1 23.0
SET_EXTRA_COLOURS 3 FALSE
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
IF flag_player_in_apartment3c = 1
IF LOCATE_PLAYER_ANY_MEANS_3D player1 26.73 -1329.8 13.0 1.0 1.0 2.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( BEACH1 ) 3000 2 //"The Malibu1"
GOSUB transition_1
IF flag_eject = 0
GOSUB outgoing
flag_player_in_apartment3c = 0
CLEAR_AREA 27.33 -1331.1 11.8 1.0 FALSE
LOAD_SCENE 27.33 -1331.1 11.8
SET_PLAYER_COORDINATES player1 27.33 -1331.1 11.8
SET_PLAYER_HEADING player1 160.0
SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
GOSUB interiors_cleanup
ENDIF
// **************************** THE POLICE HQ ************************************************
IF IS_PLAYER_PLAYING player1
flag_interiors_cleanup = 0
IF IS_PLAYER_IN_ZONE player1 BEACH2
OR flag_player_on_rc_mission = 1
IF pooz_counter = 1
IF flag_player_on_mission = 0
OR flag_player_on_bank1_mission = 1
OR flag_player_on_colonel1_mission = 1
IF flag_cop_doors_open = 0
DELETE_OBJECT cop_doors
CREATE_OBJECT_NO_OFFSET cop_dr_open 396.458 -473.047 12.6 cop_doors
DONT_REMOVE_OBJECT cop_doors
flag_cop_doors_open = 1
flag_cop_doors_closed = 0
ENDIF
ELSE
IF flag_cop_doors_closed = 0
AND flag_player_in_cop_shop = 0 // SCFIX: we might be inside during a phonecall
DELETE_OBJECT cop_doors
CREATE_OBJECT_NO_OFFSET cop_dr_closed 396.545 -472.883 12.6 cop_doors
DONT_REMOVE_OBJECT cop_doors
flag_cop_doors_closed = 1
flag_cop_doors_open = 0
ENDIF
ENDIF
IF IS_PLAYER_PLAYING player1
IF flag_player_on_mission = 0
OR flag_player_on_bank1_mission = 1
OR flag_player_on_colonel1_mission = 1
IF flag_player_in_cop_shop = 0
IF IS_PLAYER_IN_REMOTE_MODE player1
GET_REMOTE_CONTROLLED_CAR player1 player_car_interiors
IF NOT IS_CAR_DEAD player_car_interiors
IF LOCATE_CAR_3D player_car_interiors 397.0 -472.0 12.0 1.5 1.5 3.0 FALSE
BLOW_UP_RC_BUGGY
ENDIF
ENDIF
ELSE
IF IS_PLAYER_IN_ANGLED_AREA_3D player1 399.0 -474.5 11.0 394.3 -470.8 14.5 2.5 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( POL_HQ ) 3000 2 //"Diaz's Mansion"
GOSUB transition_1
IF IS_PLAYER_PLAYING player1
IF IS_PLAYER_ON_ANY_BIKE player1
STORE_CAR_PLAYER_IS_IN_NO_SAVE player1 player_car_interiors
WARP_PLAYER_FROM_CAR_TO_COORD player1 393.8 -475.8 11.4
DELETE_CAR player_car_interiors
ENDIF
ENDIF
IF flag_eject = 0
SET_AREA_VISIBLE VIS_POLICE_STATION
flag_player_in_cop_shop = 1
IF flag_player_on_bank1_mission = 0
SET_ZONE_PED_INFO STREET2 DAY (14) 0 0 0 0 0 0 0 0 0 1000
SET_ZONE_PED_INFO STREET2 NIGHT (16) 0 0 0 0 0 0 0 0 0 1000
SWITCH_PED_ROADS_ON 354.9 -483.1 21.0 406.0 -490.0 0.0
SWITCH_PED_ROADS_ON 376.66 -453.85 -10.0 328.91 -504.02 30.0 //Cop Shop (Used in bank1)
CLEAR_AREA 400.0 -486.5 10.0 5.0 TRUE
ENDIF
SWITCH_RUBBISH OFF
LOAD_SCENE 393.8 -475.8 11.4
SET_PLAYER_COORDINATES player1 393.8 -475.8 11.4
SET_PLAYER_HEADING player1 137.0
SET_EXTRA_COLOURS 5 FALSE
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
IF flag_player_in_cop_shop = 1
IF IS_PLAYER_IN_ANGLED_AREA_3D player1 399.3 -472.9 11.0 394.8 -469.3 14.5 1.5 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( BEACH2 ) 3000 2 //"Diaz's Mansion"
GOSUB transition_1
IF flag_eject = 0
GOSUB outgoing
SWITCH_PED_ROADS_OFF 354.9 -483.1 21.0 406.0 -490.0 10.0 // LOWER FLOOR
CLEAR_AREA 399.38 -468.6 10.7 1.0 FALSE
flag_player_in_cop_shop = 0
//CLEAR_AREA_OF_CHARS MinX MinY MinZ MaxX MaxY MaxZ
IF flag_player_on_bank1_mission = 0
SET_ZONE_PED_INFO STREET2 DAY (14) 0 0 0 0 0 0 0 0 0 20 //POLICE STATION
SET_ZONE_PED_INFO STREET2 NIGHT (16) 0 0 0 0 0 0 0 0 0 10
SWITCH_PED_ROADS_OFF 354.9 -483.1 21.0 406.0 -490.0 0.0
SWITCH_PED_ROADS_OFF 376.66 -453.85 -10.00 328.91 -504.02 30.0 //Cop Shop (Used in bank1)
ENDIF
LOAD_SCENE 399.38 -468.6 10.7
SET_PLAYER_COORDINATES player1 399.38 -468.6 10.7
SET_PLAYER_HEADING player1 330.0
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
GOSUB interiors_cleanup
ENDIF
// **************************** THE MALIBU ************************************************ flag_malibu_doors_closed
IF IS_PLAYER_PLAYING player1
flag_interiors_cleanup = 0
IF pooz_counter = 1
IF IS_PLAYER_IN_ZONE player1 BEACH3
OR flag_player_on_rc_mission = 1
IF flag_player_on_mission = 0
//AND flag_kent_mission_active = 0
IF flag_player_in_malibu = 0
ground_z = 0.0000
GET_GROUND_Z_FOR_3D_COORD 492.5 -76.17 10.5 ground_z
IF ground_z > 0.0000
IF flag_create_doorman = 0
IF NOT IS_POINT_ON_SCREEN 489.6 -79.8 10.5 2.0
IF NOT IS_POINT_ON_SCREEN 492.5 -76.17 10.5 2.0
LOAD_SPECIAL_CHARACTER 15 BGb
WHILE NOT HAS_SPECIAL_CHARACTER_LOADED 15
WAIT 0
LOAD_SPECIAL_CHARACTER 15 BGb
ENDWHILE
CREATE_CHAR PEDTYPE_CIVMALE SPECIAL15 489.6 -79.8 10.5 door_man1
SET_CHAR_HEADING door_man1 225.0
SET_CHAR_PERSONALITY door_man1 PEDSTAT_PSYCHO
SET_CHAR_HEALTH door_man1 200
//ADD_ARMOUR_TO_CHAR door_man1 100
CLEAR_CHAR_THREAT_SEARCH door_man1
SET_CHAR_HEED_THREATS door_man1 TRUE
SET_CHAR_PERSONALITY door_man1 PEDSTAT_STREET_GUY
CREATE_CHAR PEDTYPE_CIVMALE SPECIAL15 492.5 -76.17 10.5 door_man2
SET_CHAR_HEADING door_man2 225.0
SET_CHAR_PERSONALITY door_man2 PEDSTAT_PSYCHO
SET_CHAR_HEALTH door_man2 200
//ADD_ARMOUR_TO_CHAR door_man2 100
CLEAR_CHAR_THREAT_SEARCH door_man2
SET_CHAR_HEED_THREATS door_man2 TRUE
SET_CHAR_PERSONALITY door_man2 PEDSTAT_STREET_GUY
flag_create_doorman = 1
ENDIF
ENDIF
ENDIF
ELSE
GOSUB doorman_delete
ENDIF
IF flag_create_doorman = 1
AND flag_launch_doorman = 0
IF NOT IS_CHAR_DEAD door_man1
IF NOT IS_CHAR_HEALTH_GREATER door_man1 199
IF NOT IS_CHAR_DEAD door_man2
SET_CHAR_THREAT_SEARCH door_man2 THREAT_PLAYER1
flag_launch_doorman = 1
ENDIF
ENDIF
ENDIF
IF NOT IS_CHAR_DEAD door_man2
IF NOT IS_CHAR_HEALTH_GREATER door_man2 199
IF NOT IS_CHAR_DEAD door_man1
SET_CHAR_THREAT_SEARCH door_man1 THREAT_PLAYER1
flag_launch_doorman = 1
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
GOSUB doorman_delete
ENDIF
IF flag_malibu_doors_open = 0
DELETE_OBJECT malibu_doors
CREATE_OBJECT_NO_OFFSET od_clbdr_open 490.34 -77.017 11.598 malibu_doors
SET_OBJECT_AREA_VISIBLE malibu_doors VIS_MAIN_MAP // SCFIX
DONT_REMOVE_OBJECT malibu_doors
flag_malibu_doors_open = 1
flag_malibu_doors_closed = 0
ENDIF
ELSE
IF flag_malibu_doors_closed = 0
AND flag_player_on_lawyer_2 = 0
AND flag_player_on_counter_1 = 0
AND flag_kent_script_cut = 0 // SCFIX
DELETE_OBJECT malibu_doors
CREATE_OBJECT_NO_OFFSET od_clbdr_close 490.34 -77.017 11.598 malibu_doors
SET_OBJECT_AREA_VISIBLE malibu_doors VIS_MAIN_MAP // SCFIX
DONT_REMOVE_OBJECT malibu_doors
flag_malibu_doors_closed = 1
flag_malibu_doors_open = 0
ENDIF
GOSUB doorman_delete
ENDIF
IF flag_kent_mission_active = 0
IF IS_PLAYER_PLAYING player1
IF flag_player_in_malibu = 0
AND flag_player_on_mission = 0
IF IS_PLAYER_IN_REMOTE_MODE player1
GET_REMOTE_CONTROLLED_CAR player1 player_car_interiors
IF NOT IS_CAR_DEAD player_car_interiors
IF LOCATE_CAR_3D player_car_interiors 491.0 -77.7 10.4 1.5 1.5 3.0 FALSE
BLOW_UP_RC_BUGGY
ENDIF
ENDIF
ELSE
IF LOCATE_PLAYER_ANY_MEANS_3D player1 491.0 -77.7 10.4 1.5 1.5 3.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
flag_player_in_malibu = 1
PRINT_BIG ( MALIBU ) 3000 2 //"The Malibu"
GOSUB transition_1
IF IS_PLAYER_PLAYING player1
IF IS_PLAYER_ON_ANY_BIKE player1
OR IS_PLAYER_IN_MODEL player1 CADDY
STORE_CAR_PLAYER_IS_IN_NO_SAVE player1 player_car_interiors
WARP_PLAYER_FROM_CAR_TO_COORD player1 484.2 -72.5 9.5
DELETE_CAR player_car_interiors
ENDIF
ENDIF
IF flag_eject = 0
SET_AREA_VISIBLE VIS_MALIBU_CLUB
SWITCH_PED_ROADS_ON 468.0 -77.0 0.0 490.0 -54.0 30.0
SWITCH_RUBBISH OFF
LOAD_SCENE 484.2 -72.5 9.5
SET_PLAYER_COORDINATES player1 484.2 -72.5 9.5
SET_PLAYER_HEADING player1 60.0
SET_EXTRA_COLOURS 1 FALSE
CLEAR_AREA 491.0 -77.7 10.4 1.0 TRUE
//WAIT 50
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
IF flag_player_on_counter_1 = 0
AND flag_player_on_lawyer_2 = 0
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
IF flag_player_in_malibu = 1
IF LOCATE_PLAYER_ANY_MEANS_3D player1 488.6 -75.4 10.4 1.5 1.5 3.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
IF flag_player_on_counter_1 = 0
AND flag_player_on_lawyer_2 = 0
GOSUB transition_1
PRINT_BIG ( BEACH3 ) 3000 2 //"Vice Point"
ENDIF
IF flag_eject = 0
flag_player_in_malibu = 0
GOSUB outgoing
SWITCH_PED_ROADS_OFF 468.0 -77.0 0.0 490.0 -54.0 30.0
CLEAR_AREA 493.1 -82.4 10.8 1.0 FALSE
LOAD_SCENE 493.1 -82.4 10.8
SET_PLAYER_COORDINATES player1 493.1 -82.4 9.8
SET_PLAYER_HEADING player1 220.0
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
GOSUB doorman_delete
ENDIF
ENDIF
ELSE
GOSUB interiors_cleanup
ENDIF
// [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ UMBERTO'S COFFEE SHOP ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
// [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ UMBERTO'S COFFEE SHOP ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
// [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ UMBERTO'S COFFEE SHOP ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
IF IS_PLAYER_PLAYING player1
flag_interiors_cleanup = 0
IF IS_PLAYER_IN_ZONE player1 HAVANA
OR flag_player_on_rc_mission = 1
IF pooz_counter = 2
IF IS_PLAYER_IN_REMOTE_MODE player1
GET_REMOTE_CONTROLLED_CAR player1 player_car_interiors
IF NOT IS_CAR_DEAD player_car_interiors
IF LOCATE_CAR_3D player_car_interiors -1170.0 -609.0 11.0 1.5 1.5 3.0 FALSE
BLOW_UP_RC_BUGGY
ENDIF
ENDIF
ELSE
IF flag_player_in_cafe = 0
IF LOCATE_PLAYER_ANY_MEANS_3D player1 -1170.0 -609.0 11.0 1.5 1.5 3.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( UMBERTO ) 3000 2 //Cafe Robina
GOSUB transition_1
IF IS_PLAYER_PLAYING player1
IF IS_PLAYER_ON_ANY_BIKE player1
STORE_CAR_PLAYER_IS_IN_NO_SAVE player1 player_car_interiors
WARP_PLAYER_FROM_CAR_TO_COORD player1 -1170.0 -611.0 11.0
DELETE_CAR player_car_interiors
ENDIF
ENDIF
IF flag_eject = 0
flag_player_in_cafe = 1
SET_AREA_VISIBLE VIS_COFFEE_SHOP
LOAD_SCENE -1170.0 -611.0 11.0
CLEAR_AREA -1170.0 -611.0 11.0 1.0 FALSE
SWITCH_RUBBISH OFF
SET_PLAYER_COORDINATES player1 -1170.0 -611.5 11.0
SET_PLAYER_HEADING player1 180.0
//SET_EXTRA_COLOURS 6 FALSE
//SET_CAR_DENSITY_MULTIPLIER 0.1
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
IF flag_player_in_cafe = 1
IF LOCATE_PLAYER_ANY_MEANS_3D player1 -1170.0 -606.5 11.0 1.5 1.5 3.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
GOTO interiors_inner
ENDIF
PRINT_BIG ( HAVANA ) 3000 2 //
GOSUB transition_1
IF flag_eject = 0
flag_player_in_cafe = 0
GOSUB outgoing
CLEAR_AREA -1170.0 -605.0 11.0 1.0 FALSE
LOAD_SCENE -1170.0 -605.0 11.0
SET_PLAYER_COORDINATES player1 -1170.0 -605.0 11.0
SET_PLAYER_HEADING player1 0.0
SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
GOSUB interiors_cleanup
ENDIF
// **************************** THE MALL DOOR 1 ************************************************
// **************************** THE MALL DOOR 1 ************************************************
// **************************** THE MALL DOOR 1 ************************************************
IF IS_PLAYER_PLAYING player1
flag_interiors_cleanup = 0
IF IS_PLAYER_IN_ZONE player1 BEACH3
OR flag_player_on_rc_mission = 1
IF pooz_counter = 2
IF flag_player_in_mall = 0
IF IS_PLAYER_IN_REMOTE_MODE player1
GET_REMOTE_CONTROLLED_CAR player1 player_car_interiors
IF NOT IS_CAR_DEAD player_car_interiors
IF LOCATE_CAR_3D player_car_interiors 449.76 996.22 18.4 1.5 1.5 3.0 FALSE
BLOW_UP_RC_BUGGY
ENDIF
ENDIF
ELSE
IF LOCATE_PLAYER_ANY_MEANS_3D player1 448.8 999.9 18.4 3.5 3.5 3.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
AND NOT IS_PLAYER_IN_MODEL player1 CADDY
GOTO interiors_inner
ENDIF
PRINT_BIG ( MALL1 ) 3000 2 //"Diaz's Mansion"
GOSUB transition_1
IF flag_eject = 0
flag_player_in_mall = 1
SET_AREA_VISIBLE VIS_MALL
SWITCH_PED_ROADS_ON 474.0 1250.0 17.0 356.0 1003.0 32.0 // LOWER FLOOR
SWITCH_RUBBISH OFF
LOAD_SCENE 448.3 1030.0 18.0
SET_PLAYER_COORDINATES player1 448.3 1006.0 18.0
float_heading = 0.0
GOSUB vehicle_heading
SET_EXTRA_COLOURS 6 FALSE
SET_CAR_DENSITY_MULTIPLIER 0.1
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
IF flag_player_in_mall = 1
IF LOCATE_PLAYER_ANY_MEANS_3D player1 448.8 999.9 18.4 3.5 3.5 3.0 FALSE
IF IS_PLAYER_IN_ANY_CAR player1
AND NOT IS_PLAYER_ON_ANY_BIKE player1
AND NOT IS_PLAYER_IN_MODEL player1 CADDY
GOTO interiors_inner
ENDIF
PRINT_BIG ( BEACH3 ) 3000 2 //
GOSUB transition_1
IF flag_eject = 0
flag_player_in_mall = 0
GOSUB outgoing
SWITCH_PED_ROADS_OFF 474.0 1250.0 17.0 356.0 1003.0 32.0 // LOWER FLOOR
CLEAR_AREA 449.7 992.2 17.0 1.0 FALSE
LOAD_SCENE 449.7 992.2 17.0
SET_PLAYER_COORDINATES player1 449.7 992.2 17.0
float_heading = 180.0
GOSUB vehicle_heading
//SET_PLAYER_HEADING player1 180.0
//SET_CAMERA_IN_FRONT_OF_PLAYER
ELSE
GOTO interiors_inner
ENDIF
GOSUB transition_2
ENDIF
ENDIF
ENDIF
ENDIF
ELSE
GOSUB interiors_cleanup
ENDIF