-
Notifications
You must be signed in to change notification settings - Fork 7
/
10_mayhem1.sc
601 lines (576 loc) · 18 KB
/
10_mayhem1.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
// *****************************************************************************************
// *****************************************************************************************
// *****************************************************************************************
// ***************************************Multi-storey Mayhem*******************************
// *****************************************************************************************
// *****************************************************************************************
// *****************************************************************************************
// Mission start stuff
:M10_MULTISTOREYMAYHEM
gosub @MISSION_START_MAYHEM
if
0112: has_deatharrest_been_executed
then
gosub @MISSION_MAYHEM_FAILED
end
:MISSION_END_MAYHEM
gosub @MISSION_CLEANUP_MAYHEM
end_thread
// ****************************************Mission Start************************************
:MISSION_START_MAYHEM
0317: increment_mission_attempts
03A4: name_thread 'MAYHEM'
0004: $ONMISSION = 1
00BA: print_big 'MM_1' duration 15000 ms style 2 // 'MULTISTOREY MAYHEM'
0001: wait 0 ms
// Set Variables
0004: $COUNTER_4X4_PICKUPS = 0
0004: $TIMER_4X4 = 20000
0004: $FLAG_INTRO = 0
0004: $FLAG_TIMER = 0
0004: $ON_MULTISTOREY_MAYHEM_MISSION = 1
0004: $FLAG_INTRO_JUMP = 0
0004: $FLAG_BLIP_1 = 0
0004: $FLAG_BLIP_2 = 0
0004: $FLAG_BLIP_3 = 0
0004: $FLAG_BLIP_4 = 0
0004: $FLAG_BLIP_5 = 0
0004: $FLAG_BLIP_6 = 0
0004: $FLAG_BLIP_7 = 0
0004: $FLAG_BLIP_8 = 0
0004: $FLAG_BLIP_9 = 0
0004: $FLAG_BLIP_10 = 0
0004: $FLAG_BLIP_11 = 0
0004: $FLAG_BLIP_12 = 0
0004: $FLAG_BLIP_13 = 0
0004: $FLAG_BLIP_14 = 0
0004: $FLAG_BLIP_15 = 0
0004: $FLAG_BLIP_16 = 0
0004: $FLAG_BLIP_17 = 0
0004: $FLAG_BLIP_18 = 0
0004: $FLAG_BLIP_19 = 0
0004: $FLAG_BLIP_20 = 0
0004: $RECORD_TEMP = 0
// Set Coords
0005: $X_1 = 286.0 //ground floor
0005: $Y_1 = -519.0
0005: $Z_1 = 26.1875
0005: $X_2 = 302.0
0005: $Y_2 = -532.0
0005: $Z_2 = 26.1875
0005: $X_3 = 271.0
0005: $Y_3 = -547.0
0005: $Z_3 = 26.1875
0005: $X_4 = 303.0
0005: $Y_4 = -577.0
0005: $Z_4 = 26.1875
0005: $X_5 = 327.5 /first tier
0005: $Y_5 = -583.0
0005: $Z_5 = 29.1875
0005: $X_6 = 324.5
0005: $Y_6 = -536.5
0005: $Z_6 = 29.1875
0005: $X_7 = 340.0
0005: $Y_7 = -492.0
0005: $Z_7 = 29.1875
0005: $X_8 = 311.0
0005: $Y_8 = -510.0
0005: $Z_8 = 29.1875
0005: $X_9 = 293.0 //2nd tier
0005: $Y_9 = -484.0
0005: $Z_9 = 31.5625
0005: $X_10 = 302.0
0005: $Y_10 = -511.0
0005: $Z_10 = 31.5625
0005: $X_11 = 301.0
0005: $Y_11 = -560.0
0005: $Z_11 = 31.5625
0005: $X_12 = 301.0
0005: $Y_12 = -606.0
0005: $Z_12 = 31.5625
0005: $X_13 = 314.5 //3rd tier
0005: $Y_13 = -595.0
0005: $Z_13 = 33.875
0005: $X_14 = 338.0
0005: $Y_14 = -565.0
0005: $Z_14 = 33.875
0005: $X_15 = 317.0
0005: $Y_15 = -545.0
0005: $Z_15 = 33.875
0005: $X_16 = 337.0
0005: $Y_16 = -523.0
0005: $Z_16 = 33.875
0005: $X_17 = 302.0 //4th tier
0005: $Y_17 = -606.5
0005: $Z_17 = 36.25
0005: $X_18 = 304.0
0005: $Y_18 = -544.5
0005: $Z_18 = 36.25
0005: $X_19 = 266.1875
0005: $Y_19 = -627.0
0005: $Z_19 = 40.5
0005: $X_20 = 272.0
0005: $Y_20 = -537.0
0005: $Z_20 = 36.25
//Mission Script
01C0: $WANTED_4X4 = player $PLAYER_CHAR wanted_level
0110: clear_player $PLAYER_CHAR wanted_level
00DA: $PLAYER_4X4 = store_car_player_is_in $PLAYER_CHAR
if
8119: not car $PLAYER_4X4 wrecked
then
020A: set_car $PLAYER_4X4 door_status_to CARLOCK_LOCKED
end
01B4: set_player $PLAYER_CHAR controllable 0
02A3: toggle_widescreen 1
018A: $BLIP_1 = create_checkpoint_at $X_1 $Y_1 $Z_1
018A: $BLIP_2 = create_checkpoint_at $X_2 $Y_2 $Z_2
018A: $BLIP_3 = create_checkpoint_at $X_3 $Y_3 $Z_3
018A: $BLIP_4 = create_checkpoint_at $X_4 $Y_4 $Z_4
018A: $BLIP_5 = create_checkpoint_at $X_5 $Y_5 $Z_5
018A: $BLIP_6 = create_checkpoint_at $X_6 $Y_6 $Z_6
018A: $BLIP_7 = create_checkpoint_at $X_7 $Y_7 $Z_7
018A: $BLIP_8 = create_checkpoint_at $X_8 $Y_8 $Z_8
018A: $BLIP_9 = create_checkpoint_at $X_9 $Y_9 $Z_9
018A: $BLIP_10 = create_checkpoint_at $X_10 $Y_10 $Z_10
018A: $BLIP_11 = create_checkpoint_at $X_11 $Y_11 $Z_11
018A: $BLIP_12 = create_checkpoint_at $X_12 $Y_12 $Z_12
018A: $BLIP_13 = create_checkpoint_at $X_13 $Y_13 $Z_13
018A: $BLIP_14 = create_checkpoint_at $X_14 $Y_14 $Z_14
018A: $BLIP_15 = create_checkpoint_at $X_15 $Y_15 $Z_15
018A: $BLIP_16 = create_checkpoint_at $X_16 $Y_16 $Z_16
018A: $BLIP_17 = create_checkpoint_at $X_17 $Y_17 $Z_17
018A: $BLIP_18 = create_checkpoint_at $X_18 $Y_18 $Z_18
018A: $BLIP_19 = create_checkpoint_at $X_19 $Y_19 $Z_19
018A: $BLIP_20 = create_checkpoint_at $X_20 $Y_20 $Z_20
while 001A: 20 > $COUNTER_4X4_PICKUPS
wait 0 ms
if
0038: $FLAG_BLIP_1 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_1 $Y_1 $Z_1
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_1 $Y_1 $Z_1 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_1
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_1 $Y_1 $Z_1
0004: $FLAG_BLIP_1 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_2 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_2 $Y_2 $Z_2
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_2 $Y_2 $Z_2 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_2
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_2 $Y_2 $Z_2
0004: $FLAG_BLIP_2 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_3 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_3 $Y_3 $Z_3
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_3 $Y_3 $Z_3 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_3
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_3 $Y_3 $Z_3
0004: $FLAG_BLIP_3 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_4 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_4 $Y_4 $Z_4
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_4 $Y_4 $Z_4 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_4
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_4 $Y_4 $Z_4
0004: $FLAG_BLIP_4 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_5 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_5 $Y_5 $Z_5
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_5 $Y_5 $Z_5 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_5
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_5 $Y_5 $Z_5
0004: $FLAG_BLIP_5 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_6 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_6 $Y_6 $Z_6
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_6 $Y_6 $Z_6 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_6
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_6 $Y_6 $Z_6
0004: $FLAG_BLIP_6 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_7 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_7 $Y_7 $Z_7
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_7 $Y_7 $Z_7 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_7
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_7 $Y_7 $Z_7
0004: $FLAG_BLIP_7 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_8 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_8 $Y_8 $Z_8
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_8 $Y_8 $Z_8 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_8
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_8 $Y_8 $Z_8
0004: $FLAG_BLIP_8 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_9 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_9 $Y_9 $Z_9
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_9 $Y_9 $Z_9 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_9
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_9 $Y_9 $Z_9
0004: $FLAG_BLIP_9 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_10 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_10 $Y_10 $Z_10
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_10 $Y_10 $Z_10 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_10
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_10 $Y_10 $Z_10
0004: $FLAG_BLIP_10 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_11 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_11 $Y_11 $Z_11
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_11 $Y_11 $Z_11 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_11
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_11 $Y_11 $Z_11
0004: $FLAG_BLIP_11 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_12 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_12 $Y_12 $Z_12
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_12 $Y_12 $Z_12 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_12
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_12 $Y_12 $Z_12
0004: $FLAG_BLIP_12 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_13 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_13 $Y_13 $Z_13
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_13 $Y_13 $Z_13 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_13
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_13 $Y_13 $Z_13
0004: $FLAG_BLIP_13 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_14 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_14 $Y_14 $Z_14
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_14 $Y_14 $Z_14 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_14
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_14 $Y_14 $Z_14
0004: $FLAG_BLIP_14 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_15 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_15 $Y_15 $Z_15
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_15 $Y_15 $Z_15 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_15
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_15 $Y_15 $Z_15
0004: $FLAG_BLIP_15 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_16 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_16 $Y_16 $Z_16
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_16 $Y_16 $Z_16 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_16
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_16 $Y_16 $Z_16
0004: $FLAG_BLIP_16 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_17 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_17 $Y_17 $Z_17
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_17 $Y_17 $Z_17 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_17
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_17 $Y_17 $Z_17
0004: $FLAG_BLIP_17 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_18 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_18 $Y_18 $Z_18
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_18 $Y_18 $Z_18 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_18
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_18 $Y_18 $Z_18
0004: $FLAG_BLIP_18 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_19 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_19 $Y_19 $Z_19
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_19 $Y_19 $Z_19 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_19
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_19 $Y_19 $Z_19
0004: $FLAG_BLIP_19 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $FLAG_BLIP_20 == 0
then
024F: create_corona 1.0 CORONATYPE_HEX FLARETYPE_NONE with_color 0 200 200 at_point $X_20 $Y_20 $Z_20
if
00F7: player $PLAYER_CHAR sphere 0 near_point_in_car $X_20 $Y_20 $Z_20 radius 2.0 2.0 2.0
then
0164: disable_marker $BLIP_20
018C: play_sound SOUND_PART_MISSION_COMPLETE at $X_20 $Y_20 $Z_20
0004: $FLAG_BLIP_20 = 1
gosub @MISSION_MAYHEM_CHECKPOINT_PICKED_UP
end
end
if
0038: $MULTISTOREY_MAYHEM_HELP_FINISHED == 1
then
if and
0038: $FLAG_INTRO_JUMP == 0
001A: 5 > $FLAG_INTRO
then
if
00E1: is_button_pressed PAD1 button CROSS
then
0004: $INTRO_TIME_LAPSED = 10501
0004: $FLAG_INTRO = 5
0004: $FLAG_INTRO_JUMP = 1
end
end
end
if
0038: $FLAG_INTRO == 0
then
01BD: $TIMER_INTRO_START = current_time_in_ms
015F: set_camera_position 281.4375 -526.25 26.37 CORONATYPE_HEX FLARETYPE_NONE.0 rotation 0.0 0.0
043C: set_game_sounds_fade 0
016A: fade 0 for 1500 ms
while fading
wait 0 ms
end
03CB: load_scene -328.0 132.0 25.0
0160: point_camera $X_1 $Y_1 $Z_1 switchstyle JUMP_CUT
016A: fade 1 for 1500 ms
while fading
wait 0 ms
end
00BC: print_now 'MM_1_A' duration 5500 ms flag 1 // ~g~You have ~y~2 minutes~g~ to collect ~y~20 checkpoints~g~ in the multistorey! ~g~You may collect them in ~y~ANY ORDER.
0004: $FLAG_INTRO = 1
end
if
0038: $FLAG_INTRO_JUMP == 0
then
01BD: $TIMER_INTRO_NOW = current_time_in_ms
0084: $INTRO_TIME_LAPSED = $TIMER_INTRO_NOW
0060: $INTRO_TIME_LAPSED -= $TIMER_INTRO_START
end
if and
0018: $INTRO_TIME_LAPSED > 3500
0038: $FLAG_INTRO == 1
then
0160: point_camera $X_2 $Y_2 $Z_2 switchstyle INTERPOLATION
0004: $FLAG_INTRO = 2
end
if and
0018: $INTRO_TIME_LAPSED > 5500
0038: $FLAG_INTRO == 2
then
00BC: print_now 'MM_1_C' duration 5000 ms flag 1 // ~g~That's 20 seconds, plus ~y~5 SECONDS~g~ for each checkpoint. ~g~The timer will start ~y~IMMEDIATELY.
0004: $FLAG_INTRO = 3
end
if and
0018: $INTRO_TIME_LAPSED > 7000
0038: $FLAG_INTRO == 3
then
0160: point_camera $X_3 $Y_3 $Z_3 switchstyle INTERPOLATION
0004: $FLAG_INTRO = 4
end
if and
0018: $INTRO_TIME_LAPSED > 10500
0038: $FLAG_INTRO == 4
then
016A: fade 0 for 1500 ms
while fading
wait 0 ms
end
00BE: clear_prints
03CB: load_scene -230.0 270.0 20.0
02EB: restore_camera_jumpcut
02A3: toggle_widescreen 0
01B4: set_player $PLAYER_CHAR controllable 1
if
8119: not car $PLAYER_4X4 wrecked
then
020A: set_car $PLAYER_4X4 door_status_to CARLOCK_UNLOCKED
end
010D: set_player $PLAYER_CHAR wanted_level_to $WANTED_4X4
016A: fade 1 for 1500 ms
while fading
wait 0 ms
end
014E: start_timer_at $TIMER_4X4
043C: set_game_sounds_fade 1
0004: $FLAG_INTRO = 5
0004: $MULTISTOREY_MAYHEM_HELP_FINISHED = 1
end
if
001A: 1 > $TIMER_4X4
then
00BC: print_now 'TAXI2' duration 3000 ms flag 1 // ~r~You're out of time!
goto @MISSION_MAYHEM_FAILED
end
if
80DE: not is_player_in_model $PLAYER_CHAR model #STALLION
then
00BC: print_now 'T4X4_F' duration 3000 ms flag 1 // ~r~You bailed! Too tough for you?!
goto @MISSION_MAYHEM_FAILED
end
end
goto @MISSION_MAYHEM_PASSED
/////////////////////////////////////////
:MISSION_MAYHEM_CHECKPOINT_PICKED_UP
0008: $COUNTER_4X4_PICKUPS += 1
0008: $TIMER_4X4 += 5000
01E5: text_1number_highpriority 'MM_1_B' number $COUNTER_4X4_PICKUPS duration 3000 ms flag 1 // ~1~ of 20!
return
// --------------------------Mission failed-----------------------------------------------
:MISSION_MAYHEM_FAILED
00BA: print_big 'M_FAIL' duration 2000 ms style 1 // MISSION FAILED!
goto @MISSION_END_MAYHEM
// -------------------------Mission passed-------------------------------------------------
:MISSION_MAYHEM_PASSED
0004: $RECORD_TEMP = 120000
0060: $RECORD_TEMP -= $TIMER_4X4
0014: $RECORD_TEMP /= 1000
if or
0038: $MULTISTOREY_MAYHEM_COMPLETED == 0
001C: $MULTISTOREY_MAYHEM_BEST_TIME > $RECORD_TEMP
then
0084: $MULTISTOREY_MAYHEM_BEST_TIME = $RECORD_TEMP
end
01E3: text_1number_styled 'M_PASS' number 30000 duration 5000 ms style 1 // MISSION PASSED! $~1~
0394: play_music 1
0110: clear_player $PLAYER_CHAR wanted_level
0109: player $PLAYER_CHAR money += 30000
0400: save_mayhem_time $MULTISTOREY_MAYHEM_BEST_TIME
if
0038: $MULTISTOREY_MAYHEM_COMPLETED == 0
then
0318: set_latest_mission_passed 'T4X4_3' // 'GRIPPED!'
0004: $MULTISTOREY_MAYHEM_COMPLETED = 1
030C: set_mission_points += 1
end
goto @MISSION_END_MAYHEM
/////////////////////////////////////////
// mission cleanup
:MISSION_CLEANUP_MAYHEM
02EB: restore_camera_jumpcut
02A3: toggle_widescreen 0
01B4: set_player $PLAYER_CHAR controllable 1
0164: disable_marker $BLIP_1
0164: disable_marker $BLIP_2
0164: disable_marker $BLIP_3
0164: disable_marker $BLIP_4
0164: disable_marker $BLIP_5
0164: disable_marker $BLIP_6
0164: disable_marker $BLIP_7
0164: disable_marker $BLIP_8
0164: disable_marker $BLIP_9
0164: disable_marker $BLIP_10
0164: disable_marker $BLIP_11
0164: disable_marker $BLIP_12
0164: disable_marker $BLIP_13
0164: disable_marker $BLIP_14
0164: disable_marker $BLIP_15
0164: disable_marker $BLIP_16
0164: disable_marker $BLIP_17
0164: disable_marker $BLIP_18
0164: disable_marker $BLIP_19
0164: disable_marker $BLIP_20
014F: stop_timer $TIMER_4X4
0004: $ONMISSION = 0
00D8: mission_has_finished
return