Debian Codegraph @

scripts/LEVEL15.cpp

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /////////////////////////////////////////////////////////////////////
20 // D.A.L.L.A.S. Generated Level Script - DLL Source File
21 //
22 // Filename: Level15.cpp
23 // Version: 3
24 /////////////////////////////////////////////////////////////////////
25 #include <stdio.h>
26 #include <stdlib.h>
27 #include <string.h>
28 #include <ctype.h>
29 #include "osiris_import.h"
30 #include "osiris_common.h"
31 #include "DallasFuncs.cpp"
32
33 #include "module.h"
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 DLLEXPORT char STDCALL InitializeDLL(tOSIRISModuleInit *func_list);
39 DLLEXPORT void STDCALL ShutdownDLL(void);
40 DLLEXPORT int STDCALL GetGOScriptID(const char *name, uint8_t is_door);
41 DLLEXPORT void STDCALLPTR CreateInstance(int id);
42 DLLEXPORT void STDCALL DestroyInstance(int id, void *ptr);
43 DLLEXPORT int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data);
44 DLLEXPORT int STDCALL GetTriggerScriptID(int trigger_room, int trigger_face);
45 DLLEXPORT int STDCALL GetCOScriptList(int **list, int **id_list);
46 DLLEXPORT int STDCALL SaveRestoreState(void *file_ptr, uint8_t saving_state);
47 #ifdef __cplusplus
48 }
49 #endif
50
51 // =================
52 // Script ID Numbers
53 // =================
54 #define ID_LEVEL_0000 0x000
55
56 #define ID_CUSTOM_OBJECT_10FD 0x001
57 #define ID_CUSTOM_OBJECT_084D 0x002
58 #define ID_CUSTOM_OBJECT_084E 0x003
59 #define ID_CUSTOM_OBJECT_084F 0x004
60 #define ID_CUSTOM_OBJECT_084C 0x005
61 #define ID_CUSTOM_OBJECT_1913 0x006
62 #define ID_CUSTOM_OBJECT_0851 0x007
63 #define ID_CUSTOM_OBJECT_0850 0x008
64 #define ID_CUSTOM_OBJECT_0852 0x009
65 #define ID_CUSTOM_OBJECT_0858 0x00a
66 #define ID_CUSTOM_OBJECT_0857 0x00b
67 #define ID_CUSTOM_OBJECT_0856 0x00c
68 #define ID_CUSTOM_OBJECT_0855 0x00d
69 #define ID_CUSTOM_OBJECT_399D 0x00e
70 #define ID_CUSTOM_OBJECT_210D 0x00f
71 #define ID_CUSTOM_OBJECT_210E 0x010
72 #define ID_CUSTOM_OBJECT_190F 0x011
73 #define ID_CUSTOM_OBJECT_2801 0x012
74 #define ID_CUSTOM_OBJECT_1828 0x013
75 #define ID_CUSTOM_OBJECT_1015 0x014
76 #define ID_CUSTOM_OBJECT_0848 0x015
77 #define ID_CUSTOM_OBJECT_0849 0x016
78 #define ID_CUSTOM_OBJECT_0847 0x017
79 #define ID_CUSTOM_OBJECT_3831 0x018
80 #define ID_CUSTOM_OBJECT_2111 0x019
81 #define ID_CUSTOM_OBJECT_0AB1 0x01a
82
83 #define ID_TRIGGER_0000 0x01b
84 #define ID_TRIGGER_0001 0x01c
85 #define ID_TRIGGER_0002 0x01d
86 #define ID_TRIGGER_0005 0x01e
87 #define ID_TRIGGER_0004 0x01f
88 #define ID_TRIGGER_0003 0x020
89 #define ID_TRIGGER_0008 0x021
90 #define ID_TRIGGER_0007 0x022
91 #define ID_TRIGGER_0006 0x023
92 #define ID_TRIGGER_0009 0x024
93 #define ID_TRIGGER_000B 0x025
94 #define ID_TRIGGER_0020 0x026
95 #define ID_TRIGGER_001E 0x027
96 #define ID_TRIGGER_001C 0x028
97 #define ID_TRIGGER_001A 0x029
98 #define ID_TRIGGER_0017 0x02a
99 #define ID_TRIGGER_001B 0x02b
100 #define ID_TRIGGER_0018 0x02c
101 #define ID_TRIGGER_0015 0x02d
102 #define ID_TRIGGER_0013 0x02e
103 #define ID_TRIGGER_0011 0x02f
104 #define ID_TRIGGER_0010 0x030
105 #define ID_TRIGGER_001F 0x031
106 #define ID_TRIGGER_001D 0x032
107 #define ID_TRIGGER_0016 0x033
108 #define ID_TRIGGER_0014 0x034
109 #define ID_TRIGGER_0012 0x035
110 #define ID_TRIGGER_0019 0x036
111 #define ID_TRIGGER_000F 0x037
112 #define ID_TRIGGER_000A 0x038
113
114 // ========================
115 // Script Class Definitions
116 // ========================
117
118 class BaseScript {
119 public:
120 BaseScript();
121 ~BaseScript();
122 virtual int16_t CallEvent(int event, tOSIRISEventInfo *data);
123 };
124
125 class LevelScript_0000 : public BaseScript {
126 public:
127 int16_t CallEvent(int event, tOSIRISEventInfo *data);
128 };
129
130 class CustomObjectScript_10FD : public BaseScript {
131 public:
132 int16_t CallEvent(int event, tOSIRISEventInfo *data);
133 };
134
135 class CustomObjectScript_084D : public BaseScript {
136 public:
137 int16_t CallEvent(int event, tOSIRISEventInfo *data);
138 };
139
140 class CustomObjectScript_084E : public BaseScript {
141 public:
142 int16_t CallEvent(int event, tOSIRISEventInfo *data);
143 };
144
145 class CustomObjectScript_084F : public BaseScript {
146 public:
147 int16_t CallEvent(int event, tOSIRISEventInfo *data);
148 };
149
150 class CustomObjectScript_084C : public BaseScript {
151 public:
152 int16_t CallEvent(int event, tOSIRISEventInfo *data);
153 };
154
155 class CustomObjectScript_1913 : public BaseScript {
156 public:
157 int16_t CallEvent(int event, tOSIRISEventInfo *data);
158 };
159
160 class CustomObjectScript_0851 : public BaseScript {
161 public:
162 int16_t CallEvent(int event, tOSIRISEventInfo *data);
163 };
164
165 class CustomObjectScript_0850 : public BaseScript {
166 public:
167 int16_t CallEvent(int event, tOSIRISEventInfo *data);
168 };
169
170 class CustomObjectScript_0852 : public BaseScript {
171 public:
172 int16_t CallEvent(int event, tOSIRISEventInfo *data);
173 };
174
175 class CustomObjectScript_0858 : public BaseScript {
176 public:
177 int16_t CallEvent(int event, tOSIRISEventInfo *data);
178 };
179
180 class CustomObjectScript_0857 : public BaseScript {
181 public:
182 int16_t CallEvent(int event, tOSIRISEventInfo *data);
183 };
184
185 class CustomObjectScript_0856 : public BaseScript {
186 public:
187 int16_t CallEvent(int event, tOSIRISEventInfo *data);
188 };
189
190 class CustomObjectScript_0855 : public BaseScript {
191 public:
192 int16_t CallEvent(int event, tOSIRISEventInfo *data);
193 };
194
195 class CustomObjectScript_399D : public BaseScript {
196 public:
197 int16_t CallEvent(int event, tOSIRISEventInfo *data);
198 };
199
200 class CustomObjectScript_210D : public BaseScript {
201 public:
202 int16_t CallEvent(int event, tOSIRISEventInfo *data);
203 };
204
205 class CustomObjectScript_210E : public BaseScript {
206 public:
207 int16_t CallEvent(int event, tOSIRISEventInfo *data);
208 };
209
210 class CustomObjectScript_190F : public BaseScript {
211 public:
212 int16_t CallEvent(int event, tOSIRISEventInfo *data);
213 };
214
215 class CustomObjectScript_2801 : public BaseScript {
216 public:
217 int16_t CallEvent(int event, tOSIRISEventInfo *data);
218 };
219
220 class CustomObjectScript_1828 : public BaseScript {
221 public:
222 int16_t CallEvent(int event, tOSIRISEventInfo *data);
223 };
224
225 class CustomObjectScript_1015 : public BaseScript {
226 public:
227 int16_t CallEvent(int event, tOSIRISEventInfo *data);
228 };
229
230 class CustomObjectScript_0848 : public BaseScript {
231 public:
232 int16_t CallEvent(int event, tOSIRISEventInfo *data);
233 };
234
235 class CustomObjectScript_0849 : public BaseScript {
236 public:
237 int16_t CallEvent(int event, tOSIRISEventInfo *data);
238 };
239
240 class CustomObjectScript_0847 : public BaseScript {
241 public:
242 int16_t CallEvent(int event, tOSIRISEventInfo *data);
243 };
244
245 class CustomObjectScript_3831 : public BaseScript {
246 public:
247 int16_t CallEvent(int event, tOSIRISEventInfo *data);
248 };
249
250 class CustomObjectScript_2111 : public BaseScript {
251 public:
252 int16_t CallEvent(int event, tOSIRISEventInfo *data);
253 };
254
255 class CustomObjectScript_0AB1 : public BaseScript {
256 public:
257 int16_t CallEvent(int event, tOSIRISEventInfo *data);
258 };
259
260 class TriggerScript_0000 : public BaseScript {
261 public:
262 int16_t CallEvent(int event, tOSIRISEventInfo *data);
263 };
264
265 class TriggerScript_0001 : public BaseScript {
266 public:
267 int16_t CallEvent(int event, tOSIRISEventInfo *data);
268 };
269
270 class TriggerScript_0002 : public BaseScript {
271 public:
272 int16_t CallEvent(int event, tOSIRISEventInfo *data);
273 };
274
275 class TriggerScript_0005 : public BaseScript {
276 public:
277 int16_t CallEvent(int event, tOSIRISEventInfo *data);
278 };
279
280 class TriggerScript_0004 : public BaseScript {
281 public:
282 int16_t CallEvent(int event, tOSIRISEventInfo *data);
283 };
284
285 class TriggerScript_0003 : public BaseScript {
286 public:
287 int16_t CallEvent(int event, tOSIRISEventInfo *data);
288 };
289
290 class TriggerScript_0008 : public BaseScript {
291 public:
292 int16_t CallEvent(int event, tOSIRISEventInfo *data);
293 };
294
295 class TriggerScript_0007 : public BaseScript {
296 public:
297 int16_t CallEvent(int event, tOSIRISEventInfo *data);
298 };
299
300 class TriggerScript_0006 : public BaseScript {
301 public:
302 int16_t CallEvent(int event, tOSIRISEventInfo *data);
303 };
304
305 class TriggerScript_0009 : public BaseScript {
306 public:
307 int16_t CallEvent(int event, tOSIRISEventInfo *data);
308 };
309
310 class TriggerScript_000B : public BaseScript {
311 public:
312 int16_t CallEvent(int event, tOSIRISEventInfo *data);
313 };
314
315 class TriggerScript_0020 : public BaseScript {
316 public:
317 int16_t CallEvent(int event, tOSIRISEventInfo *data);
318 };
319
320 class TriggerScript_001E : public BaseScript {
321 public:
322 int16_t CallEvent(int event, tOSIRISEventInfo *data);
323 };
324
325 class TriggerScript_001C : public BaseScript {
326 public:
327 int16_t CallEvent(int event, tOSIRISEventInfo *data);
328 };
329
330 class TriggerScript_001A : public BaseScript {
331 public:
332 int16_t CallEvent(int event, tOSIRISEventInfo *data);
333 };
334
335 class TriggerScript_0017 : public BaseScript {
336 public:
337 int16_t CallEvent(int event, tOSIRISEventInfo *data);
338 };
339
340 class TriggerScript_001B : public BaseScript {
341 public:
342 int16_t CallEvent(int event, tOSIRISEventInfo *data);
343 };
344
345 class TriggerScript_0018 : public BaseScript {
346 public:
347 int16_t CallEvent(int event, tOSIRISEventInfo *data);
348 };
349
350 class TriggerScript_0015 : public BaseScript {
351 public:
352 int16_t CallEvent(int event, tOSIRISEventInfo *data);
353 };
354
355 class TriggerScript_0013 : public BaseScript {
356 public:
357 int16_t CallEvent(int event, tOSIRISEventInfo *data);
358 };
359
360 class TriggerScript_0011 : public BaseScript {
361 public:
362 int16_t CallEvent(int event, tOSIRISEventInfo *data);
363 };
364
365 class TriggerScript_0010 : public BaseScript {
366 public:
367 int16_t CallEvent(int event, tOSIRISEventInfo *data);
368 };
369
370 class TriggerScript_001F : public BaseScript {
371 public:
372 int16_t CallEvent(int event, tOSIRISEventInfo *data);
373 };
374
375 class TriggerScript_001D : public BaseScript {
376 public:
377 int16_t CallEvent(int event, tOSIRISEventInfo *data);
378 };
379
380 class TriggerScript_0016 : public BaseScript {
381 public:
382 int16_t CallEvent(int event, tOSIRISEventInfo *data);
383 };
384
385 class TriggerScript_0014 : public BaseScript {
386 public:
387 int16_t CallEvent(int event, tOSIRISEventInfo *data);
388 };
389
390 class TriggerScript_0012 : public BaseScript {
391 public:
392 int16_t CallEvent(int event, tOSIRISEventInfo *data);
393 };
394
395 class TriggerScript_0019 : public BaseScript {
396 public:
397 int16_t CallEvent(int event, tOSIRISEventInfo *data);
398 };
399
400 class TriggerScript_000F : public BaseScript {
401 public:
402 int16_t CallEvent(int event, tOSIRISEventInfo *data);
403 };
404
405 class TriggerScript_000A : public BaseScript {
406 public:
407 int16_t CallEvent(int event, tOSIRISEventInfo *data);
408 };
409
410 // ======================
411 // Global Action Counters
412 // ======================
413
414 #define MAX_ACTION_CTR_VALUE 100000
415
416 int ScriptActionCtr_000 = 0;
417 int ScriptActionCtr_034 = 0;
418 int ScriptActionCtr_001 = 0;
419 int ScriptActionCtr_020 = 0;
420 int ScriptActionCtr_021 = 0;
421 int ScriptActionCtr_002 = 0;
422 int ScriptActionCtr_053 = 0;
423 int ScriptActionCtr_003 = 0;
424 int ScriptActionCtr_004 = 0;
425 int ScriptActionCtr_005 = 0;
426 int ScriptActionCtr_006 = 0;
427 int ScriptActionCtr_008 = 0;
428 int ScriptActionCtr_009 = 0;
429 int ScriptActionCtr_010 = 0;
430 int ScriptActionCtr_011 = 0;
431 int ScriptActionCtr_013 = 0;
432 int ScriptActionCtr_014 = 0;
433 int ScriptActionCtr_012 = 0;
434 int ScriptActionCtr_007 = 0;
435 int ScriptActionCtr_015 = 0;
436 int ScriptActionCtr_016 = 0;
437 int ScriptActionCtr_017 = 0;
438 int ScriptActionCtr_026 = 0;
439 int ScriptActionCtr_022 = 0;
440 int ScriptActionCtr_023 = 0;
441 int ScriptActionCtr_028 = 0;
442 int ScriptActionCtr_027 = 0;
443 int ScriptActionCtr_024 = 0;
444 int ScriptActionCtr_030 = 0;
445 int ScriptActionCtr_029 = 0;
446 int ScriptActionCtr_025 = 0;
447 int ScriptActionCtr_018 = 0;
448 int ScriptActionCtr_019 = 0;
449 int ScriptActionCtr_033 = 0;
450 int ScriptActionCtr_032 = 0;
451 int ScriptActionCtr_031 = 0;
452 int ScriptActionCtr_038 = 0;
453 int ScriptActionCtr_039 = 0;
454 int ScriptActionCtr_050 = 0;
455 int ScriptActionCtr_036 = 0;
456 int ScriptActionCtr_037 = 0;
457 int ScriptActionCtr_040 = 0;
458 int ScriptActionCtr_051 = 0;
459 int ScriptActionCtr_041 = 0;
460 int ScriptActionCtr_042 = 0;
461 int ScriptActionCtr_044 = 0;
462 int ScriptActionCtr_045 = 0;
463 int ScriptActionCtr_046 = 0;
464 int ScriptActionCtr_047 = 0;
465 int ScriptActionCtr_052 = 0;
466 int ScriptActionCtr_058 = 0;
467 int ScriptActionCtr_059 = 0;
468 int ScriptActionCtr_063 = 0;
469 int ScriptActionCtr_062 = 0;
470 int ScriptActionCtr_061 = 0;
471 int ScriptActionCtr_060 = 0;
472 int ScriptActionCtr_077 = 0;
473 int ScriptActionCtr_076 = 0;
474 int ScriptActionCtr_075 = 0;
475 int ScriptActionCtr_074 = 0;
476 int ScriptActionCtr_073 = 0;
477 int ScriptActionCtr_072 = 0;
478 int ScriptActionCtr_071 = 0;
479 int ScriptActionCtr_070 = 0;
480 int ScriptActionCtr_069 = 0;
481 int ScriptActionCtr_068 = 0;
482 int ScriptActionCtr_067 = 0;
483 int ScriptActionCtr_066 = 0;
484 int ScriptActionCtr_065 = 0;
485 int ScriptActionCtr_064 = 0;
486 int ScriptActionCtr_078 = 0;
487 int ScriptActionCtr_079 = 0;
488 int ScriptActionCtr_082 = 0;
489 int ScriptActionCtr_081 = 0;
490 int ScriptActionCtr_080 = 0;
491 int ScriptActionCtr_083 = 0;
492 int ScriptActionCtr_085 = 0;
493 int ScriptActionCtr_084 = 0;
494 int ScriptActionCtr_090 = 0;
495 int ScriptActionCtr_035 = 0;
496
497 // ========================================
498 // Function to Clear Global Action Counters
499 // ========================================
500 void ClearGlobalActionCtrs(void) {
501 ScriptActionCtr_000 = 0;
502 ScriptActionCtr_034 = 0;
503 ScriptActionCtr_001 = 0;
504 ScriptActionCtr_020 = 0;
505 ScriptActionCtr_021 = 0;
506 ScriptActionCtr_002 = 0;
507 ScriptActionCtr_053 = 0;
508 ScriptActionCtr_003 = 0;
509 ScriptActionCtr_004 = 0;
510 ScriptActionCtr_005 = 0;
511 ScriptActionCtr_006 = 0;
512 ScriptActionCtr_008 = 0;
513 ScriptActionCtr_009 = 0;
514 ScriptActionCtr_010 = 0;
515 ScriptActionCtr_011 = 0;
516 ScriptActionCtr_013 = 0;
517 ScriptActionCtr_014 = 0;
518 ScriptActionCtr_012 = 0;
519 ScriptActionCtr_007 = 0;
520 ScriptActionCtr_015 = 0;
521 ScriptActionCtr_016 = 0;
522 ScriptActionCtr_017 = 0;
523 ScriptActionCtr_026 = 0;
524 ScriptActionCtr_022 = 0;
525 ScriptActionCtr_023 = 0;
526 ScriptActionCtr_028 = 0;
527 ScriptActionCtr_027 = 0;
528 ScriptActionCtr_024 = 0;
529 ScriptActionCtr_030 = 0;
530 ScriptActionCtr_029 = 0;
531 ScriptActionCtr_025 = 0;
532 ScriptActionCtr_018 = 0;
533 ScriptActionCtr_019 = 0;
534 ScriptActionCtr_033 = 0;
535 ScriptActionCtr_032 = 0;
536 ScriptActionCtr_031 = 0;
537 ScriptActionCtr_038 = 0;
538 ScriptActionCtr_039 = 0;
539 ScriptActionCtr_050 = 0;
540 ScriptActionCtr_036 = 0;
541 ScriptActionCtr_037 = 0;
542 ScriptActionCtr_040 = 0;
543 ScriptActionCtr_051 = 0;
544 ScriptActionCtr_041 = 0;
545 ScriptActionCtr_042 = 0;
546 ScriptActionCtr_044 = 0;
547 ScriptActionCtr_045 = 0;
548 ScriptActionCtr_046 = 0;
549 ScriptActionCtr_047 = 0;
550 ScriptActionCtr_052 = 0;
551 ScriptActionCtr_058 = 0;
552 ScriptActionCtr_059 = 0;
553 ScriptActionCtr_063 = 0;
554 ScriptActionCtr_062 = 0;
555 ScriptActionCtr_061 = 0;
556 ScriptActionCtr_060 = 0;
557 ScriptActionCtr_077 = 0;
558 ScriptActionCtr_076 = 0;
559 ScriptActionCtr_075 = 0;
560 ScriptActionCtr_074 = 0;
561 ScriptActionCtr_073 = 0;
562 ScriptActionCtr_072 = 0;
563 ScriptActionCtr_071 = 0;
564 ScriptActionCtr_070 = 0;
565 ScriptActionCtr_069 = 0;
566 ScriptActionCtr_068 = 0;
567 ScriptActionCtr_067 = 0;
568 ScriptActionCtr_066 = 0;
569 ScriptActionCtr_065 = 0;
570 ScriptActionCtr_064 = 0;
571 ScriptActionCtr_078 = 0;
572 ScriptActionCtr_079 = 0;
573 ScriptActionCtr_082 = 0;
574 ScriptActionCtr_081 = 0;
575 ScriptActionCtr_080 = 0;
576 ScriptActionCtr_083 = 0;
577 ScriptActionCtr_085 = 0;
578 ScriptActionCtr_084 = 0;
579 ScriptActionCtr_090 = 0;
580 ScriptActionCtr_035 = 0;
581 }
582
583 // ========================================
584 // Function to Save Global Action Counters
585 // ========================================
586 void SaveGlobalActionCtrs(void *file_ptr) {
587 File_WriteInt(ScriptActionCtr_000, file_ptr);
588 File_WriteInt(ScriptActionCtr_034, file_ptr);
589 File_WriteInt(ScriptActionCtr_001, file_ptr);
590 File_WriteInt(ScriptActionCtr_020, file_ptr);
591 File_WriteInt(ScriptActionCtr_021, file_ptr);
592 File_WriteInt(ScriptActionCtr_002, file_ptr);
593 File_WriteInt(ScriptActionCtr_053, file_ptr);
594 File_WriteInt(ScriptActionCtr_003, file_ptr);
595 File_WriteInt(ScriptActionCtr_004, file_ptr);
596 File_WriteInt(ScriptActionCtr_005, file_ptr);
597 File_WriteInt(ScriptActionCtr_006, file_ptr);
598 File_WriteInt(ScriptActionCtr_008, file_ptr);
599 File_WriteInt(ScriptActionCtr_009, file_ptr);
600 File_WriteInt(ScriptActionCtr_010, file_ptr);
601 File_WriteInt(ScriptActionCtr_011, file_ptr);
602 File_WriteInt(ScriptActionCtr_013, file_ptr);
603 File_WriteInt(ScriptActionCtr_014, file_ptr);
604 File_WriteInt(ScriptActionCtr_012, file_ptr);
605 File_WriteInt(ScriptActionCtr_007, file_ptr);
606 File_WriteInt(ScriptActionCtr_015, file_ptr);
607 File_WriteInt(ScriptActionCtr_016, file_ptr);
608 File_WriteInt(ScriptActionCtr_017, file_ptr);
609 File_WriteInt(ScriptActionCtr_026, file_ptr);
610 File_WriteInt(ScriptActionCtr_022, file_ptr);
611 File_WriteInt(ScriptActionCtr_023, file_ptr);
612 File_WriteInt(ScriptActionCtr_028, file_ptr);
613 File_WriteInt(ScriptActionCtr_027, file_ptr);
614 File_WriteInt(ScriptActionCtr_024, file_ptr);
615 File_WriteInt(ScriptActionCtr_030, file_ptr);
616 File_WriteInt(ScriptActionCtr_029, file_ptr);
617 File_WriteInt(ScriptActionCtr_025, file_ptr);
618 File_WriteInt(ScriptActionCtr_018, file_ptr);
619 File_WriteInt(ScriptActionCtr_019, file_ptr);
620 File_WriteInt(ScriptActionCtr_033, file_ptr);
621 File_WriteInt(ScriptActionCtr_032, file_ptr);
622 File_WriteInt(ScriptActionCtr_031, file_ptr);
623 File_WriteInt(ScriptActionCtr_038, file_ptr);
624 File_WriteInt(ScriptActionCtr_039, file_ptr);
625 File_WriteInt(ScriptActionCtr_050, file_ptr);
626 File_WriteInt(ScriptActionCtr_036, file_ptr);
627 File_WriteInt(ScriptActionCtr_037, file_ptr);
628 File_WriteInt(ScriptActionCtr_040, file_ptr);
629 File_WriteInt(ScriptActionCtr_051, file_ptr);
630 File_WriteInt(ScriptActionCtr_041, file_ptr);
631 File_WriteInt(ScriptActionCtr_042, file_ptr);
632 File_WriteInt(ScriptActionCtr_044, file_ptr);
633 File_WriteInt(ScriptActionCtr_045, file_ptr);
634 File_WriteInt(ScriptActionCtr_046, file_ptr);
635 File_WriteInt(ScriptActionCtr_047, file_ptr);
636 File_WriteInt(ScriptActionCtr_052, file_ptr);
637 File_WriteInt(ScriptActionCtr_058, file_ptr);
638 File_WriteInt(ScriptActionCtr_059, file_ptr);
639 File_WriteInt(ScriptActionCtr_063, file_ptr);
640 File_WriteInt(ScriptActionCtr_062, file_ptr);
641 File_WriteInt(ScriptActionCtr_061, file_ptr);
642 File_WriteInt(ScriptActionCtr_060, file_ptr);
643 File_WriteInt(ScriptActionCtr_077, file_ptr);
644 File_WriteInt(ScriptActionCtr_076, file_ptr);
645 File_WriteInt(ScriptActionCtr_075, file_ptr);
646 File_WriteInt(ScriptActionCtr_074, file_ptr);
647 File_WriteInt(ScriptActionCtr_073, file_ptr);
648 File_WriteInt(ScriptActionCtr_072, file_ptr);
649 File_WriteInt(ScriptActionCtr_071, file_ptr);
650 File_WriteInt(ScriptActionCtr_070, file_ptr);
651 File_WriteInt(ScriptActionCtr_069, file_ptr);
652 File_WriteInt(ScriptActionCtr_068, file_ptr);
653 File_WriteInt(ScriptActionCtr_067, file_ptr);
654 File_WriteInt(ScriptActionCtr_066, file_ptr);
655 File_WriteInt(ScriptActionCtr_065, file_ptr);
656 File_WriteInt(ScriptActionCtr_064, file_ptr);
657 File_WriteInt(ScriptActionCtr_078, file_ptr);
658 File_WriteInt(ScriptActionCtr_079, file_ptr);
659 File_WriteInt(ScriptActionCtr_082, file_ptr);
660 File_WriteInt(ScriptActionCtr_081, file_ptr);
661 File_WriteInt(ScriptActionCtr_080, file_ptr);
662 File_WriteInt(ScriptActionCtr_083, file_ptr);
663 File_WriteInt(ScriptActionCtr_085, file_ptr);
664 File_WriteInt(ScriptActionCtr_084, file_ptr);
665 File_WriteInt(ScriptActionCtr_090, file_ptr);
666 File_WriteInt(ScriptActionCtr_035, file_ptr);
667 }
668
669 // ===========================================
670 // Function to Restore Global Action Counters
671 // ===========================================
672 void RestoreGlobalActionCtrs(void *file_ptr) {
673 ScriptActionCtr_000 = File_ReadInt(file_ptr);
674 ScriptActionCtr_034 = File_ReadInt(file_ptr);
675 ScriptActionCtr_001 = File_ReadInt(file_ptr);
676 ScriptActionCtr_020 = File_ReadInt(file_ptr);
677 ScriptActionCtr_021 = File_ReadInt(file_ptr);
678 ScriptActionCtr_002 = File_ReadInt(file_ptr);
679 ScriptActionCtr_053 = File_ReadInt(file_ptr);
680 ScriptActionCtr_003 = File_ReadInt(file_ptr);
681 ScriptActionCtr_004 = File_ReadInt(file_ptr);
682 ScriptActionCtr_005 = File_ReadInt(file_ptr);
683 ScriptActionCtr_006 = File_ReadInt(file_ptr);
684 ScriptActionCtr_008 = File_ReadInt(file_ptr);
685 ScriptActionCtr_009 = File_ReadInt(file_ptr);
686 ScriptActionCtr_010 = File_ReadInt(file_ptr);
687 ScriptActionCtr_011 = File_ReadInt(file_ptr);
688 ScriptActionCtr_013 = File_ReadInt(file_ptr);
689 ScriptActionCtr_014 = File_ReadInt(file_ptr);
690 ScriptActionCtr_012 = File_ReadInt(file_ptr);
691 ScriptActionCtr_007 = File_ReadInt(file_ptr);
692 ScriptActionCtr_015 = File_ReadInt(file_ptr);
693 ScriptActionCtr_016 = File_ReadInt(file_ptr);
694 ScriptActionCtr_017 = File_ReadInt(file_ptr);
695 ScriptActionCtr_026 = File_ReadInt(file_ptr);
696 ScriptActionCtr_022 = File_ReadInt(file_ptr);
697 ScriptActionCtr_023 = File_ReadInt(file_ptr);
698 ScriptActionCtr_028 = File_ReadInt(file_ptr);
699 ScriptActionCtr_027 = File_ReadInt(file_ptr);
700 ScriptActionCtr_024 = File_ReadInt(file_ptr);
701 ScriptActionCtr_030 = File_ReadInt(file_ptr);
702 ScriptActionCtr_029 = File_ReadInt(file_ptr);
703 ScriptActionCtr_025 = File_ReadInt(file_ptr);
704 ScriptActionCtr_018 = File_ReadInt(file_ptr);
705 ScriptActionCtr_019 = File_ReadInt(file_ptr);
706 ScriptActionCtr_033 = File_ReadInt(file_ptr);
707 ScriptActionCtr_032 = File_ReadInt(file_ptr);
708 ScriptActionCtr_031 = File_ReadInt(file_ptr);
709 ScriptActionCtr_038 = File_ReadInt(file_ptr);
710 ScriptActionCtr_039 = File_ReadInt(file_ptr);
711 ScriptActionCtr_050 = File_ReadInt(file_ptr);
712 ScriptActionCtr_036 = File_ReadInt(file_ptr);
713 ScriptActionCtr_037 = File_ReadInt(file_ptr);
714 ScriptActionCtr_040 = File_ReadInt(file_ptr);
715 ScriptActionCtr_051 = File_ReadInt(file_ptr);
716 ScriptActionCtr_041 = File_ReadInt(file_ptr);
717 ScriptActionCtr_042 = File_ReadInt(file_ptr);
718 ScriptActionCtr_044 = File_ReadInt(file_ptr);
719 ScriptActionCtr_045 = File_ReadInt(file_ptr);
720 ScriptActionCtr_046 = File_ReadInt(file_ptr);
721 ScriptActionCtr_047 = File_ReadInt(file_ptr);
722 ScriptActionCtr_052 = File_ReadInt(file_ptr);
723 ScriptActionCtr_058 = File_ReadInt(file_ptr);
724 ScriptActionCtr_059 = File_ReadInt(file_ptr);
725 ScriptActionCtr_063 = File_ReadInt(file_ptr);
726 ScriptActionCtr_062 = File_ReadInt(file_ptr);
727 ScriptActionCtr_061 = File_ReadInt(file_ptr);
728 ScriptActionCtr_060 = File_ReadInt(file_ptr);
729 ScriptActionCtr_077 = File_ReadInt(file_ptr);
730 ScriptActionCtr_076 = File_ReadInt(file_ptr);
731 ScriptActionCtr_075 = File_ReadInt(file_ptr);
732 ScriptActionCtr_074 = File_ReadInt(file_ptr);
733 ScriptActionCtr_073 = File_ReadInt(file_ptr);
734 ScriptActionCtr_072 = File_ReadInt(file_ptr);
735 ScriptActionCtr_071 = File_ReadInt(file_ptr);
736 ScriptActionCtr_070 = File_ReadInt(file_ptr);
737 ScriptActionCtr_069 = File_ReadInt(file_ptr);
738 ScriptActionCtr_068 = File_ReadInt(file_ptr);
739 ScriptActionCtr_067 = File_ReadInt(file_ptr);
740 ScriptActionCtr_066 = File_ReadInt(file_ptr);
741 ScriptActionCtr_065 = File_ReadInt(file_ptr);
742 ScriptActionCtr_064 = File_ReadInt(file_ptr);
743 ScriptActionCtr_078 = File_ReadInt(file_ptr);
744 ScriptActionCtr_079 = File_ReadInt(file_ptr);
745 ScriptActionCtr_082 = File_ReadInt(file_ptr);
746 ScriptActionCtr_081 = File_ReadInt(file_ptr);
747 ScriptActionCtr_080 = File_ReadInt(file_ptr);
748 ScriptActionCtr_083 = File_ReadInt(file_ptr);
749 ScriptActionCtr_085 = File_ReadInt(file_ptr);
750 ScriptActionCtr_084 = File_ReadInt(file_ptr);
751 ScriptActionCtr_090 = File_ReadInt(file_ptr);
752 ScriptActionCtr_035 = File_ReadInt(file_ptr);
753 }
754
755 // ===============================================================
756 // Start of Custom Script Block - DO NOT EDIT ANYTHING BEFORE THIS
757 // ===============================================================
758 /**{CUSTOM_SCRIPT_BLOCK_START}** DO NOT EDIT! **/
759
760 // Music Regions
761 /*
762 $$ENUM Region
763 0:Intro
764 1:Outside
765 2:East
766 3:Central
767 4:West
768 5:Endboss
769 $$END
770 */
771
772 void aUserFlagSet(int flagnum, bool state);
773 bool qUserFlag(int flagnum);
774 const char *GetMessage(const char *name);
775
776 #define MatCenSwitchAON 0
777 #define MatCenSwitchBON 1
778 #define MatCenSwitchCON 2
779 #define MatCenSwitchDON 3
780 #define MatCenSwitchEON 4
781 #define MatCenSwitchFON 5
782 #define MatCenSwitchGON 6
783
784 // Matcens
785 #define MatCen5 0
786 #define MatCen4 1
787 #define MatCen2 2
788 #define MatCen3 3
789 #define MatCen1 4
790
791 // Objects
792 #define MatCen5Peg 4
793 #define MatCen4Peg 3
794 #define MatCen3Peg 2
795 #define MatCen2Peg 1
796 #define MatCen1Peg 0
797
798 #define MatCenSwitchA 5
799 #define MatCenSwitchB 6
800 #define MatCenSwitchC 7
801 #define MatCenSwitchD 8
802 #define MatCenSwitchE 9
803 #define MatCenSwitchF 10
804 #define MatCenSwitchG 11
805
806 #define MatCenResetSwitch 12
807 #define MatCenSpewer1 13
808 #define MatCenSpewer2 14
809 #define MatCenSpewer3 15
810 #define MatCenSpewer4 16
811 #define MatCenSpewer5 17
812
813 // Rooms
814 #define MatCenPuzzleArmoryRoom 0
815
816 // Messages
817 #define MagicMatCenSwitches 0
818 #define MatCenSwitchDOn 1
819 #define MatCenSwitchDOff 2
820 #define MatCenSwitchGOn 3
821 #define MatCenSwitchGOff 4
822 #define MatCenSwitchCOn 5
823 #define MatCenSwitchCOff 6
824 #define MatCenSwitchEOn 7
825 #define MatCenSwitchEOff 8
826 #define MatCenSwitchBOn 9
827 #define MatCenSwitchBOff 10
828 #define MatCenSwitchFOn 11
829 #define MatCenSwitchFOff 12
830 #define MatCenSwitchAOn 13
831 #define MatCenSwitchAOff 14
832
833 #define MagicMatCenSwitchSequence (*((int *)(&User_vars[17])))
834 #define MatCenStateA (*((int *)(&User_vars[0])))
835 #define MatCenStateB (*((int *)(&User_vars[1])))
836 #define MatCenStateC (*((int *)(&User_vars[2])))
837 #define MatCenStateD (*((int *)(&User_vars[3])))
838 #define MatCenStateE (*((int *)(&User_vars[4])))
839
840 struct tMyHandle {
841 const char *name;
842 int handle;
843 };
844
845 tMyHandle MyObjects[] = {
846 {"MatCen1Peg", -1}, {"MatCen2Peg", -1}, {"MatCen3Peg", -1}, {"MatCen4Peg", -1},
847 {"MatCen5Peg", -1}, {"MatCenSwitchA", -1}, {"MatCenSwitchB", -1}, {"MatCenSwitchC", -1},
848 {"MatCenSwitchD", -1}, {"MatCenSwitchE", -1}, {"MatCenSwitchF", -1}, {"MatCenSwitchG", -1},
849 {"MatCenPuzzleRESET", -1}, {"MatCen1Spewer", -1}, {"MatCen2Spewer", -1}, {"MatCen3Spewer", -1},
850 {"MatCen4Spewer", -1}, {"MatCen5Spewer", -1},
851 };
852
853 tMyHandle MyMatcens[] = {{"MatCen5", -1}, {"MatCen4", -1}, {"MatCen2", -1}, {"MatCen3", -1}, {"MatCen1", -1}};
854
855 tMyHandle MyRooms[] = {{"MagicMatCenArmory", -1}};
856
857 struct tMyMessage {
858 const char *name;
859 const char *mem;
860 };
861
862 tMyMessage MyMessages[] = {{"MagicMatCenSwitches", NULL}, {"MatCenSwitchDOn", NULL}, {"MatCenSwitchDOff", NULL},
863 {"MatCenSwitchGOn", NULL}, {"MatCenSwitchGOff", NULL}, {"MatCenSwitchCOn", NULL},
864 {"MatCenSwitchCOff", NULL}, {"MatCenSwitchEOn", NULL}, {"MatCenSwitchEOff", NULL},
865 {"MatCenSwitchBOn", NULL}, {"MatCenSwitchBOff", NULL}, {"MatCenSwitchFOn", NULL},
866 {"MatCenSwitchFOff", NULL}, {"MatCenSwitchAOn", NULL}, {"MatCenSwitchAOff", NULL}};
867
868 int GetMyMatCen(int id) {
869 if (MyMatcens[id].handle == -1)
870 MyMatcens[id].handle = Scrpt_FindMatcenName(MyMatcens[id].name);
871
872 return MyMatcens[id].handle;
873 }
874
875 int GetMyObject(int id) {
876 if (MyObjects[id].handle == -1)
877 MyObjects[id].handle = Scrpt_FindObjectName(MyObjects[id].name);
878
879 return MyObjects[id].handle;
880 }
881
882 int GetMyRoom(int id) {
883 if (MyRooms[id].handle == -1)
884 MyRooms[id].handle = Scrpt_FindRoomName(MyRooms[id].name);
885
886 return MyRooms[id].handle;
887 }
888
889 const char *GetMyMessage(int id) {
890 if (MyMessages[id].mem == NULL)
891 MyMessages[id].mem = GetMessage(MyMessages[id].name);
892
893 return MyMessages[id].mem;
894 }
895
896 // Turns a MatCen off
897 void SetMatCenToLevel0(int id) {
898 aMatcenSetEnableState(0, GetMyMatCen(id));
899
900 int spew_handle;
901 int obj_handle;
902 switch (id) {
903 case 0:
904 spew_handle = 4;
905 obj_handle = GetMyObject(MatCenSpewer5);
906 break;
907 case 1:
908 spew_handle = 3;
909 obj_handle = GetMyObject(MatCenSpewer4);
910 break;
911 case 2:
912 spew_handle = 2;
913 obj_handle = GetMyObject(MatCenSpewer3);
914 break;
915 case 3:
916 spew_handle = 1;
917 obj_handle = GetMyObject(MatCenSpewer2);
918 break;
919 case 4:
920 spew_handle = 0;
921 obj_handle = GetMyObject(MatCenSpewer1);
922 break;
923 };
924
925 // Make it spew!
926 aTurnOnSpew(obj_handle, -1, 7, 0.000000f, 0.000000f, 65536, 0, 2.000000f, 0.100000f, -1.000000f, 4.000000f,
927 20.000000f, 0, spew_handle);
928 }
929
930 // Turns a MatCen to normal production
931 void SetMatCenToLevel1(int id) {
932 int matcen_id = GetMyMatCen(id);
933
934 aMatcenSetEnableState(1, matcen_id);
935
936 aMatcenSetValues(matcen_id, -1, 1, 3);
937
938 int spew_handle;
939 switch (id) {
940 case 0:
941 spew_handle = 4;
942 break;
943 case 1:
944 spew_handle = 3;
945 break;
946 case 2:
947 spew_handle = 2;
948 break;
949 case 3:
950 spew_handle = 1;
951 break;
952 case 4:
953 spew_handle = 0;
954 break;
955 };
956
957 aTurnOffSpew(spew_handle);
958 Spew_handles[spew_handle] = -1;
959 }
960
961 // Turns a MatCen to high production
962 void SetMatCenToLevel2(int id) {
963 int matcen_id = GetMyMatCen(id);
964
965 aMatcenSetEnableState(1, matcen_id);
966 aMatcenSetValues(matcen_id, -1, 1.5, 4);
967
968 int spew_handle;
969 switch (id) {
970 case 0:
971 spew_handle = 4;
972 break;
973 case 1:
974 spew_handle = 3;
975 break;
976 case 2:
977 spew_handle = 2;
978 break;
979 case 3:
980 spew_handle = 1;
981 break;
982 case 4:
983 spew_handle = 0;
984 break;
985 };
986
987 aTurnOffSpew(spew_handle);
988 Spew_handles[spew_handle] = -1;
989 }
990
991 // Turns a lighting peg to Level 0
992 void SetMatCenPegToLevel0(int peg) {
993 int obj_handle = GetMyObject(peg);
994 aObjSetLightingDist(obj_handle, 0.000000f);
995 }
996
997 // Turns a lighting peg to Level 1
998 void SetMatCenPegToLevel1(int peg) {
999 int obj_handle = GetMyObject(peg);
1000
1001 aObjSetLightingDist(obj_handle, 10.000000f);
1002 aObjSetLightingColor(obj_handle, 0.750000f, 0.000000f, 1.000000f);
1003 }
1004
1005 // Turns a lighting peg to Level 2
1006 void SetMatCenPegToLevel2(int peg) {
1007 int obj_handle = GetMyObject(peg);
1008
1009 aObjSetLightingColor(obj_handle, 1.000000f, 0.000000f, 0.000000f);
1010 aObjSetLightingDist(obj_handle, 10.000000f);
1011 }
1012
1013 void PlayOnAnimation(int obj) { aObjPlayAnim(GetMyObject(obj), 20, 40, 2.000000f, 0); }
1014
1015 void PlayOffAnimation(int obj) { aObjPlayAnim(GetMyObject(obj), 0, 20, 2.000000f, 0); }
1016
1017 /*
1018 $$ACTION
1019 Scripts
1020 MatCen Puzzle: Init
1021 aMatCenPuzzleInit
1022 Init MatCen Puzzle
1023 Inits the MatCen Puzzle
1024
1025 $$END
1026 */
1027 void aMatCenPuzzleInit(void) {
1028 aUserFlagSet(MatCenSwitchAON, false);
1029 aUserFlagSet(MatCenSwitchBON, false);
1030 aUserFlagSet(MatCenSwitchCON, false);
1031 aUserFlagSet(MatCenSwitchDON, false);
1032 aUserFlagSet(MatCenSwitchEON, false);
1033 aUserFlagSet(MatCenSwitchFON, false);
1034 aUserFlagSet(MatCenSwitchGON, false);
1035
1036 Spew_handles[0] = Spew_handles[1] = Spew_handles[2] = Spew_handles[3] = Spew_handles[4] = -1;
1037
1038 SetMatCenPegToLevel1(MatCen1Peg);
1039 SetMatCenToLevel1(MatCen1);
1040 SetMatCenPegToLevel1(MatCen2Peg);
1041 SetMatCenToLevel1(MatCen2);
1042 SetMatCenPegToLevel1(MatCen3Peg);
1043 SetMatCenToLevel1(MatCen3);
1044 SetMatCenPegToLevel1(MatCen4Peg);
1045 SetMatCenToLevel1(MatCen4);
1046 SetMatCenPegToLevel1(MatCen5Peg);
1047 SetMatCenToLevel1(MatCen5);
1048
1049 PlayOffAnimation(MatCenSwitchA);
1050 PlayOffAnimation(MatCenSwitchB);
1051 PlayOffAnimation(MatCenSwitchC);
1052 PlayOffAnimation(MatCenSwitchD);
1053 PlayOffAnimation(MatCenSwitchE);
1054 PlayOffAnimation(MatCenSwitchF);
1055 PlayOffAnimation(MatCenSwitchG);
1056
1057 MagicMatCenSwitchSequence = 0;
1058 MatCenStateA = MatCenStateB = MatCenStateC = MatCenStateD = MatCenStateE = 1;
1059
1060 aObjPlayAnim(GetMyObject(MatCenResetSwitch), 0, 4, 4.000000f, 0);
1061 }
1062
1063 /*
1064 $$ACTION
1065 Scripts
1066 MatCen Puzzle: Reset
1067 aMatCenPuzzleReset
1068 Reset MatCen Puzzle
1069 Resets the MatCen Puzzle
1070
1071 $$END
1072 */
1073 void aMatCenPuzzleReset(void) {
1074 if (MagicMatCenSwitchSequence == 5 || MagicMatCenSwitchSequence == 0)
1075 return;
1076
1077 if (qUserFlag(MatCenSwitchAON)) {
1078 PlayOffAnimation(MatCenSwitchA);
1079 aUserFlagSet(MatCenSwitchAON, false);
1080 }
1081
1082 if (qUserFlag(MatCenSwitchBON)) {
1083 PlayOffAnimation(MatCenSwitchB);
1084 aUserFlagSet(MatCenSwitchBON, false);
1085 }
1086
1087 if (qUserFlag(MatCenSwitchCON)) {
1088 PlayOffAnimation(MatCenSwitchC);
1089 aUserFlagSet(MatCenSwitchCON, false);
1090 }
1091
1092 if (qUserFlag(MatCenSwitchDON)) {
1093 PlayOffAnimation(MatCenSwitchD);
1094 aUserFlagSet(MatCenSwitchDON, false);
1095 }
1096
1097 if (qUserFlag(MatCenSwitchEON)) {
1098 PlayOffAnimation(MatCenSwitchE);
1099 aUserFlagSet(MatCenSwitchEON, false);
1100 }
1101
1102 if (qUserFlag(MatCenSwitchFON)) {
1103 PlayOffAnimation(MatCenSwitchF);
1104 aUserFlagSet(MatCenSwitchFON, false);
1105 }
1106
1107 if (qUserFlag(MatCenSwitchGON)) {
1108 PlayOffAnimation(MatCenSwitchG);
1109 aUserFlagSet(MatCenSwitchGON, false);
1110 }
1111
1112 SetMatCenPegToLevel1(MatCen1Peg);
1113 SetMatCenToLevel1(MatCen1);
1114 SetMatCenPegToLevel1(MatCen2Peg);
1115 SetMatCenToLevel1(MatCen2);
1116 SetMatCenPegToLevel1(MatCen3Peg);
1117 SetMatCenToLevel1(MatCen3);
1118 SetMatCenPegToLevel1(MatCen4Peg);
1119 SetMatCenToLevel1(MatCen4);
1120 SetMatCenPegToLevel1(MatCen5Peg);
1121 SetMatCenToLevel1(MatCen5);
1122
1123 MagicMatCenSwitchSequence = 0;
1124 MatCenStateA = MatCenStateB = MatCenStateC = MatCenStateD = MatCenStateE = 1;
1125
1126 aObjPlayAnim(GetMyObject(MatCenResetSwitch), 0, 4, 4.000000f, 0);
1127 }
1128
1129 /*
1130 $$ACTION
1131 Scripts
1132 MatCen Puzzle: Hit Switch A by [o:Player]
1133 aMatCenPuzzleSwitchA
1134 The Player has shot switch A
1135 The Player has shot switch A
1136
1137 $$END
1138 */
1139 void aMatCenPuzzleSwitchA(int Player) {
1140 if (MagicMatCenSwitchSequence == 5)
1141 return;
1142
1143 if (!qUserFlag(MatCenSwitchAON)) {
1144 PlayOnAnimation(MatCenSwitchA);
1145 aUserFlagSet(MatCenSwitchAON, true);
1146
1147 if (MatCenStateA == 0) {
1148 SetMatCenPegToLevel1(MatCen1Peg);
1149 SetMatCenToLevel1(MatCen1);
1150 MatCenStateA = 1;
1151 } else {
1152 SetMatCenPegToLevel2(MatCen1Peg);
1153 SetMatCenToLevel2(MatCen1);
1154 MatCenStateA = 2;
1155 }
1156
1157 if (MatCenStateE == 0) {
1158 SetMatCenPegToLevel1(MatCen5Peg);
1159 SetMatCenToLevel1(MatCen5);
1160 MatCenStateE = 1;
1161 } else {
1162 SetMatCenPegToLevel2(MatCen5Peg);
1163 SetMatCenToLevel2(MatCen5);
1164 MatCenStateE = 2;
1165 }
1166
1167 MagicMatCenSwitchSequence = -1;
1168
1169 aShowHUDMessage(GetMyMessage(MatCenSwitchAOn));
1170 }
1171 }
1172
1173 /*
1174 $$ACTION
1175 Scripts
1176 MatCen Puzzle: Hit Switch B by [o:Player]
1177 aMatCenPuzzleSwitchB
1178 The Player has shot switch B
1179 The Player has shot switch B
1180
1181 $$END
1182 */
1183 void aMatCenPuzzleSwitchB(int Player) {
1184 if (MagicMatCenSwitchSequence == 5)
1185 return;
1186
1187 if (!qUserFlag(MatCenSwitchBON)) {
1188 PlayOnAnimation(MatCenSwitchB);
1189 aUserFlagSet(MatCenSwitchBON, true);
1190
1191 SetMatCenPegToLevel0(MatCen3Peg);
1192 SetMatCenToLevel0(MatCen3);
1193 MatCenStateC = 0;
1194
1195 if (MatCenStateD == 0) {
1196 SetMatCenPegToLevel1(MatCen4Peg);
1197 SetMatCenToLevel1(MatCen4);
1198 MatCenStateD = 1;
1199 } else {
1200 SetMatCenPegToLevel2(MatCen4Peg);
1201 SetMatCenToLevel2(MatCen4);
1202 MatCenStateD = 2;
1203 }
1204
1205 if (MatCenStateE == 0) {
1206 SetMatCenPegToLevel1(MatCen5Peg);
1207 SetMatCenToLevel1(MatCen5);
1208 MatCenStateE = 1;
1209 } else {
1210 SetMatCenPegToLevel2(MatCen5Peg);
1211 SetMatCenToLevel2(MatCen5);
1212 MatCenStateE = 2;
1213 }
1214
1215 if (MagicMatCenSwitchSequence == 2)
1216 MagicMatCenSwitchSequence = 3;
1217 else
1218 MagicMatCenSwitchSequence = -1;
1219
1220 aShowHUDMessage(GetMyMessage(MatCenSwitchBOn));
1221 }
1222 }
1223
1224 /*
1225 $$ACTION
1226 Scripts
1227 MatCen Puzzle: Hit Switch C by [o:Player]
1228 aMatCenPuzzleSwitchC
1229 The Player has shot switch C
1230 The Player has shot switch C
1231
1232 $$END
1233 */
1234 void aMatCenPuzzleSwitchC(int Player) {
1235 if (MagicMatCenSwitchSequence == 5)
1236 return;
1237
1238 if (!qUserFlag(MatCenSwitchCON)) {
1239 PlayOnAnimation(MatCenSwitchC);
1240 aUserFlagSet(MatCenSwitchCON, true);
1241
1242 SetMatCenPegToLevel0(MatCen2Peg);
1243 SetMatCenToLevel0(MatCen2);
1244 MatCenStateB = 0;
1245
1246 if (MatCenStateC == 0) {
1247 SetMatCenPegToLevel1(MatCen3Peg);
1248 SetMatCenToLevel1(MatCen3);
1249 MatCenStateC = 1;
1250 } else {
1251 SetMatCenPegToLevel2(MatCen3Peg);
1252 SetMatCenToLevel2(MatCen3);
1253 MatCenStateC = 2;
1254 }
1255
1256 if (MagicMatCenSwitchSequence == 1)
1257 MagicMatCenSwitchSequence = 2;
1258 else
1259 MagicMatCenSwitchSequence = -1;
1260
1261 aShowHUDMessage(GetMyMessage(MatCenSwitchCOn));
1262 }
1263 }
1264
1265 /*
1266 $$ACTION
1267 Scripts
1268 MatCen Puzzle: Hit Switch D by [o:Player]
1269 aMatCenPuzzleSwitchD
1270 The Player has shot switch D
1271 The Player has shot switch D
1272
1273 $$END
1274 */
1275 void aMatCenPuzzleSwitchD(int Player) {
1276 if (MagicMatCenSwitchSequence == 5)
1277 return;
1278
1279 if (!qUserFlag(MatCenSwitchDON)) {
1280 PlayOnAnimation(MatCenSwitchD);
1281 aUserFlagSet(MatCenSwitchDON, true);
1282
1283 SetMatCenPegToLevel0(MatCen5Peg);
1284 SetMatCenToLevel0(MatCen5);
1285 MatCenStateE = 0;
1286
1287 aShowHUDMessage(GetMyMessage(MatCenSwitchDOn));
1288
1289 if (MagicMatCenSwitchSequence == 4) {
1290 MagicMatCenSwitchSequence = 5;
1291
1292 // Puzzle Solved!
1293 mprintf(0, "Puzzle solved\n");
1294 aShowHUDMessage(GetMyMessage(MagicMatCenSwitches));
1295 aPortalRenderSet(0, 0, GetMyRoom(MatCenPuzzleArmoryRoom), 1);
1296
1297 } else {
1298 MagicMatCenSwitchSequence = -1;
1299 }
1300 }
1301 }
1302
1303 /*
1304 $$ACTION
1305 Scripts
1306 MatCen Puzzle: Hit Switch E by [o:Player]
1307 aMatCenPuzzleSwitchE
1308 The Player has shot switch E
1309 The Player has shot switch E
1310
1311 $$END
1312 */
1313 void aMatCenPuzzleSwitchE(int Player) {
1314 if (MagicMatCenSwitchSequence == 5)
1315 return;
1316
1317 if (!qUserFlag(MatCenSwitchEON)) {
1318 PlayOnAnimation(MatCenSwitchE);
1319 aUserFlagSet(MatCenSwitchEON, true);
1320
1321 SetMatCenPegToLevel0(MatCen1Peg);
1322 SetMatCenToLevel0(MatCen1);
1323 MatCenStateA = 0;
1324
1325 if (MatCenStateB == 0) {
1326 SetMatCenPegToLevel1(MatCen2Peg);
1327 SetMatCenToLevel1(MatCen2);
1328 MatCenStateB = 1;
1329 } else {
1330 SetMatCenPegToLevel2(MatCen2Peg);
1331 SetMatCenToLevel2(MatCen2);
1332 MatCenStateB = 2;
1333 }
1334
1335 if (MatCenStateC == 0) {
1336 SetMatCenPegToLevel1(MatCen3Peg);
1337 SetMatCenToLevel1(MatCen3);
1338 MatCenStateC = 1;
1339 } else {
1340 SetMatCenPegToLevel2(MatCen3Peg);
1341 SetMatCenToLevel2(MatCen3);
1342 MatCenStateC = 2;
1343 }
1344
1345 if (MagicMatCenSwitchSequence == 0)
1346 MagicMatCenSwitchSequence = 1;
1347 else
1348 MagicMatCenSwitchSequence = -1;
1349
1350 aShowHUDMessage(GetMyMessage(MatCenSwitchEOn));
1351 }
1352 }
1353
1354 /*
1355 $$ACTION
1356 Scripts
1357 MatCen Puzzle: Hit Switch F by [o:Player]
1358 aMatCenPuzzleSwitchF
1359 The Player has shot switch F
1360 The Player has shot switch F
1361
1362 $$END
1363 */
1364 void aMatCenPuzzleSwitchF(int Player) {
1365 if (MagicMatCenSwitchSequence == 5)
1366 return;
1367
1368 if (!qUserFlag(MatCenSwitchFON)) {
1369 PlayOnAnimation(MatCenSwitchF);
1370 aUserFlagSet(MatCenSwitchFON, true);
1371
1372 if (MatCenStateB == 0) {
1373 SetMatCenPegToLevel1(MatCen2Peg);
1374 SetMatCenToLevel1(MatCen2);
1375 MatCenStateB = 1;
1376 } else {
1377 SetMatCenPegToLevel2(MatCen2Peg);
1378 SetMatCenToLevel2(MatCen2);
1379 MatCenStateB = 2;
1380 }
1381
1382 if (MatCenStateD == 0) {
1383 SetMatCenPegToLevel1(MatCen4Peg);
1384 SetMatCenToLevel1(MatCen4);
1385 MatCenStateD = 1;
1386 } else {
1387 SetMatCenPegToLevel2(MatCen4Peg);
1388 SetMatCenToLevel2(MatCen4);
1389 MatCenStateD = 2;
1390 }
1391
1392 MagicMatCenSwitchSequence = -1;
1393
1394 aShowHUDMessage(GetMyMessage(MatCenSwitchFOn));
1395 }
1396 }
1397
1398 /*
1399 $$ACTION
1400 Scripts
1401 MatCen Puzzle: Hit Switch G by [o:Player]
1402 aMatCenPuzzleSwitchG
1403 The Player has shot switch G
1404 The Player has shot switch G
1405
1406 $$END
1407 */
1408 void aMatCenPuzzleSwitchG(int Player) {
1409 if (MagicMatCenSwitchSequence == 5)
1410 return;
1411
1412 if (!qUserFlag(MatCenSwitchGON)) {
1413 PlayOnAnimation(MatCenSwitchG);
1414 aUserFlagSet(MatCenSwitchGON, true);
1415
1416 SetMatCenPegToLevel0(MatCen4Peg);
1417 SetMatCenToLevel0(MatCen4);
1418 MatCenStateD = 0;
1419
1420 if (MatCenStateE == 0) {
1421 SetMatCenPegToLevel1(MatCen5Peg);
1422 SetMatCenToLevel1(MatCen5);
1423 MatCenStateE = 1;
1424 } else {
1425 SetMatCenPegToLevel2(MatCen5Peg);
1426 SetMatCenToLevel2(MatCen5);
1427 MatCenStateE = 2;
1428 }
1429
1430 if (MagicMatCenSwitchSequence == 3)
1431 MagicMatCenSwitchSequence = 4;
1432 else
1433 MagicMatCenSwitchSequence = -1;
1434
1435 aShowHUDMessage(GetMyMessage(MatCenSwitchGOn));
1436 }
1437 }
1438
1439 /**{CUSTOM_SCRIPT_BLOCK_END}**** DO NOT EDIT! **/
1440 // ============================================================
1441 // End of Custom Script Block - DO NOT EDIT ANYTHING AFTER THIS
1442 // ============================================================
1443
1444 // =================
1445 // Message File Data
1446 // =================
1447
1448 #define MAX_SCRIPT_MESSAGES 256
1449 #define MAX_MSG_FILEBUF_LEN 1024
1450 #define NO_MESSAGE_STRING "*Message Not Found*"
1451 #define INV_MSGNAME_STRING "*Message Name Invalid*"
1452 #define WHITESPACE_CHARS " \t\r\n"
1453
1454 // Structure for storing a script message
1455 struct tScriptMessage {
1456 char *name; // the name of the message
1457 char *message; // the actual message text
1458 };
1459
1460 // Global storage for level script messages
1461 tScriptMessage *message_list[MAX_SCRIPT_MESSAGES];
1462 int num_messages;
1463
1464 // ======================
1465 // Message File Functions
1466 // ======================
1467
1468 // Initializes the Message List
1469 void InitMessageList(void) {
1470 for (int j = 0; j < MAX_SCRIPT_MESSAGES; j++)
1471 message_list[j] = NULL;
1472 num_messages = 0;
1473 }
1474
1475 // Clear the Message List
1476 void ClearMessageList(void) {
1477 for (int j = 0; j < num_messages; j++) {
1478 free(message_list[j]->name);
1479 free(message_list[j]->message);
1480 free(message_list[j]);
1481 message_list[j] = NULL;
1482 }
1483 num_messages = 0;
1484 }
1485
1486 // Adds a message to the list
1487 int AddMessageToList(char *name, char *msg) {
1488 int pos;
1489
1490 // Make sure there is room in the list
1491 if (num_messages >= MAX_SCRIPT_MESSAGES)
1492 return false;
1493
1494 // Allocate memory for this message entry
1495 pos = num_messages;
1496 message_list[pos] = (tScriptMessage *)malloc(sizeof(tScriptMessage));
1497 if (message_list[pos] == NULL)
1498 return false;
1499
1500 // Allocate memory for the message name
1501 message_list[pos]->name = (char *)malloc(strlen(name) + 1);
1502 if (message_list[pos]->name == NULL) {
1503 free(message_list[pos]);
1504 return false;
1505 }
1506 strcpy(message_list[pos]->name, name);
1507
1508 // Allocate memory for the message name
1509 message_list[pos]->message = (char *)malloc(strlen(msg) + 1);
1510 if (message_list[pos]->message == NULL) {
1511 free(message_list[pos]->name);
1512 free(message_list[pos]);
1513 return false;
1514 }
1515 strcpy(message_list[pos]->message, msg);
1516 num_messages++;
1517
1518 return true;
1519 }
1520
1521 // Removes any whitespace padding from the end of a string
1522 void RemoveTrailingWhitespace(char *s) {
1523 int last_char_pos;
1524
1525 last_char_pos = strlen(s) - 1;
1526 while (last_char_pos >= 0 && isspace(s[last_char_pos])) {
1527 s[last_char_pos] = '\0';
1528 last_char_pos--;
1529 }
1530 }
1531
1532 // Returns a pointer to the first non-whitespace char in given string
1533 char *SkipInitialWhitespace(char *s) {
1534 while ((*s) != '\0' && isspace(*s))
1535 s++;
1536
1537 return (s);
1538 }
1539
1540 // Read in the Messages
1541 int ReadMessageFile(const char *filename) {
1542 void *infile;
1543 char filebuffer[MAX_MSG_FILEBUF_LEN + 1];
1544 char *line, *msg_start;
1545 int line_num;
1546 bool next_msgid_found;
1547
1548 // Try to open the file for loading
1549 infile = File_Open(filename, "rt");
1550 if (!infile)
1551 return false;
1552
1553 line_num = 0;
1554 next_msgid_found = true;
1555
1556 // Clear the message list
1557 ClearMessageList();
1558
1559 // Read in and parse each line of the file
1560 while (!File_eof(infile)) {
1561
1562 // Clear the buffer
1563 strcpy(filebuffer, "");
1564
1565 // Read in a line from the file
1566 File_ReadString(filebuffer, MAX_MSG_FILEBUF_LEN, infile);
1567 line_num++;
1568
1569 // Remove whitespace padding at start and end of line
1570 RemoveTrailingWhitespace(filebuffer);
1571 line = SkipInitialWhitespace(filebuffer);
1572
1573 // If line is a comment, or empty, discard it
1574 if (strlen(line) == 0 || strncmp(line, "//", 2) == 0)
1575 continue;
1576
1577 if (!next_msgid_found) { // Parse out the last message ID number
1578
1579 // Grab the first keyword, make sure it's valid
1580 line = strtok(line, WHITESPACE_CHARS);
1581 if (line == NULL)
1582 continue;
1583
1584 // Grab the second keyword, and assign it as the next message ID
1585 line = strtok(NULL, WHITESPACE_CHARS);
1586 if (line == NULL)
1587 continue;
1588
1589 next_msgid_found = true;
1590 } else { // Parse line as a message line
1591
1592 // Find the start of message, and mark it
1593 msg_start = strchr(line, '=');
1594 if (msg_start == NULL)
1595 continue;
1596 msg_start[0] = '\0';
1597 msg_start++;
1598
1599 // Add the message to the list
1600 AddMessageToList(line, msg_start);
1601 }
1602 }
1603 File_Close(infile);
1604
1605 return true;
1606 }
1607
1608 // Find a message
1609 const char *GetMessage(const char *name) {
1610 // Make sure given name is valid
1611 if (name == NULL)
1612 return INV_MSGNAME_STRING;
1613
1614 // Search message list for name
1615 for (int j = 0; j < num_messages; j++)
1616 if (strcmp(message_list[j]->name, name) == 0)
1617 return (message_list[j]->message);
1618
1619 // Couldn't find it
1620 return NO_MESSAGE_STRING;
1621 }
1622
1623 //======================
1624 // Name List Arrays
1625 //======================
1626
1627 #define NUM_DOOR_NAMES 10
1628 const char *Door_names[NUM_DOOR_NAMES] = {
1629 "RightLowerGeoPitDo", "LeftLowerGeoPitDoo", "CenterLowerGeoPitD", "RightGeoTubeNookDo", "RightUpperGeoPitDo",
1630 "CenterGeoTubeNookD", "CenterUpperGeoPitD", "LeftGeoTubeNookDoo", "LeftUpperGeoPitDoo", "DravisDoor"};
1631 int Door_handles[NUM_DOOR_NAMES];
1632
1633 #define NUM_OBJECT_NAMES 40
1634 const char *Object_names[NUM_OBJECT_NAMES] = {"InnerStrongholdPas", "Inner Door View Ca",
1635 "LeftGeoPitLava", "RightGeoPitLava",
1636 "CenterGeoPitLava", "LeftLavaCrank",
1637 "CenterLavaCrank", "RightLavaCrank",
1638 "BackupReactorPower", "BackupReactorFuse",
1639 "MatCenSwitchA", "MatCenSwitchB",
1640 "MatCenSwitchC", "MatCenSwitchD",
1641 "MatCenSwitchE", "MatCenSwitchF",
1642 "MatCenSwitchG", "MatCenPuzzleRESET",
1643 "RightGeoTubeSwitch", "RightGeoTubeLava",
1644 "CenterGeoTubeSwitc", "CenterGeoTubeLava",
1645 "LeftGeoTubeSwitch", "LeftGeoTubeLava",
1646 "Inner Door E", "Inner Door D",
1647 "Inner Door C", "CenterTNTDispenser",
1648 "RightTNTDispenserS", "LeftTNTDispenserSw",
1649 "LeftTNTDispenserBr", "TNTRockWall",
1650 "HellionFinalBoss", "EndLevelCamera",
1651 "MediumVolcanoPlane", "SmallestVolcanoPla",
1652 "LargeVolcanoPlane", "TheFan",
1653 "RotatingLightA", "RotatingLightB"};
1654 int Object_handles[NUM_OBJECT_NAMES];
1655
1656 #define NUM_ROOM_NAMES 13
1657 const char *Room_names[NUM_ROOM_NAMES] = {
1658 "BackupReactorEnerg", "CShapedEnergyCente", "SecretDoorEnergyCe", "LeftGeoPitRoom", "CenterGeoPitRoom",
1659 "RightGeoPitRoom", "LeftGeoTubeRoom", "CenterGeoTubeRoom", "RightGeoTubeRoom", "PreBossChamberForc",
1660 "PreBossForcefieldR", "UpperFanRoom", "TNT Puzzle Room"};
1661 int Room_indexes[NUM_ROOM_NAMES];
1662
1663 #define NUM_TRIGGER_NAMES 30
1664 const char *Trigger_names[NUM_TRIGGER_NAMES] = {"CshapedEnergyCenter",
1665 "SecretEnergyCenterB",
1666 "BackupEnergyCenterB",
1667 "RightGeoNookExit",
1668 "CenterGeoNookExit",
1669 "LeftGeoNookExit",
1670 "RightUpperGeoPitDoo",
1671 "CenterUpperGeoPitDo",
1672 "LeftUpperGeoPitDoor",
1673 "BossEnergyForcefiel",
1674 "EndLevelTrigger",
1675 "MOutside-4",
1676 "MOutside-3",
1677 "MOutside-2",
1678 "MOutside-1",
1679 "MBoss-1",
1680 "MCentral-6",
1681 "MCentral-5",
1682 "MCentral-4",
1683 "MCentral-3",
1684 "MCentral-2",
1685 "MCentral-1",
1686 "MEast-5",
1687 "MEast-4",
1688 "MEast-3",
1689 "MEast-2",
1690 "MEast-1",
1691 "MWest-2",
1692 "MWest-1",
1693 "PreBossTrigger"};
1694 int Trigger_indexes[NUM_TRIGGER_NAMES];
1695 int Trigger_faces[NUM_TRIGGER_NAMES];
1696 int Trigger_rooms[NUM_TRIGGER_NAMES];
1697
1698 #define NUM_SOUND_NAMES 4
1699 const char *Sound_names[NUM_SOUND_NAMES] = {"AmbDroneReactor", "DebrisExplosion", "AmbExplosionFarB", "AmbExplosionFarG"};
1700 int Sound_indexes[NUM_SOUND_NAMES];
1701
1702 #define NUM_TEXTURE_NAMES 0
1703 const char **Texture_names = NULL;
1704 int *Texture_indexes = NULL;
1705
1706 #define NUM_PATH_NAMES 12
1707 const char *Path_names[NUM_PATH_NAMES] = {"LeftGeoPitLavaPath", "RightGeoPitLavaPath", "CenterGeoPitLavaPath",
1708 "RightGeoTubeLavaPath", "CenterGeoTubeLavaPath", "LeftGeoTubeLavaPath",
1709 "EndLevelPath", "IntroCamPath", "PlayerIntroPath",
1710 "CameraBossEntrancePath", "PlayerBossEntrancePath", "BossIntroCameraPath"};
1711 int Path_indexes[NUM_PATH_NAMES];
1712
1713 #define NUM_MATCEN_NAMES 2
1714 const char *Matcen_names[NUM_MATCEN_NAMES] = {"Center TNT Dispense", "Right TNT Dispenser"};
1715 int Matcen_indexes[NUM_MATCEN_NAMES];
1716
1717 #define NUM_GOAL_NAMES 5
1718 const char *Goal_names[NUM_GOAL_NAMES] = {"Locate the Inner Stronghold Passkey", "Repair the Reactor",
1719 "Locate the Back-up Reactor", "Find the reactor's replacement fuse",
1720 "Locate Dravis' secret stronghold"};
1721 int Goal_indexes[NUM_GOAL_NAMES];
1722
1723 #define NUM_MESSAGE_NAMES 22
1724 const char *Message_names[NUM_MESSAGE_NAMES] = {"InnerDoorsUnlock",
1725 "InnerStrongholdKey",
1726 "LeftLavaCrank",
1727 "CenterLavaCrank",
1728 "RightLavaCrank",
1729 "EnergyCentersOnline",
1730 "PowerRestored",
1731 "FuseFound",
1732 "ReactorBroken",
1733 "EnergyCenterBroken",
1734 "InnerDoorsDenied",
1735 "TNTDispenserCenter",
1736 "TNTDispenserRight",
1737 "TNTDispenserLeft",
1738 "TNTDispenserLeftBroken",
1739 "TNTRockwalldestroyed",
1740 "TNTRockWall",
1741 "DravisDoor",
1742 "End",
1743 "IntroCameraText",
1744 "BLANK",
1745 "HellionIntroduction"};
1746 const char *Message_strings[NUM_MESSAGE_NAMES];
1747
1748 // ===============
1749 // InitializeDLL()
1750 // ===============
1751 char STDCALL InitializeDLL(tOSIRISModuleInit *func_list) {
1752 osicommon_Initialize((tOSIRISModuleInit *)func_list);
1753 if (func_list->game_checksum != CHECKSUM) {
1754 mprintf(0, "Game-Checksum FAIL!!! (%ul!=%ul)\n", func_list->game_checksum, CHECKSUM);
1755 mprintf(0, "RECOMPILE YOUR SCRIPTS!!!\n");
1756 return 0;
1757 }
1758
1759 ClearGlobalActionCtrs();
1760 dfInit();
1761 InitMessageList();
1762
1763 // Build the filename of the message file
1764 char filename[_MAX_PATH + 32];
1765 int lang_type;
1766 if (func_list->script_identifier != NULL) {
1767 _splitpath(func_list->script_identifier, NULL, NULL, filename, NULL);
1768 lang_type = Game_GetLanguage();
1769 if (lang_type == LANGUAGE_FRENCH)
1770 strcat(filename, "_FRN");
1771 else if (lang_type == LANGUAGE_GERMAN)
1772 strcat(filename, "_GER");
1773 else if (lang_type == LANGUAGE_ITALIAN)
1774 strcat(filename, "_ITN");
1775 else if (lang_type == LANGUAGE_SPANISH)
1776 strcat(filename, "_SPN");
1777 strcat(filename, ".msg");
1778 } else {
1779 strcpy(filename, "Level15.msg");
1780 lang_type = LANGUAGE_ENGLISH;
1781 }
1782 if (!ReadMessageFile(filename)) {
1783 mprintf(0, "ERROR: Could not load message file - %s\n", filename);
1784 }
1785
1786 int j;
1787
1788 // Do Door Index lookups
1789 for (j = 0; j < NUM_DOOR_NAMES; j++)
1790 Door_handles[j] = Scrpt_FindDoorName(Door_names[j]);
1791
1792 // Do Object Index lookups
1793 for (j = 0; j < NUM_OBJECT_NAMES; j++)
1794 Object_handles[j] = Scrpt_FindObjectName(Object_names[j]);
1795
1796 // Do Room Index lookups
1797 for (j = 0; j < NUM_ROOM_NAMES; j++)
1798 Room_indexes[j] = Scrpt_FindRoomName(Room_names[j]);
1799
1800 // Do Trigger Index lookups
1801 for (j = 0; j < NUM_TRIGGER_NAMES; j++) {
1802 Trigger_indexes[j] = Scrpt_FindTriggerName(Trigger_names[j]);
1803 Trigger_faces[j] = Scrpt_GetTriggerFace(Trigger_indexes[j]);
1804 Trigger_rooms[j] = Scrpt_GetTriggerRoom(Trigger_indexes[j]);
1805 }
1806
1807 // Do Sound Index lookups
1808 for (j = 0; j < NUM_SOUND_NAMES; j++)
1809 Sound_indexes[j] = Scrpt_FindSoundName(Sound_names[j]);
1810
1811 // Do Texture Index lookups
1812 for (j = 0; j < NUM_TEXTURE_NAMES; j++)
1813 Texture_indexes[j] = Scrpt_FindTextureName(Texture_names[j]);
1814
1815 // Do Path Index lookups
1816 for (j = 0; j < NUM_PATH_NAMES; j++)
1817 Path_indexes[j] = Scrpt_FindPathName(Path_names[j]);
1818
1819 // Do Matcen Index lookups
1820 for (j = 0; j < NUM_MATCEN_NAMES; j++)
1821 Matcen_indexes[j] = Scrpt_FindMatcenName(Matcen_names[j]);
1822
1823 // Do Goal Index lookups
1824 for (j = 0; j < NUM_GOAL_NAMES; j++)
1825 Goal_indexes[j] = Scrpt_FindLevelGoalName(Goal_names[j]);
1826
1827 // Do Message Name lookups
1828 for (j = 0; j < NUM_MESSAGE_NAMES; j++)
1829 Message_strings[j] = GetMessage(Message_names[j]);
1830
1831 return 1;
1832 }
1833
1834 // =============
1835 // ShutdownDLL()
1836 // =============
1837 void STDCALL ShutdownDLL(void) { ClearMessageList(); }
1838
1839 // ===============
1840 // GetGOScriptID()
1841 // ===============
1842 int STDCALL GetGOScriptID(const char *name, uint8_t isdoor) { return -1; }
1843
1844 // ================
1845 // CreateInstance()
1846 // ================
1847 void STDCALLPTR CreateInstance(int id) {
1848 switch (id) {
1849 case ID_LEVEL_0000:
1850 return new LevelScript_0000;
1851 break;
1852 case ID_CUSTOM_OBJECT_10FD:
1853 return new CustomObjectScript_10FD;
1854 break;
1855 case ID_CUSTOM_OBJECT_084D:
1856 return new CustomObjectScript_084D;
1857 break;
1858 case ID_CUSTOM_OBJECT_084E:
1859 return new CustomObjectScript_084E;
1860 break;
1861 case ID_CUSTOM_OBJECT_084F:
1862 return new CustomObjectScript_084F;
1863 break;
1864 case ID_CUSTOM_OBJECT_084C:
1865 return new CustomObjectScript_084C;
1866 break;
1867 case ID_CUSTOM_OBJECT_1913:
1868 return new CustomObjectScript_1913;
1869 break;
1870 case ID_CUSTOM_OBJECT_0851:
1871 return new CustomObjectScript_0851;
1872 break;
1873 case ID_CUSTOM_OBJECT_0850:
1874 return new CustomObjectScript_0850;
1875 break;
1876 case ID_CUSTOM_OBJECT_0852:
1877 return new CustomObjectScript_0852;
1878 break;
1879 case ID_CUSTOM_OBJECT_0858:
1880 return new CustomObjectScript_0858;
1881 break;
1882 case ID_CUSTOM_OBJECT_0857:
1883 return new CustomObjectScript_0857;
1884 break;
1885 case ID_CUSTOM_OBJECT_0856:
1886 return new CustomObjectScript_0856;
1887 break;
1888 case ID_CUSTOM_OBJECT_0855:
1889 return new CustomObjectScript_0855;
1890 break;
1891 case ID_CUSTOM_OBJECT_399D:
1892 return new CustomObjectScript_399D;
1893 break;
1894 case ID_CUSTOM_OBJECT_210D:
1895 return new CustomObjectScript_210D;
1896 break;
1897 case ID_CUSTOM_OBJECT_210E:
1898 return new CustomObjectScript_210E;
1899 break;
1900 case ID_CUSTOM_OBJECT_190F:
1901 return new CustomObjectScript_190F;
1902 break;
1903 case ID_CUSTOM_OBJECT_2801:
1904 return new CustomObjectScript_2801;
1905 break;
1906 case ID_CUSTOM_OBJECT_1828:
1907 return new CustomObjectScript_1828;
1908 break;
1909 case ID_CUSTOM_OBJECT_1015:
1910 return new CustomObjectScript_1015;
1911 break;
1912 case ID_CUSTOM_OBJECT_0848:
1913 return new CustomObjectScript_0848;
1914 break;
1915 case ID_CUSTOM_OBJECT_0849:
1916 return new CustomObjectScript_0849;
1917 break;
1918 case ID_CUSTOM_OBJECT_0847:
1919 return new CustomObjectScript_0847;
1920 break;
1921 case ID_CUSTOM_OBJECT_3831:
1922 return new CustomObjectScript_3831;
1923 break;
1924 case ID_CUSTOM_OBJECT_2111:
1925 return new CustomObjectScript_2111;
1926 break;
1927 case ID_CUSTOM_OBJECT_0AB1:
1928 return new CustomObjectScript_0AB1;
1929 break;
1930 case ID_TRIGGER_0000:
1931 return new TriggerScript_0000;
1932 break;
1933 case ID_TRIGGER_0001:
1934 return new TriggerScript_0001;
1935 break;
1936 case ID_TRIGGER_0002:
1937 return new TriggerScript_0002;
1938 break;
1939 case ID_TRIGGER_0005:
1940 return new TriggerScript_0005;
1941 break;
1942 case ID_TRIGGER_0004:
1943 return new TriggerScript_0004;
1944 break;
1945 case ID_TRIGGER_0003:
1946 return new TriggerScript_0003;
1947 break;
1948 case ID_TRIGGER_0008:
1949 return new TriggerScript_0008;
1950 break;
1951 case ID_TRIGGER_0007:
1952 return new TriggerScript_0007;
1953 break;
1954 case ID_TRIGGER_0006:
1955 return new TriggerScript_0006;
1956 break;
1957 case ID_TRIGGER_0009:
1958 return new TriggerScript_0009;
1959 break;
1960 case ID_TRIGGER_000B:
1961 return new TriggerScript_000B;
1962 break;
1963 case ID_TRIGGER_0020:
1964 return new TriggerScript_0020;
1965 break;
1966 case ID_TRIGGER_001E:
1967 return new TriggerScript_001E;
1968 break;
1969 case ID_TRIGGER_001C:
1970 return new TriggerScript_001C;
1971 break;
1972 case ID_TRIGGER_001A:
1973 return new TriggerScript_001A;
1974 break;
1975 case ID_TRIGGER_0017:
1976 return new TriggerScript_0017;
1977 break;
1978 case ID_TRIGGER_001B:
1979 return new TriggerScript_001B;
1980 break;
1981 case ID_TRIGGER_0018:
1982 return new TriggerScript_0018;
1983 break;
1984 case ID_TRIGGER_0015:
1985 return new TriggerScript_0015;
1986 break;
1987 case ID_TRIGGER_0013:
1988 return new TriggerScript_0013;
1989 break;
1990 case ID_TRIGGER_0011:
1991 return new TriggerScript_0011;
1992 break;
1993 case ID_TRIGGER_0010:
1994 return new TriggerScript_0010;
1995 break;
1996 case ID_TRIGGER_001F:
1997 return new TriggerScript_001F;
1998 break;
1999 case ID_TRIGGER_001D:
2000 return new TriggerScript_001D;
2001 break;
2002 case ID_TRIGGER_0016:
2003 return new TriggerScript_0016;
2004 break;
2005 case ID_TRIGGER_0014:
2006 return new TriggerScript_0014;
2007 break;
2008 case ID_TRIGGER_0012:
2009 return new TriggerScript_0012;
2010 break;
2011 case ID_TRIGGER_0019:
2012 return new TriggerScript_0019;
2013 break;
2014 case ID_TRIGGER_000F:
2015 return new TriggerScript_000F;
2016 break;
2017 case ID_TRIGGER_000A:
2018 return new TriggerScript_000A;
2019 break;
2020 default:
2021 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
2022 break;
2023 }
2024 return NULL;
2025 }
2026
2027 // =================
2028 // DestroyInstance()
2029 // =================
2030 void STDCALL DestroyInstance(int id, void *ptr) {
2031 switch (id) {
2032 case ID_LEVEL_0000:
2033 delete ((LevelScript_0000 *)ptr);
2034 break;
2035 case ID_CUSTOM_OBJECT_10FD:
2036 delete ((CustomObjectScript_10FD *)ptr);
2037 break;
2038 case ID_CUSTOM_OBJECT_084D:
2039 delete ((CustomObjectScript_084D *)ptr);
2040 break;
2041 case ID_CUSTOM_OBJECT_084E:
2042 delete ((CustomObjectScript_084E *)ptr);
2043 break;
2044 case ID_CUSTOM_OBJECT_084F:
2045 delete ((CustomObjectScript_084F *)ptr);
2046 break;
2047 case ID_CUSTOM_OBJECT_084C:
2048 delete ((CustomObjectScript_084C *)ptr);
2049 break;
2050 case ID_CUSTOM_OBJECT_1913:
2051 delete ((CustomObjectScript_1913 *)ptr);
2052 break;
2053 case ID_CUSTOM_OBJECT_0851:
2054 delete ((CustomObjectScript_0851 *)ptr);
2055 break;
2056 case ID_CUSTOM_OBJECT_0850:
2057 delete ((CustomObjectScript_0850 *)ptr);
2058 break;
2059 case ID_CUSTOM_OBJECT_0852:
2060 delete ((CustomObjectScript_0852 *)ptr);
2061 break;
2062 case ID_CUSTOM_OBJECT_0858:
2063 delete ((CustomObjectScript_0858 *)ptr);
2064 break;
2065 case ID_CUSTOM_OBJECT_0857:
2066 delete ((CustomObjectScript_0857 *)ptr);
2067 break;
2068 case ID_CUSTOM_OBJECT_0856:
2069 delete ((CustomObjectScript_0856 *)ptr);
2070 break;
2071 case ID_CUSTOM_OBJECT_0855:
2072 delete ((CustomObjectScript_0855 *)ptr);
2073 break;
2074 case ID_CUSTOM_OBJECT_399D:
2075 delete ((CustomObjectScript_399D *)ptr);
2076 break;
2077 case ID_CUSTOM_OBJECT_210D:
2078 delete ((CustomObjectScript_210D *)ptr);
2079 break;
2080 case ID_CUSTOM_OBJECT_210E:
2081 delete ((CustomObjectScript_210E *)ptr);
2082 break;
2083 case ID_CUSTOM_OBJECT_190F:
2084 delete ((CustomObjectScript_190F *)ptr);
2085 break;
2086 case ID_CUSTOM_OBJECT_2801:
2087 delete ((CustomObjectScript_2801 *)ptr);
2088 break;
2089 case ID_CUSTOM_OBJECT_1828:
2090 delete ((CustomObjectScript_1828 *)ptr);
2091 break;
2092 case ID_CUSTOM_OBJECT_1015:
2093 delete ((CustomObjectScript_1015 *)ptr);
2094 break;
2095 case ID_CUSTOM_OBJECT_0848:
2096 delete ((CustomObjectScript_0848 *)ptr);
2097 break;
2098 case ID_CUSTOM_OBJECT_0849:
2099 delete ((CustomObjectScript_0849 *)ptr);
2100 break;
2101 case ID_CUSTOM_OBJECT_0847:
2102 delete ((CustomObjectScript_0847 *)ptr);
2103 break;
2104 case ID_CUSTOM_OBJECT_3831:
2105 delete ((CustomObjectScript_3831 *)ptr);
2106 break;
2107 case ID_CUSTOM_OBJECT_2111:
2108 delete ((CustomObjectScript_2111 *)ptr);
2109 break;
2110 case ID_CUSTOM_OBJECT_0AB1:
2111 delete ((CustomObjectScript_0AB1 *)ptr);
2112 break;
2113 case ID_TRIGGER_0000:
2114 delete ((TriggerScript_0000 *)ptr);
2115 break;
2116 case ID_TRIGGER_0001:
2117 delete ((TriggerScript_0001 *)ptr);
2118 break;
2119 case ID_TRIGGER_0002:
2120 delete ((TriggerScript_0002 *)ptr);
2121 break;
2122 case ID_TRIGGER_0005:
2123 delete ((TriggerScript_0005 *)ptr);
2124 break;
2125 case ID_TRIGGER_0004:
2126 delete ((TriggerScript_0004 *)ptr);
2127 break;
2128 case ID_TRIGGER_0003:
2129 delete ((TriggerScript_0003 *)ptr);
2130 break;
2131 case ID_TRIGGER_0008:
2132 delete ((TriggerScript_0008 *)ptr);
2133 break;
2134 case ID_TRIGGER_0007:
2135 delete ((TriggerScript_0007 *)ptr);
2136 break;
2137 case ID_TRIGGER_0006:
2138 delete ((TriggerScript_0006 *)ptr);
2139 break;
2140 case ID_TRIGGER_0009:
2141 delete ((TriggerScript_0009 *)ptr);
2142 break;
2143 case ID_TRIGGER_000B:
2144 delete ((TriggerScript_000B *)ptr);
2145 break;
2146 case ID_TRIGGER_0020:
2147 delete ((TriggerScript_0020 *)ptr);
2148 break;
2149 case ID_TRIGGER_001E:
2150 delete ((TriggerScript_001E *)ptr);
2151 break;
2152 case ID_TRIGGER_001C:
2153 delete ((TriggerScript_001C *)ptr);
2154 break;
2155 case ID_TRIGGER_001A:
2156 delete ((TriggerScript_001A *)ptr);
2157 break;
2158 case ID_TRIGGER_0017:
2159 delete ((TriggerScript_0017 *)ptr);
2160 break;
2161 case ID_TRIGGER_001B:
2162 delete ((TriggerScript_001B *)ptr);
2163 break;
2164 case ID_TRIGGER_0018:
2165 delete ((TriggerScript_0018 *)ptr);
2166 break;
2167 case ID_TRIGGER_0015:
2168 delete ((TriggerScript_0015 *)ptr);
2169 break;
2170 case ID_TRIGGER_0013:
2171 delete ((TriggerScript_0013 *)ptr);
2172 break;
2173 case ID_TRIGGER_0011:
2174 delete ((TriggerScript_0011 *)ptr);
2175 break;
2176 case ID_TRIGGER_0010:
2177 delete ((TriggerScript_0010 *)ptr);
2178 break;
2179 case ID_TRIGGER_001F:
2180 delete ((TriggerScript_001F *)ptr);
2181 break;
2182 case ID_TRIGGER_001D:
2183 delete ((TriggerScript_001D *)ptr);
2184 break;
2185 case ID_TRIGGER_0016:
2186 delete ((TriggerScript_0016 *)ptr);
2187 break;
2188 case ID_TRIGGER_0014:
2189 delete ((TriggerScript_0014 *)ptr);
2190 break;
2191 case ID_TRIGGER_0012:
2192 delete ((TriggerScript_0012 *)ptr);
2193 break;
2194 case ID_TRIGGER_0019:
2195 delete ((TriggerScript_0019 *)ptr);
2196 break;
2197 case ID_TRIGGER_000F:
2198 delete ((TriggerScript_000F *)ptr);
2199 break;
2200 case ID_TRIGGER_000A:
2201 delete ((TriggerScript_000A *)ptr);
2202 break;
2203 default:
2204 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
2205 break;
2206 }
2207 }
2208
2209 // ===================
2210 // CallInstanceEvent()
2211 // ===================
2212 int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data) {
2213 switch (id) {
2214 case ID_LEVEL_0000:
2215 case ID_CUSTOM_OBJECT_10FD:
2216 case ID_CUSTOM_OBJECT_084D:
2217 case ID_CUSTOM_OBJECT_084E:
2218 case ID_CUSTOM_OBJECT_084F:
2219 case ID_CUSTOM_OBJECT_084C:
2220 case ID_CUSTOM_OBJECT_1913:
2221 case ID_CUSTOM_OBJECT_0851:
2222 case ID_CUSTOM_OBJECT_0850:
2223 case ID_CUSTOM_OBJECT_0852:
2224 case ID_CUSTOM_OBJECT_0858:
2225 case ID_CUSTOM_OBJECT_0857:
2226 case ID_CUSTOM_OBJECT_0856:
2227 case ID_CUSTOM_OBJECT_0855:
2228 case ID_CUSTOM_OBJECT_399D:
2229 case ID_CUSTOM_OBJECT_210D:
2230 case ID_CUSTOM_OBJECT_210E:
2231 case ID_CUSTOM_OBJECT_190F:
2232 case ID_CUSTOM_OBJECT_2801:
2233 case ID_CUSTOM_OBJECT_1828:
2234 case ID_CUSTOM_OBJECT_1015:
2235 case ID_CUSTOM_OBJECT_0848:
2236 case ID_CUSTOM_OBJECT_0849:
2237 case ID_CUSTOM_OBJECT_0847:
2238 case ID_CUSTOM_OBJECT_3831:
2239 case ID_CUSTOM_OBJECT_2111:
2240 case ID_CUSTOM_OBJECT_0AB1:
2241 case ID_TRIGGER_0000:
2242 case ID_TRIGGER_0001:
2243 case ID_TRIGGER_0002:
2244 case ID_TRIGGER_0005:
2245 case ID_TRIGGER_0004:
2246 case ID_TRIGGER_0003:
2247 case ID_TRIGGER_0008:
2248 case ID_TRIGGER_0007:
2249 case ID_TRIGGER_0006:
2250 case ID_TRIGGER_0009:
2251 case ID_TRIGGER_000B:
2252 case ID_TRIGGER_0020:
2253 case ID_TRIGGER_001E:
2254 case ID_TRIGGER_001C:
2255 case ID_TRIGGER_001A:
2256 case ID_TRIGGER_0017:
2257 case ID_TRIGGER_001B:
2258 case ID_TRIGGER_0018:
2259 case ID_TRIGGER_0015:
2260 case ID_TRIGGER_0013:
2261 case ID_TRIGGER_0011:
2262 case ID_TRIGGER_0010:
2263 case ID_TRIGGER_001F:
2264 case ID_TRIGGER_001D:
2265 case ID_TRIGGER_0016:
2266 case ID_TRIGGER_0014:
2267 case ID_TRIGGER_0012:
2268 case ID_TRIGGER_0019:
2269 case ID_TRIGGER_000F:
2270 case ID_TRIGGER_000A:
2271 return ((BaseScript *)ptr)->CallEvent(event, data);
2272 break;
2273 default:
2274 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
2275 break;
2276 }
2277 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2278 }
2279
2280 // ==================
2281 // SaveRestoreState()
2282 // ==================
2283 int STDCALL SaveRestoreState(void *file_ptr, uint8_t saving_state) { return 0; }
2284
2285 // ====================
2286 // GetTriggerScriptID()
2287 // ====================
2288 int STDCALL GetTriggerScriptID(int trigger_room, int trigger_face) {
2289 if (trigger_room == Trigger_rooms[2] && trigger_face == Trigger_faces[2])
2290 return ID_TRIGGER_0000;
2291
2292 if (trigger_room == Trigger_rooms[0] && trigger_face == Trigger_faces[0])
2293 return ID_TRIGGER_0001;
2294
2295 if (trigger_room == Trigger_rooms[1] && trigger_face == Trigger_faces[1])
2296 return ID_TRIGGER_0002;
2297
2298 if (trigger_room == Trigger_rooms[3] && trigger_face == Trigger_faces[3])
2299 return ID_TRIGGER_0005;
2300
2301 if (trigger_room == Trigger_rooms[4] && trigger_face == Trigger_faces[4])
2302 return ID_TRIGGER_0004;
2303
2304 if (trigger_room == Trigger_rooms[5] && trigger_face == Trigger_faces[5])
2305 return ID_TRIGGER_0003;
2306
2307 if (trigger_room == Trigger_rooms[6] && trigger_face == Trigger_faces[6])
2308 return ID_TRIGGER_0008;
2309
2310 if (trigger_room == Trigger_rooms[7] && trigger_face == Trigger_faces[7])
2311 return ID_TRIGGER_0007;
2312
2313 if (trigger_room == Trigger_rooms[8] && trigger_face == Trigger_faces[8])
2314 return ID_TRIGGER_0006;
2315
2316 if (trigger_room == Trigger_rooms[9] && trigger_face == Trigger_faces[9])
2317 return ID_TRIGGER_0009;
2318
2319 if (trigger_room == Trigger_rooms[10] && trigger_face == Trigger_faces[10])
2320 return ID_TRIGGER_000B;
2321
2322 if (trigger_room == Trigger_rooms[11] && trigger_face == Trigger_faces[11])
2323 return ID_TRIGGER_0020;
2324
2325 if (trigger_room == Trigger_rooms[12] && trigger_face == Trigger_faces[12])
2326 return ID_TRIGGER_001E;
2327
2328 if (trigger_room == Trigger_rooms[13] && trigger_face == Trigger_faces[13])
2329 return ID_TRIGGER_001C;
2330
2331 if (trigger_room == Trigger_rooms[14] && trigger_face == Trigger_faces[14])
2332 return ID_TRIGGER_001A;
2333
2334 if (trigger_room == Trigger_rooms[15] && trigger_face == Trigger_faces[15])
2335 return ID_TRIGGER_0017;
2336
2337 if (trigger_room == Trigger_rooms[16] && trigger_face == Trigger_faces[16])
2338 return ID_TRIGGER_001B;
2339
2340 if (trigger_room == Trigger_rooms[17] && trigger_face == Trigger_faces[17])
2341 return ID_TRIGGER_0018;
2342
2343 if (trigger_room == Trigger_rooms[18] && trigger_face == Trigger_faces[18])
2344 return ID_TRIGGER_0015;
2345
2346 if (trigger_room == Trigger_rooms[19] && trigger_face == Trigger_faces[19])
2347 return ID_TRIGGER_0013;
2348
2349 if (trigger_room == Trigger_rooms[20] && trigger_face == Trigger_faces[20])
2350 return ID_TRIGGER_0011;
2351
2352 if (trigger_room == Trigger_rooms[21] && trigger_face == Trigger_faces[21])
2353 return ID_TRIGGER_0010;
2354
2355 if (trigger_room == Trigger_rooms[22] && trigger_face == Trigger_faces[22])
2356 return ID_TRIGGER_001F;
2357
2358 if (trigger_room == Trigger_rooms[23] && trigger_face == Trigger_faces[23])
2359 return ID_TRIGGER_001D;
2360
2361 if (trigger_room == Trigger_rooms[24] && trigger_face == Trigger_faces[24])
2362 return ID_TRIGGER_0016;
2363
2364 if (trigger_room == Trigger_rooms[25] && trigger_face == Trigger_faces[25])
2365 return ID_TRIGGER_0014;
2366
2367 if (trigger_room == Trigger_rooms[26] && trigger_face == Trigger_faces[26])
2368 return ID_TRIGGER_0012;
2369
2370 if (trigger_room == Trigger_rooms[27] && trigger_face == Trigger_faces[27])
2371 return ID_TRIGGER_0019;
2372
2373 if (trigger_room == Trigger_rooms[28] && trigger_face == Trigger_faces[28])
2374 return ID_TRIGGER_000F;
2375
2376 if (trigger_room == Trigger_rooms[29] && trigger_face == Trigger_faces[29])
2377 return ID_TRIGGER_000A;
2378
2379 return -1;
2380 }
2381
2382 // =================
2383 // GetCOScriptList()
2384 // =================
2385 int STDCALL GetCOScriptList(int **list, int **id_list) {
2386 static int cust_handle_list[26];
2387 static int cust_id_list[26] = {
2388 ID_CUSTOM_OBJECT_10FD, ID_CUSTOM_OBJECT_084D, ID_CUSTOM_OBJECT_084E, ID_CUSTOM_OBJECT_084F, ID_CUSTOM_OBJECT_084C,
2389 ID_CUSTOM_OBJECT_1913, ID_CUSTOM_OBJECT_0851, ID_CUSTOM_OBJECT_0850, ID_CUSTOM_OBJECT_0852, ID_CUSTOM_OBJECT_0858,
2390 ID_CUSTOM_OBJECT_0857, ID_CUSTOM_OBJECT_0856, ID_CUSTOM_OBJECT_0855, ID_CUSTOM_OBJECT_399D, ID_CUSTOM_OBJECT_210D,
2391 ID_CUSTOM_OBJECT_210E, ID_CUSTOM_OBJECT_190F, ID_CUSTOM_OBJECT_2801, ID_CUSTOM_OBJECT_1828, ID_CUSTOM_OBJECT_1015,
2392 ID_CUSTOM_OBJECT_0848, ID_CUSTOM_OBJECT_0849, ID_CUSTOM_OBJECT_0847, ID_CUSTOM_OBJECT_3831, ID_CUSTOM_OBJECT_2111,
2393 ID_CUSTOM_OBJECT_0AB1};
2394
2395 // Fill in the custom handle list
2396 cust_handle_list[0] = Object_handles[0];
2397 cust_handle_list[1] = Object_handles[5];
2398 cust_handle_list[2] = Object_handles[6];
2399 cust_handle_list[3] = Object_handles[7];
2400 cust_handle_list[4] = Object_handles[8];
2401 cust_handle_list[5] = Object_handles[9];
2402 cust_handle_list[6] = Object_handles[10];
2403 cust_handle_list[7] = Object_handles[11];
2404 cust_handle_list[8] = Object_handles[12];
2405 cust_handle_list[9] = Object_handles[13];
2406 cust_handle_list[10] = Object_handles[14];
2407 cust_handle_list[11] = Object_handles[15];
2408 cust_handle_list[12] = Object_handles[16];
2409 cust_handle_list[13] = Object_handles[17];
2410 cust_handle_list[14] = Object_handles[18];
2411 cust_handle_list[15] = Object_handles[20];
2412 cust_handle_list[16] = Object_handles[22];
2413 cust_handle_list[17] = Object_handles[24];
2414 cust_handle_list[18] = Object_handles[25];
2415 cust_handle_list[19] = Object_handles[26];
2416 cust_handle_list[20] = Object_handles[27];
2417 cust_handle_list[21] = Object_handles[28];
2418 cust_handle_list[22] = Object_handles[29];
2419 cust_handle_list[23] = Object_handles[31];
2420 cust_handle_list[24] = Object_handles[32];
2421 cust_handle_list[25] = Object_handles[37];
2422
2423 *list = cust_handle_list;
2424 *id_list = cust_id_list;
2425
2426 return 26;
2427 }
2428
2429 //=======================
2430 // Script Implementation
2431 //=======================
2432
2433 BaseScript::BaseScript() {}
2434
2435 BaseScript::~BaseScript() {}
2436
2437 int16_t BaseScript::CallEvent(int event, tOSIRISEventInfo *data) {
2438 mprintf(0, "BaseScript::CallEvent()\n");
2439 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2440 }
2441
2442 int16_t LevelScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
2443 switch (event) {
2444 case EVT_SAVESTATE: {
2445 tOSIRISEVTSAVESTATE *event_data = &data->evt_savestate;
2446
2447 SaveGlobalActionCtrs(event_data->fileptr);
2448 dfSave(event_data->fileptr);
2449 } break;
2450 case EVT_RESTORESTATE: {
2451 tOSIRISEVTRESTORESTATE *event_data = &data->evt_restorestate;
2452
2453 RestoreGlobalActionCtrs(event_data->fileptr);
2454 dfRestore(event_data->fileptr);
2455 } break;
2456 case EVT_INTERVAL: {
2457 tOSIRISEVTINTERVAL *event_data = &data->evt_interval;
2458
2459 // Script 035: Locate Back-up Reactor Goal Completed
2460 if ((ScriptActionCtr_035 < 1) && (qRoomHasPlayer(Room_indexes[12]) == true)) {
2461 aGoalCompleted(Goal_indexes[2], 1);
2462
2463 // Increment the script action counter
2464 if (ScriptActionCtr_035 < MAX_ACTION_CTR_VALUE)
2465 ScriptActionCtr_035++;
2466 }
2467 } break;
2468 case EVT_LEVELSTART: {
2469 tOSIRISEVTLEVELSTART *event_data = &data->evt_levelstart;
2470
2471 ClearGlobalActionCtrs();
2472 dfInit();
2473
2474 // Script 034: Level Start Initialization
2475 if (1) {
2476 aUserFlagSet(7, 0);
2477 aUserFlagSet(9, 0);
2478 aUserFlagSet(8, 0);
2479 aDoorSetPos(Door_handles[0], 0.000000f);
2480 aDoorSetPos(Door_handles[1], 0.000000f);
2481 aDoorSetPos(Door_handles[2], 0.000000f);
2482 aAIGoalFollowPath(Object_handles[2], Path_indexes[0], 1, 2, 1, 3, 2228480, -1);
2483 aAIGoalFollowPath(Object_handles[3], Path_indexes[1], 1, 2, 1, 3, 2228480, -1);
2484 aAIGoalFollowPath(Object_handles[4], Path_indexes[2], 1, 2, 1, 3, 2228480, -1);
2485 aUserFlagSet(13, 0);
2486 aUserFlagSet(18, 0);
2487
2488 // Increment the script action counter
2489 if (ScriptActionCtr_034 < MAX_ACTION_CTR_VALUE)
2490 ScriptActionCtr_034++;
2491 }
2492
2493 // Script 002: Powerless Energy Centers
2494 if (1) {
2495 aRoomSetFuelcen(0, Room_indexes[0]);
2496 aRoomSetFuelcen(0, Room_indexes[1]);
2497 aRoomSetFuelcen(0, Room_indexes[2]);
2498
2499 // Increment the script action counter
2500 if (ScriptActionCtr_002 < MAX_ACTION_CTR_VALUE)
2501 ScriptActionCtr_002++;
2502 }
2503
2504 // Script 012: MatCen Puzzle Init
2505 if (1) {
2506 aUserFlagSet(0, 0);
2507 aUserFlagSet(1, 0);
2508 aUserFlagSet(2, 0);
2509 aUserFlagSet(3, 0);
2510 aUserFlagSet(4, 0);
2511 aUserFlagSet(5, 0);
2512 aUserFlagSet(6, 0);
2513 aMatCenPuzzleInit();
2514
2515 // Increment the script action counter
2516 if (ScriptActionCtr_012 < MAX_ACTION_CTR_VALUE)
2517 ScriptActionCtr_012++;
2518 }
2519
2520 // Script 018: Lava Puzzle Switch Starts
2521 if (1) {
2522 aUserFlagSet(7, 0);
2523 aUserFlagSet(8, 0);
2524 aUserFlagSet(9, 0);
2525 aUserFlagSet(10, 0);
2526 aUserFlagSet(11, 0);
2527 aUserFlagSet(12, 0);
2528 aUserFlagSet(19, 0);
2529
2530 // Increment the script action counter
2531 if (ScriptActionCtr_018 < MAX_ACTION_CTR_VALUE)
2532 ScriptActionCtr_018++;
2533 }
2534
2535 // Script 019: Geo Lava Room Damage
2536 if (1) {
2537 aRoomSetDamage(Room_indexes[3], 6.000000f, 0);
2538 aRoomSetDamage(Room_indexes[4], 6.000000f, 0);
2539 aRoomSetDamage(Room_indexes[5], 6.000000f, 0);
2540 aRoomSetDamage(Room_indexes[6], 6.000000f, 0);
2541 aRoomSetDamage(Room_indexes[7], 6.000000f, 0);
2542 aRoomSetDamage(Room_indexes[8], 6.000000f, 0);
2543
2544 // Increment the script action counter
2545 if (ScriptActionCtr_019 < MAX_ACTION_CTR_VALUE)
2546 ScriptActionCtr_019++;
2547 }
2548
2549 // Script 040: TNT Dispensers Start
2550 if (1) {
2551 aUserFlagSet(15, 0);
2552 aUserFlagSet(16, 0);
2553 aUserFlagSet(17, 0);
2554
2555 // Increment the script action counter
2556 if (ScriptActionCtr_040 < MAX_ACTION_CTR_VALUE)
2557 ScriptActionCtr_040++;
2558 }
2559
2560 // Script 044: Boss Chamber Entrance Forcefield Start
2561 if (1) {
2562 aPortalRenderSet(0, 1, Room_indexes[9], 1);
2563
2564 // Increment the script action counter
2565 if (ScriptActionCtr_044 < MAX_ACTION_CTR_VALUE)
2566 ScriptActionCtr_044++;
2567 }
2568
2569 // Script 047: Volcanoes Smoking
2570 if (1) {
2571 aTurnOnSpew(Object_handles[34], 0, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2572 200.000000f, 45.000000f, 1, 6);
2573 aTurnOnSpew(Object_handles[34], 1, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2574 200.000000f, 45.000000f, 1, 6);
2575 aTurnOnSpew(Object_handles[34], 2, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2576 200.000000f, 45.000000f, 1, 6);
2577 aTurnOnSpew(Object_handles[34], 3, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2578 200.000000f, 45.000000f, 1, 6);
2579 aTurnOnSpew(Object_handles[34], 4, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2580 200.000000f, 45.000000f, 1, 6);
2581 aTurnOnSpew(Object_handles[35], 0, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2582 200.000000f, 45.000000f, 1, 6);
2583 aTurnOnSpew(Object_handles[35], 1, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2584 200.000000f, 45.000000f, 1, 6);
2585 aTurnOnSpew(Object_handles[35], 2, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2586 200.000000f, 45.000000f, 1, 6);
2587 aTurnOnSpew(Object_handles[36], 0, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2588 200.000000f, 45.000000f, 1, 6);
2589 aTurnOnSpew(Object_handles[36], 1, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2590 200.000000f, 45.000000f, 1, 6);
2591 aTurnOnSpew(Object_handles[36], 2, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2592 200.000000f, 45.000000f, 1, 6);
2593 aTurnOnSpew(Object_handles[36], 3, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2594 200.000000f, 45.000000f, 1, 6);
2595 aTurnOnSpew(Object_handles[36], 4, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2596 200.000000f, 45.000000f, 1, 6);
2597 aTurnOnSpew(Object_handles[36], 5, 8, 0.000000f, 0.000000f, 65536, 0, 14.000000f, 0.300000f, -1.000000f,
2598 200.000000f, 45.000000f, 1, 6);
2599
2600 // Increment the script action counter
2601 if (ScriptActionCtr_047 < MAX_ACTION_CTR_VALUE)
2602 ScriptActionCtr_047++;
2603 }
2604
2605 // Script 052: Intro Camera
2606 if (1) {
2607 aCinematicIntro(Path_indexes[7], Message_strings[19], Object_handles[32], Path_indexes[8], 8.000000f);
2608 aSoundPlaySteaming("VoxL15StartLevel.osf", 1.000000f);
2609
2610 // Increment the script action counter
2611 if (ScriptActionCtr_052 < MAX_ACTION_CTR_VALUE)
2612 ScriptActionCtr_052++;
2613 }
2614
2615 // Script 058: Music Start Intro
2616 if (1) {
2617 aMusicSetRegionAll(1);
2618
2619 // Increment the script action counter
2620 if (ScriptActionCtr_058 < MAX_ACTION_CTR_VALUE)
2621 ScriptActionCtr_058++;
2622 }
2623
2624 // Script 080: The Fan Start
2625 if (1) {
2626 aRoomSetWind(Room_indexes[11], 0.000000f, -1.000000f, 0.000000f, 10.000000f);
2627
2628 // Increment the script action counter
2629 if (ScriptActionCtr_080 < MAX_ACTION_CTR_VALUE)
2630 ScriptActionCtr_080++;
2631 }
2632
2633 // Script 083: Weather Start
2634 if (1) {
2635 aLightningTurnOn(1.000000f, 0.500000f);
2636 aRainTurnOn(0.500000f);
2637 aSetLevelTimer(qRandomValue(2.000000f, 15.000000f), 3);
2638
2639 // Increment the script action counter
2640 if (ScriptActionCtr_083 < MAX_ACTION_CTR_VALUE)
2641 ScriptActionCtr_083++;
2642 }
2643
2644 // Script 090: Rotating Lights
2645 if (1) {
2646 aObjPlayAnim(Object_handles[38], 0, 64, 1.000000f, 1);
2647 aObjPlayAnim(Object_handles[39], 0, 64, 1.000000f, 1);
2648
2649 // Increment the script action counter
2650 if (ScriptActionCtr_090 < MAX_ACTION_CTR_VALUE)
2651 ScriptActionCtr_090++;
2652 }
2653 } break;
2654 case EVT_TIMER: {
2655 tOSIRISEVTTIMER *event_data = &data->evt_timer;
2656
2657 // Script 053: Energy Centers Repaired Timer
2658 if (event_data->id == 2) {
2659 aShowHUDMessage(Message_strings[5]);
2660
2661 // Increment the script action counter
2662 if (ScriptActionCtr_053 < MAX_ACTION_CTR_VALUE)
2663 ScriptActionCtr_053++;
2664 }
2665
2666 // Script 085: Major Eruption Tremor
2667 if (4 == event_data->id) {
2668 aMiscViewerShake(qRandomValue(40.000000f, 100.000000f));
2669 aSoundPlay2D(Sound_indexes[2], 1.000000f);
2670 aSetLevelTimer(qRandomValue(5.000000f, 15.000000f), 3);
2671
2672 // Increment the script action counter
2673 if (ScriptActionCtr_085 < MAX_ACTION_CTR_VALUE)
2674 ScriptActionCtr_085++;
2675 }
2676
2677 // Script 084: Minor Eruption Tremor
2678 if (3 == event_data->id) {
2679 aMiscViewerShake(qRandomValue(10.000000f, 50.000000f));
2680 aSoundPlay2D(Sound_indexes[3], 0.500000f);
2681 aSetLevelTimer(qRandomValue(10.000000f, 30.000000f), 4);
2682
2683 // Increment the script action counter
2684 if (ScriptActionCtr_084 < MAX_ACTION_CTR_VALUE)
2685 ScriptActionCtr_084++;
2686 }
2687 } break;
2688 case EVT_PLAYER_MOVIE_END: {
2689 tOSIRISEVTPLAYERMOVIEEND *event_data = &data->evt_player_movie_end;
2690
2691 // Script 059: Music Outside Init
2692 if (1) {
2693 aMusicSetRegionAll(1);
2694
2695 // Increment the script action counter
2696 if (ScriptActionCtr_059 < MAX_ACTION_CTR_VALUE)
2697 ScriptActionCtr_059++;
2698 }
2699
2700 // Script 079: Pre-Boss Cinematic Finished
2701 if (qUserFlag(19) == true) {
2702 aUserFlagSet(19, 0);
2703 aCinematicSimple(Path_indexes[11], Message_strings[21], Object_handles[32], 12.000000f, 1);
2704
2705 // Increment the script action counter
2706 if (ScriptActionCtr_079 < MAX_ACTION_CTR_VALUE)
2707 ScriptActionCtr_079++;
2708 }
2709 } break;
2710 }
2711 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2712 }
2713
2714 int16_t CustomObjectScript_10FD::CallEvent(int event, tOSIRISEventInfo *data) {
2715 switch (event) {
2716 case EVT_COLLIDE: {
2717 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2718
2719 // Script 000: Inner Stronghold Passkey
2720 if (qObjIsPlayer(event_data->it_handle) == true) {
2721 aShowHUDMessage(Message_strings[0]);
2722 aCreatePopupView(0, Object_handles[1], 10.000000f, 1.000000f);
2723 aObjectPlayerGiveKey(event_data->it_handle, Object_handles[0], 1, Message_strings[1], 0);
2724 aGoalCompleted(Goal_indexes[0], 1);
2725
2726 // Increment the script action counter
2727 if (ScriptActionCtr_000 < MAX_ACTION_CTR_VALUE)
2728 ScriptActionCtr_000++;
2729 }
2730 } break;
2731 }
2732 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2733 }
2734
2735 int16_t CustomObjectScript_084D::CallEvent(int event, tOSIRISEventInfo *data) {
2736 switch (event) {
2737 case EVT_COLLIDE: {
2738 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2739
2740 // Script 001: Left Lava Crank
2741 if ((qObjIsPlayerWeapon(event_data->it_handle) == true) && (qUserFlag(7) == false)) {
2742 aAIGoalFollowPath(Object_handles[2], Path_indexes[0], 1, 2, 1, 3, 19005696, -1);
2743 aObjPlayAnim(Object_handles[5], 0, 20, 2.000000f, 0);
2744 aShowHUDMessage(Message_strings[2]);
2745 aUserFlagSet(7, 1);
2746 aDoorSetPos(Door_handles[1], 1.000000f);
2747
2748 // Increment the script action counter
2749 if (ScriptActionCtr_001 < MAX_ACTION_CTR_VALUE)
2750 ScriptActionCtr_001++;
2751 }
2752 } break;
2753 }
2754 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2755 }
2756
2757 int16_t CustomObjectScript_084E::CallEvent(int event, tOSIRISEventInfo *data) {
2758 switch (event) {
2759 case EVT_COLLIDE: {
2760 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2761
2762 // Script 020: Center Lava Crank
2763 if ((qObjIsPlayerWeapon(event_data->it_handle) == true) && (qUserFlag(8) == false)) {
2764 aAIGoalFollowPath(Object_handles[4], Path_indexes[2], 1, 2, 1, 3, 19005696, -1);
2765 aObjPlayAnim(Object_handles[6], 0, 20, 2.000000f, 0);
2766 aShowHUDMessage(Message_strings[3]);
2767 aUserFlagSet(8, 1);
2768 aDoorSetPos(Door_handles[2], 1.000000f);
2769
2770 // Increment the script action counter
2771 if (ScriptActionCtr_020 < MAX_ACTION_CTR_VALUE)
2772 ScriptActionCtr_020++;
2773 }
2774 } break;
2775 }
2776 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2777 }
2778
2779 int16_t CustomObjectScript_084F::CallEvent(int event, tOSIRISEventInfo *data) {
2780 switch (event) {
2781 case EVT_COLLIDE: {
2782 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2783
2784 // Script 021: Right Lava Crank
2785 if ((qObjIsPlayerWeapon(event_data->it_handle) == true) && (qUserFlag(9) == false)) {
2786 aAIGoalFollowPath(Object_handles[3], Path_indexes[1], 1, 2, 1, 3, 19005696, -1);
2787 aObjPlayAnim(Object_handles[7], 0, 20, 2.000000f, 0);
2788 aShowHUDMessage(Message_strings[4]);
2789 aUserFlagSet(9, 1);
2790 aDoorSetPos(Door_handles[0], 1.000000f);
2791
2792 // Increment the script action counter
2793 if (ScriptActionCtr_021 < MAX_ACTION_CTR_VALUE)
2794 ScriptActionCtr_021++;
2795 }
2796 } break;
2797 }
2798 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2799 }
2800
2801 int16_t CustomObjectScript_084C::CallEvent(int event, tOSIRISEventInfo *data) {
2802 switch (event) {
2803 case EVT_COLLIDE: {
2804 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2805
2806 // Script 003: Old Backup Reactor
2807 if ((ScriptActionCtr_003 < 1) &&
2808 ((qObjIsPlayerWeapon(event_data->it_handle) == true) && (qObjExists(Object_handles[9]) == false))) {
2809 aObjPlayAnim(Object_handles[8], 0, 20, 2.000000f, 0);
2810 aShowHUDMessage(Message_strings[6]);
2811 aRoomSetLightingStrobe(0, Room_indexes[0]);
2812 aRoomSetFuelcen(1, Room_indexes[0]);
2813 aRoomSetLightingFlicker(0, Room_indexes[1]);
2814 aRoomSetFuelcen(1, Room_indexes[1]);
2815 aRoomSetLightingStrobe(0, Room_indexes[2]);
2816 aRoomSetLightingFlicker(0, Room_indexes[2]);
2817 aRoomSetFuelcen(1, Room_indexes[2]);
2818 aRoomSetLightingStrobe(0, Room_indexes[1]);
2819 aRoomSetLightingFlicker(0, Room_indexes[0]);
2820 aTriggerSetState(0, Trigger_indexes[0]);
2821 aTriggerSetState(0, Trigger_indexes[1]);
2822 aTriggerSetState(0, Trigger_indexes[2]);
2823 aGoalCompleted(Goal_indexes[1], 1);
2824 aSetLevelTimer(3.000000f, 2);
2825 aSoundPlayObject(Sound_indexes[0], Object_handles[8], 1.000000f);
2826
2827 // Increment the script action counter
2828 if (ScriptActionCtr_003 < MAX_ACTION_CTR_VALUE)
2829 ScriptActionCtr_003++;
2830 }
2831
2832 // Script 005: Backup Reactor Broken
2833 if ((qObjIsPlayerWeapon(event_data->it_handle) == true) && (qObjExists(Object_handles[9]) == true)) {
2834 aShowHUDMessage(Message_strings[8]);
2835 aGoalEnableDisable(1, Goal_indexes[3]);
2836 aGoalEnableDisable(1, Goal_indexes[1]);
2837
2838 // Increment the script action counter
2839 if (ScriptActionCtr_005 < MAX_ACTION_CTR_VALUE)
2840 ScriptActionCtr_005++;
2841 }
2842 } break;
2843 }
2844 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2845 }
2846
2847 int16_t CustomObjectScript_1913::CallEvent(int event, tOSIRISEventInfo *data) {
2848 switch (event) {
2849 case EVT_COLLIDE: {
2850 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2851
2852 // Script 004: Old Backup Reactor Fuse
2853 if (qObjIsPlayer(event_data->it_handle) == true) {
2854 aObjDelete(Object_handles[9]);
2855 aGoalEnableDisable(1, Goal_indexes[2]);
2856 aShowHUDMessage(Message_strings[7]);
2857 aGoalCompleted(Goal_indexes[3], 1);
2858
2859 // Increment the script action counter
2860 if (ScriptActionCtr_004 < MAX_ACTION_CTR_VALUE)
2861 ScriptActionCtr_004++;
2862 }
2863 } break;
2864 }
2865 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2866 }
2867
2868 int16_t CustomObjectScript_0851::CallEvent(int event, tOSIRISEventInfo *data) {
2869 switch (event) {
2870 case EVT_COLLIDE: {
2871 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2872
2873 // Script 006: MatCen Control Switch A
2874 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
2875 aMatCenPuzzleSwitchA(qObjParent(event_data->it_handle));
2876
2877 // Increment the script action counter
2878 if (ScriptActionCtr_006 < MAX_ACTION_CTR_VALUE)
2879 ScriptActionCtr_006++;
2880 }
2881 } break;
2882 }
2883 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2884 }
2885
2886 int16_t CustomObjectScript_0850::CallEvent(int event, tOSIRISEventInfo *data) {
2887 switch (event) {
2888 case EVT_COLLIDE: {
2889 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2890
2891 // Script 008: MatCen Control Switch B
2892 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
2893 aMatCenPuzzleSwitchB(qObjParent(event_data->it_handle));
2894
2895 // Increment the script action counter
2896 if (ScriptActionCtr_008 < MAX_ACTION_CTR_VALUE)
2897 ScriptActionCtr_008++;
2898 }
2899 } break;
2900 }
2901 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2902 }
2903
2904 int16_t CustomObjectScript_0852::CallEvent(int event, tOSIRISEventInfo *data) {
2905 switch (event) {
2906 case EVT_COLLIDE: {
2907 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2908
2909 // Script 009: MatCen Control Switch C
2910 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
2911 aMatCenPuzzleSwitchC(qObjParent(event_data->it_handle));
2912
2913 // Increment the script action counter
2914 if (ScriptActionCtr_009 < MAX_ACTION_CTR_VALUE)
2915 ScriptActionCtr_009++;
2916 }
2917 } break;
2918 }
2919 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2920 }
2921
2922 int16_t CustomObjectScript_0858::CallEvent(int event, tOSIRISEventInfo *data) {
2923 switch (event) {
2924 case EVT_COLLIDE: {
2925 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2926
2927 // Script 010: MatCen Control Switch D
2928 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
2929 aMatCenPuzzleSwitchD(qObjParent(event_data->it_handle));
2930
2931 // Increment the script action counter
2932 if (ScriptActionCtr_010 < MAX_ACTION_CTR_VALUE)
2933 ScriptActionCtr_010++;
2934 }
2935 } break;
2936 }
2937 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2938 }
2939
2940 int16_t CustomObjectScript_0857::CallEvent(int event, tOSIRISEventInfo *data) {
2941 switch (event) {
2942 case EVT_COLLIDE: {
2943 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2944
2945 // Script 011: MatCen Control Switch E
2946 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
2947 aMatCenPuzzleSwitchE(qObjParent(event_data->it_handle));
2948
2949 // Increment the script action counter
2950 if (ScriptActionCtr_011 < MAX_ACTION_CTR_VALUE)
2951 ScriptActionCtr_011++;
2952 }
2953 } break;
2954 }
2955 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2956 }
2957
2958 int16_t CustomObjectScript_0856::CallEvent(int event, tOSIRISEventInfo *data) {
2959 switch (event) {
2960 case EVT_COLLIDE: {
2961 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2962
2963 // Script 013: MatCen Control Switch F
2964 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
2965 aMatCenPuzzleSwitchF(qObjParent(event_data->it_handle));
2966
2967 // Increment the script action counter
2968 if (ScriptActionCtr_013 < MAX_ACTION_CTR_VALUE)
2969 ScriptActionCtr_013++;
2970 }
2971 } break;
2972 }
2973 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2974 }
2975
2976 int16_t CustomObjectScript_0855::CallEvent(int event, tOSIRISEventInfo *data) {
2977 switch (event) {
2978 case EVT_COLLIDE: {
2979 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2980
2981 // Script 014: MatCen Control Switch G
2982 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
2983 aMatCenPuzzleSwitchG(qObjParent(event_data->it_handle));
2984
2985 // Increment the script action counter
2986 if (ScriptActionCtr_014 < MAX_ACTION_CTR_VALUE)
2987 ScriptActionCtr_014++;
2988 }
2989 } break;
2990 }
2991 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
2992 }
2993
2994 int16_t CustomObjectScript_399D::CallEvent(int event, tOSIRISEventInfo *data) {
2995 switch (event) {
2996 case EVT_COLLIDE: {
2997 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
2998
2999 // Script 007: MatCen Puzzle Reset
3000 if (qObjIsPlayerWeapon(event_data->it_handle) == 1) {
3001 aMatCenPuzzleReset();
3002
3003 // Increment the script action counter
3004 if (ScriptActionCtr_007 < MAX_ACTION_CTR_VALUE)
3005 ScriptActionCtr_007++;
3006 }
3007 } break;
3008 }
3009 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3010 }
3011
3012 int16_t CustomObjectScript_210D::CallEvent(int event, tOSIRISEventInfo *data) {
3013 switch (event) {
3014 case EVT_COLLIDE: {
3015 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3016
3017 // Script 026: Right Geo Tube Switch
3018 if ((qObjIsPlayerWeapon(event_data->it_handle) == true) && (qUserFlag(12) == false)) {
3019 aObjPlayAnim(Object_handles[18], 0, 1, 2.000000f, 0);
3020 aDoorSetPos(Door_handles[0], 0.000000f);
3021 aDoorSetPos(Door_handles[3], 1.000000f);
3022 aDoorSetPos(Door_handles[4], 1.000000f);
3023 aAIGoalFollowPath(Object_handles[3], Path_indexes[1], 1, 2, 1, 3, 2228480, -1);
3024 aUserFlagSet(9, 0);
3025 aObjPlayAnim(Object_handles[7], 20, 40, 1.000000f, 0);
3026 aAIGoalFollowPath(Object_handles[19], Path_indexes[3], 1, 2, 1, 3, 2228480, -1);
3027 aUserFlagSet(12, 1);
3028
3029 // Increment the script action counter
3030 if (ScriptActionCtr_026 < MAX_ACTION_CTR_VALUE)
3031 ScriptActionCtr_026++;
3032 }
3033 } break;
3034 }
3035 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3036 }
3037
3038 int16_t CustomObjectScript_210E::CallEvent(int event, tOSIRISEventInfo *data) {
3039 switch (event) {
3040 case EVT_COLLIDE: {
3041 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3042
3043 // Script 022: Center Geo Tube Switch
3044 if ((qObjIsPlayerWeapon(event_data->it_handle) == true) && (qUserFlag(11) == false)) {
3045 aObjPlayAnim(Object_handles[20], 0, 1, 2.000000f, 0);
3046 aDoorSetPos(Door_handles[2], 0.000000f);
3047 aDoorSetPos(Door_handles[5], 1.000000f);
3048 aDoorSetPos(Door_handles[6], 1.000000f);
3049 aAIGoalFollowPath(Object_handles[4], Path_indexes[2], 1, 2, 1, 3, 2228480, -1);
3050 aUserFlagSet(8, 0);
3051 aObjPlayAnim(Object_handles[6], 20, 40, 1.000000f, 0);
3052 aAIGoalFollowPath(Object_handles[21], Path_indexes[4], 1, 2, 1, 3, 2228480, -1);
3053 aUserFlagSet(11, 1);
3054
3055 // Increment the script action counter
3056 if (ScriptActionCtr_022 < MAX_ACTION_CTR_VALUE)
3057 ScriptActionCtr_022++;
3058 }
3059 } break;
3060 }
3061 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3062 }
3063
3064 int16_t CustomObjectScript_190F::CallEvent(int event, tOSIRISEventInfo *data) {
3065 switch (event) {
3066 case EVT_COLLIDE: {
3067 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3068
3069 // Script 023: Left Geo Tube Switch
3070 if ((qObjIsPlayerWeapon(event_data->it_handle) == true) && (qUserFlag(10) == false)) {
3071 aObjPlayAnim(Object_handles[22], 0, 1, 2.000000f, 0);
3072 aDoorSetPos(Door_handles[1], 0.000000f);
3073 aDoorSetPos(Door_handles[7], 1.000000f);
3074 aDoorSetPos(Door_handles[8], 1.000000f);
3075 aAIGoalFollowPath(Object_handles[2], Path_indexes[0], 1, 2, 1, 3, 2228480, -1);
3076 aUserFlagSet(7, 0);
3077 aObjPlayAnim(Object_handles[5], 20, 40, 1.000000f, 0);
3078 aAIGoalFollowPath(Object_handles[23], Path_indexes[5], 1, 2, 1, 3, 2228480, -1);
3079 aUserFlagSet(10, 1);
3080
3081 // Increment the script action counter
3082 if (ScriptActionCtr_023 < MAX_ACTION_CTR_VALUE)
3083 ScriptActionCtr_023++;
3084 }
3085 } break;
3086 }
3087 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3088 }
3089
3090 int16_t CustomObjectScript_2801::CallEvent(int event, tOSIRISEventInfo *data) {
3091 switch (event) {
3092 case EVT_COLLIDE: {
3093 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3094
3095 // Script 033: Inner Stronghold Door E
3096 if ((qObjIsPlayerOrPlayerWeapon(event_data->it_handle) == true) &&
3097 (qDoorOpenable(data->me_handle, event_data->it_handle) == false)) {
3098 aShowHUDMessage(Message_strings[10]);
3099 if (qUserFlag(13) == false) {
3100 aUserFlagSet(13, 1);
3101 aGoalEnableDisable(1, Goal_indexes[0]);
3102 }
3103
3104 // Increment the script action counter
3105 if (ScriptActionCtr_033 < MAX_ACTION_CTR_VALUE)
3106 ScriptActionCtr_033++;
3107 }
3108 } break;
3109 }
3110 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3111 }
3112
3113 int16_t CustomObjectScript_1828::CallEvent(int event, tOSIRISEventInfo *data) {
3114 switch (event) {
3115 case EVT_COLLIDE: {
3116 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3117
3118 // Script 032: Inner Stronghold Door D
3119 if ((qObjIsPlayerOrPlayerWeapon(event_data->it_handle) == true) &&
3120 (qDoorOpenable(data->me_handle, event_data->it_handle) == false)) {
3121 aShowHUDMessage(Message_strings[10]);
3122 if (qUserFlag(13) == false) {
3123 aUserFlagSet(13, 1);
3124 aGoalEnableDisable(1, Goal_indexes[0]);
3125 }
3126
3127 // Increment the script action counter
3128 if (ScriptActionCtr_032 < MAX_ACTION_CTR_VALUE)
3129 ScriptActionCtr_032++;
3130 }
3131 } break;
3132 }
3133 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3134 }
3135
3136 int16_t CustomObjectScript_1015::CallEvent(int event, tOSIRISEventInfo *data) {
3137 switch (event) {
3138 case EVT_COLLIDE: {
3139 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3140
3141 // Script 031: Inner Stronghold Door C
3142 if ((qObjIsPlayerOrPlayerWeapon(event_data->it_handle) == true) &&
3143 (qDoorOpenable(data->me_handle, event_data->it_handle) == false)) {
3144 aShowHUDMessage(Message_strings[10]);
3145 if (qUserFlag(13) == false) {
3146 aUserFlagSet(13, 1);
3147 aGoalEnableDisable(1, Goal_indexes[0]);
3148 }
3149
3150 // Increment the script action counter
3151 if (ScriptActionCtr_031 < MAX_ACTION_CTR_VALUE)
3152 ScriptActionCtr_031++;
3153 }
3154 } break;
3155 }
3156 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3157 }
3158
3159 int16_t CustomObjectScript_0848::CallEvent(int event, tOSIRISEventInfo *data) {
3160 switch (event) {
3161 case EVT_COLLIDE: {
3162 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3163
3164 // Script 038: Center TNT Dispenser Switch
3165 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
3166 if (qUserFlag(16) == false) {
3167 aObjPlayAnim(Object_handles[27], 0, 10, 1.000000f, 0);
3168 aShowHUDMessage(Message_strings[11]);
3169 aMatcenSetState(1, Matcen_indexes[0]);
3170 aUserFlagSet(16, 1);
3171 aSetObjectTimer(Object_handles[27], 1.000000f, 1);
3172 } else {
3173 }
3174
3175 // Increment the script action counter
3176 if (ScriptActionCtr_038 < MAX_ACTION_CTR_VALUE)
3177 ScriptActionCtr_038++;
3178 }
3179 } break;
3180 case EVT_TIMER: {
3181 tOSIRISEVTTIMER *event_data = &data->evt_timer;
3182
3183 // Script 050: Center TNT Dispenser Reset
3184 if (event_data->id == 1) {
3185 aMatcenSetState(0, Matcen_indexes[0]);
3186 aUserFlagSet(16, 0);
3187 aObjPlayAnim(Object_handles[27], 10, 20, 1.000000f, 0);
3188
3189 // Increment the script action counter
3190 if (ScriptActionCtr_050 < MAX_ACTION_CTR_VALUE)
3191 ScriptActionCtr_050++;
3192 }
3193 } break;
3194 }
3195 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3196 }
3197
3198 int16_t CustomObjectScript_0849::CallEvent(int event, tOSIRISEventInfo *data) {
3199 switch (event) {
3200 case EVT_COLLIDE: {
3201 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3202
3203 // Script 039: Right TNT Dispenser Switch
3204 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
3205 if (qUserFlag(17) == false) {
3206 aObjPlayAnim(Object_handles[28], 0, 10, 1.000000f, 0);
3207 aShowHUDMessage(Message_strings[12]);
3208 aMatcenSetState(1, Matcen_indexes[1]);
3209 aUserFlagSet(17, 1);
3210 aSetObjectTimer(Object_handles[28], 1.000000f, 0);
3211 } else {
3212 }
3213
3214 // Increment the script action counter
3215 if (ScriptActionCtr_039 < MAX_ACTION_CTR_VALUE)
3216 ScriptActionCtr_039++;
3217 }
3218 } break;
3219 case EVT_TIMER: {
3220 tOSIRISEVTTIMER *event_data = &data->evt_timer;
3221
3222 // Script 036: Right TNT Dispenser Reset
3223 if (event_data->id == 0) {
3224 aMatcenSetState(0, Matcen_indexes[1]);
3225 aUserFlagSet(17, 0);
3226 aObjPlayAnim(Object_handles[28], 10, 20, 1.000000f, 0);
3227
3228 // Increment the script action counter
3229 if (ScriptActionCtr_036 < MAX_ACTION_CTR_VALUE)
3230 ScriptActionCtr_036++;
3231 }
3232 } break;
3233 }
3234 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3235 }
3236
3237 int16_t CustomObjectScript_0847::CallEvent(int event, tOSIRISEventInfo *data) {
3238 switch (event) {
3239 case EVT_COLLIDE: {
3240 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3241
3242 // Script 037: Left TNT Dispenser Switch
3243 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
3244 if (qUserFlag(15) == false) {
3245 aShowHUDMessage(Message_strings[13]);
3246 aTurnOnSpew(Object_handles[30], -1, 8, 0.000000f, 0.000000f, 65536, 0, 0.750000f, 0.100000f, -1.000000f,
3247 2.000000f, 10.000000f, 1, 5);
3248 aUserFlagSet(15, 1);
3249 aObjPlayAnim(Object_handles[29], 0, 10, 1.000000f, 0);
3250 aMiscViewerShake(40.000000f);
3251 aSoundPlayObject(Sound_indexes[1], Object_handles[30], 1.000000f);
3252 } else {
3253 aShowHUDMessage(Message_strings[14]);
3254 }
3255
3256 // Increment the script action counter
3257 if (ScriptActionCtr_037 < MAX_ACTION_CTR_VALUE)
3258 ScriptActionCtr_037++;
3259 }
3260 } break;
3261 }
3262 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3263 }
3264
3265 int16_t CustomObjectScript_3831::CallEvent(int event, tOSIRISEventInfo *data) {
3266 switch (event) {
3267 case EVT_COLLIDE: {
3268 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3269
3270 // Script 041: TNT Rock Wall hit with player weapon
3271 if (qObjIsPlayerWeapon(event_data->it_handle) == true) {
3272 aShowHUDMessageObj(Message_strings[16], event_data->it_handle);
3273
3274 // Increment the script action counter
3275 if (ScriptActionCtr_041 < MAX_ACTION_CTR_VALUE)
3276 ScriptActionCtr_041++;
3277 }
3278 } break;
3279 case EVT_DESTROY: {
3280 tOSIRISEVTDESTROY *event_data = &data->evt_destroy;
3281
3282 // If destroy event is due to level ending, don't run scripts
3283 if (!event_data->is_dying)
3284 break;
3285
3286 // Script 051: TNT Rock wall destroyed
3287 if (1) {
3288 aShowHUDMessage(Message_strings[15]);
3289
3290 // Increment the script action counter
3291 if (ScriptActionCtr_051 < MAX_ACTION_CTR_VALUE)
3292 ScriptActionCtr_051++;
3293 }
3294 } break;
3295 }
3296 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3297 }
3298
3299 int16_t CustomObjectScript_2111::CallEvent(int event, tOSIRISEventInfo *data) {
3300 switch (event) {
3301 case EVT_DESTROY: {
3302 tOSIRISEVTDESTROY *event_data = &data->evt_destroy;
3303
3304 // If destroy event is due to level ending, don't run scripts
3305 if (!event_data->is_dying)
3306 break;
3307
3308 // Script 045: Boss Death Dravis Door
3309 if (1) {
3310 aDoorSetPos(Door_handles[9], 1.000000f);
3311 aShowHUDMessage(Message_strings[17]);
3312 aGoalCompleted(Goal_indexes[4], 1);
3313
3314 // Increment the script action counter
3315 if (ScriptActionCtr_045 < MAX_ACTION_CTR_VALUE)
3316 ScriptActionCtr_045++;
3317 }
3318 } break;
3319 }
3320 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3321 }
3322
3323 int16_t CustomObjectScript_0AB1::CallEvent(int event, tOSIRISEventInfo *data) {
3324 switch (event) {
3325 case EVT_COLLIDE: {
3326 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3327
3328 // Script 081: The Fan Kill
3329 if (qObjIsPlayer(event_data->it_handle) == true) {
3330 aObjApplyDamage(event_data->it_handle, 0.250000f);
3331
3332 // Increment the script action counter
3333 if (ScriptActionCtr_081 < MAX_ACTION_CTR_VALUE)
3334 ScriptActionCtr_081++;
3335 }
3336 } break;
3337 case EVT_DESTROY: {
3338 tOSIRISEVTDESTROY *event_data = &data->evt_destroy;
3339
3340 // If destroy event is due to level ending, don't run scripts
3341 if (!event_data->is_dying)
3342 break;
3343
3344 // Script 082: The Fan Destroyed
3345 if (1) {
3346 aRoomSetWind(Room_indexes[11], 0.000000f, 0.000000f, 0.000000f, 1.000000f);
3347
3348 // Increment the script action counter
3349 if (ScriptActionCtr_082 < MAX_ACTION_CTR_VALUE)
3350 ScriptActionCtr_082++;
3351 }
3352 } break;
3353 }
3354 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3355 }
3356
3357 int16_t TriggerScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
3358 switch (event) {
3359 case EVT_COLLIDE: {
3360 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3361
3362 // Script 015: Backup Energy Center Broken
3363 if (qObjIsPlayer(event_data->it_handle) == true) {
3364 aShowHUDMessage(Message_strings[9]);
3365
3366 // Increment the script action counter
3367 if (ScriptActionCtr_015 < MAX_ACTION_CTR_VALUE)
3368 ScriptActionCtr_015++;
3369 }
3370 } break;
3371 }
3372 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3373 }
3374
3375 int16_t TriggerScript_0001::CallEvent(int event, tOSIRISEventInfo *data) {
3376 switch (event) {
3377 case EVT_COLLIDE: {
3378 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3379
3380 // Script 016: C Shaped Energy Center Broken
3381 if (qObjIsPlayer(event_data->it_handle) == true) {
3382 aShowHUDMessage(Message_strings[9]);
3383 aGoalEnableDisable(1, Goal_indexes[2]);
3384
3385 // Increment the script action counter
3386 if (ScriptActionCtr_016 < MAX_ACTION_CTR_VALUE)
3387 ScriptActionCtr_016++;
3388 }
3389 } break;
3390 }
3391 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3392 }
3393
3394 int16_t TriggerScript_0002::CallEvent(int event, tOSIRISEventInfo *data) {
3395 switch (event) {
3396 case EVT_COLLIDE: {
3397 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3398
3399 // Script 017: Secret Energy Center Broken
3400 if (qObjIsPlayer(event_data->it_handle) == true) {
3401 aShowHUDMessage(Message_strings[9]);
3402 aGoalEnableDisable(1, Goal_indexes[2]);
3403
3404 // Increment the script action counter
3405 if (ScriptActionCtr_017 < MAX_ACTION_CTR_VALUE)
3406 ScriptActionCtr_017++;
3407 }
3408 } break;
3409 }
3410 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3411 }
3412
3413 int16_t TriggerScript_0005::CallEvent(int event, tOSIRISEventInfo *data) {
3414 switch (event) {
3415 case EVT_COLLIDE: {
3416 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3417
3418 // Script 028: Right Geo Tube Nook Exit
3419 if (qObjIsPlayer(event_data->it_handle) == true) {
3420 aDoorSetPos(Door_handles[3], 0.000000f);
3421 aAIGoalFollowPath(Object_handles[19], Path_indexes[3], 2, 3, 2, 3, 2228480, -1);
3422
3423 // Increment the script action counter
3424 if (ScriptActionCtr_028 < MAX_ACTION_CTR_VALUE)
3425 ScriptActionCtr_028++;
3426 }
3427 } break;
3428 }
3429 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3430 }
3431
3432 int16_t TriggerScript_0004::CallEvent(int event, tOSIRISEventInfo *data) {
3433 switch (event) {
3434 case EVT_COLLIDE: {
3435 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3436
3437 // Script 027: Center Geo Tube Nook Exit
3438 if (qObjIsPlayer(event_data->it_handle) == true) {
3439 aDoorSetPos(Door_handles[5], 0.000000f);
3440 aAIGoalFollowPath(Object_handles[21], Path_indexes[4], 2, 3, 2, 3, 2228480, -1);
3441
3442 // Increment the script action counter
3443 if (ScriptActionCtr_027 < MAX_ACTION_CTR_VALUE)
3444 ScriptActionCtr_027++;
3445 }
3446 } break;
3447 }
3448 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3449 }
3450
3451 int16_t TriggerScript_0003::CallEvent(int event, tOSIRISEventInfo *data) {
3452 switch (event) {
3453 case EVT_COLLIDE: {
3454 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3455
3456 // Script 024: Left Geo Tube Nook Exit
3457 if (qObjIsPlayer(event_data->it_handle) == true) {
3458 aDoorSetPos(Door_handles[7], 0.000000f);
3459 aAIGoalFollowPath(Object_handles[23], Path_indexes[5], 2, 3, 2, 3, 2228480, -1);
3460
3461 // Increment the script action counter
3462 if (ScriptActionCtr_024 < MAX_ACTION_CTR_VALUE)
3463 ScriptActionCtr_024++;
3464 }
3465 } break;
3466 }
3467 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3468 }
3469
3470 int16_t TriggerScript_0008::CallEvent(int event, tOSIRISEventInfo *data) {
3471 switch (event) {
3472 case EVT_COLLIDE: {
3473 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3474
3475 // Script 030: Right Upper Geo Pit Door Escape
3476 if (qObjIsPlayer(event_data->it_handle) == true) {
3477 aDoorSetPos(Door_handles[4], 0.000000f);
3478 aAIGoalFollowPath(Object_handles[19], Path_indexes[3], 1, 3, 3, 3, 19005696, -1);
3479 aObjPlayAnim(Object_handles[18], 1, 2, 1.000000f, 0);
3480 aUserFlagSet(12, 0);
3481
3482 // Increment the script action counter
3483 if (ScriptActionCtr_030 < MAX_ACTION_CTR_VALUE)
3484 ScriptActionCtr_030++;
3485 }
3486 } break;
3487 }
3488 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3489 }
3490
3491 int16_t TriggerScript_0007::CallEvent(int event, tOSIRISEventInfo *data) {
3492 switch (event) {
3493 case EVT_COLLIDE: {
3494 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3495
3496 // Script 029: Center Upper Geo Pit Door Escape
3497 if (qObjIsPlayer(event_data->it_handle) == true) {
3498 aDoorSetPos(Door_handles[6], 0.000000f);
3499 aAIGoalFollowPath(Object_handles[21], Path_indexes[4], 1, 3, 3, 3, 19005696, -1);
3500 aObjPlayAnim(Object_handles[20], 1, 2, 1.000000f, 0);
3501 aUserFlagSet(11, 0);
3502
3503 // Increment the script action counter
3504 if (ScriptActionCtr_029 < MAX_ACTION_CTR_VALUE)
3505 ScriptActionCtr_029++;
3506 }
3507 } break;
3508 }
3509 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3510 }
3511
3512 int16_t TriggerScript_0006::CallEvent(int event, tOSIRISEventInfo *data) {
3513 switch (event) {
3514 case EVT_COLLIDE: {
3515 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3516
3517 // Script 025: Left Upper Geo Pit Door Escape
3518 if (qObjIsPlayer(event_data->it_handle) == true) {
3519 aDoorSetPos(Door_handles[8], 0.000000f);
3520 aAIGoalFollowPath(Object_handles[23], Path_indexes[5], 1, 3, 3, 3, 19005696, -1);
3521 aObjPlayAnim(Object_handles[22], 1, 2, 1.000000f, 0);
3522 aUserFlagSet(10, 0);
3523
3524 // Increment the script action counter
3525 if (ScriptActionCtr_025 < MAX_ACTION_CTR_VALUE)
3526 ScriptActionCtr_025++;
3527 }
3528 } break;
3529 }
3530 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3531 }
3532
3533 int16_t TriggerScript_0009::CallEvent(int event, tOSIRISEventInfo *data) {
3534 switch (event) {
3535 case EVT_COLLIDE: {
3536 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3537
3538 // Script 042: Boss Chamber Forcefield
3539 if (qObjIsPlayer(event_data->it_handle) == true) {
3540 aPortalRenderSet(1, 1, Room_indexes[9], 1);
3541 aPortalRenderSet(0, 0, Room_indexes[10], 1);
3542
3543 // Increment the script action counter
3544 if (ScriptActionCtr_042 < MAX_ACTION_CTR_VALUE)
3545 ScriptActionCtr_042++;
3546 }
3547 } break;
3548 }
3549 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3550 }
3551
3552 int16_t TriggerScript_000B::CallEvent(int event, tOSIRISEventInfo *data) {
3553 switch (event) {
3554 case EVT_COLLIDE: {
3555 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3556
3557 // Script 046: End Level Sequence
3558 if (qObjIsPlayer(event_data->it_handle) == true) {
3559 aStartEndlevelSequence(Object_handles[33], Path_indexes[6], 10.000000f, Message_strings[18]);
3560
3561 // Increment the script action counter
3562 if (ScriptActionCtr_046 < MAX_ACTION_CTR_VALUE)
3563 ScriptActionCtr_046++;
3564 }
3565 } break;
3566 }
3567 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3568 }
3569
3570 int16_t TriggerScript_0020::CallEvent(int event, tOSIRISEventInfo *data) {
3571 switch (event) {
3572 case EVT_COLLIDE: {
3573 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3574
3575 // Script 063: Music-Outside-4
3576 if (1) {
3577 aMusicSetRegion(1, event_data->it_handle);
3578
3579 // Increment the script action counter
3580 if (ScriptActionCtr_063 < MAX_ACTION_CTR_VALUE)
3581 ScriptActionCtr_063++;
3582 }
3583 } break;
3584 }
3585 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3586 }
3587
3588 int16_t TriggerScript_001E::CallEvent(int event, tOSIRISEventInfo *data) {
3589 switch (event) {
3590 case EVT_COLLIDE: {
3591 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3592
3593 // Script 062: Music-Outside-3
3594 if (1) {
3595 aMusicSetRegion(1, event_data->it_handle);
3596
3597 // Increment the script action counter
3598 if (ScriptActionCtr_062 < MAX_ACTION_CTR_VALUE)
3599 ScriptActionCtr_062++;
3600 }
3601 } break;
3602 }
3603 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3604 }
3605
3606 int16_t TriggerScript_001C::CallEvent(int event, tOSIRISEventInfo *data) {
3607 switch (event) {
3608 case EVT_COLLIDE: {
3609 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3610
3611 // Script 061: Music-Outside-2
3612 if (1) {
3613 aMusicSetRegion(1, event_data->it_handle);
3614
3615 // Increment the script action counter
3616 if (ScriptActionCtr_061 < MAX_ACTION_CTR_VALUE)
3617 ScriptActionCtr_061++;
3618 }
3619 } break;
3620 }
3621 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3622 }
3623
3624 int16_t TriggerScript_001A::CallEvent(int event, tOSIRISEventInfo *data) {
3625 switch (event) {
3626 case EVT_COLLIDE: {
3627 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3628
3629 // Script 060: Music-Outside-1
3630 if (1) {
3631 aMusicSetRegion(1, event_data->it_handle);
3632
3633 // Increment the script action counter
3634 if (ScriptActionCtr_060 < MAX_ACTION_CTR_VALUE)
3635 ScriptActionCtr_060++;
3636 }
3637 } break;
3638 }
3639 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3640 }
3641
3642 int16_t TriggerScript_0017::CallEvent(int event, tOSIRISEventInfo *data) {
3643 switch (event) {
3644 case EVT_COLLIDE: {
3645 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3646
3647 // Script 077: Music-Boss-1
3648 if (1) {
3649 aMusicSetRegion(5, event_data->it_handle);
3650
3651 // Increment the script action counter
3652 if (ScriptActionCtr_077 < MAX_ACTION_CTR_VALUE)
3653 ScriptActionCtr_077++;
3654 }
3655 } break;
3656 }
3657 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3658 }
3659
3660 int16_t TriggerScript_001B::CallEvent(int event, tOSIRISEventInfo *data) {
3661 switch (event) {
3662 case EVT_COLLIDE: {
3663 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3664
3665 // Script 076: Music-Central-6
3666 if (1) {
3667 aMusicSetRegion(3, event_data->it_handle);
3668
3669 // Increment the script action counter
3670 if (ScriptActionCtr_076 < MAX_ACTION_CTR_VALUE)
3671 ScriptActionCtr_076++;
3672 }
3673 } break;
3674 }
3675 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3676 }
3677
3678 int16_t TriggerScript_0018::CallEvent(int event, tOSIRISEventInfo *data) {
3679 switch (event) {
3680 case EVT_COLLIDE: {
3681 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3682
3683 // Script 075: Music-Central-5
3684 if (1) {
3685 aMusicSetRegion(3, event_data->it_handle);
3686
3687 // Increment the script action counter
3688 if (ScriptActionCtr_075 < MAX_ACTION_CTR_VALUE)
3689 ScriptActionCtr_075++;
3690 }
3691 } break;
3692 }
3693 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3694 }
3695
3696 int16_t TriggerScript_0015::CallEvent(int event, tOSIRISEventInfo *data) {
3697 switch (event) {
3698 case EVT_COLLIDE: {
3699 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3700
3701 // Script 074: Music-Central-4
3702 if (1) {
3703 aMusicSetRegion(3, event_data->it_handle);
3704
3705 // Increment the script action counter
3706 if (ScriptActionCtr_074 < MAX_ACTION_CTR_VALUE)
3707 ScriptActionCtr_074++;
3708 }
3709 } break;
3710 }
3711 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3712 }
3713
3714 int16_t TriggerScript_0013::CallEvent(int event, tOSIRISEventInfo *data) {
3715 switch (event) {
3716 case EVT_COLLIDE: {
3717 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3718
3719 // Script 073: Music-Central-3
3720 if (1) {
3721 aMusicSetRegion(3, event_data->it_handle);
3722
3723 // Increment the script action counter
3724 if (ScriptActionCtr_073 < MAX_ACTION_CTR_VALUE)
3725 ScriptActionCtr_073++;
3726 }
3727 } break;
3728 }
3729 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3730 }
3731
3732 int16_t TriggerScript_0011::CallEvent(int event, tOSIRISEventInfo *data) {
3733 switch (event) {
3734 case EVT_COLLIDE: {
3735 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3736
3737 // Script 072: Music-Central-2
3738 if (1) {
3739 aMusicSetRegion(3, event_data->it_handle);
3740
3741 // Increment the script action counter
3742 if (ScriptActionCtr_072 < MAX_ACTION_CTR_VALUE)
3743 ScriptActionCtr_072++;
3744 }
3745 } break;
3746 }
3747 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3748 }
3749
3750 int16_t TriggerScript_0010::CallEvent(int event, tOSIRISEventInfo *data) {
3751 switch (event) {
3752 case EVT_COLLIDE: {
3753 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3754
3755 // Script 071: Music-Central-1
3756 if (1) {
3757 aMusicSetRegion(3, event_data->it_handle);
3758
3759 // Increment the script action counter
3760 if (ScriptActionCtr_071 < MAX_ACTION_CTR_VALUE)
3761 ScriptActionCtr_071++;
3762 }
3763 } break;
3764 }
3765 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3766 }
3767
3768 int16_t TriggerScript_001F::CallEvent(int event, tOSIRISEventInfo *data) {
3769 switch (event) {
3770 case EVT_COLLIDE: {
3771 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3772
3773 // Script 070: Music-East-5
3774 if (1) {
3775 aMusicSetRegion(2, event_data->it_handle);
3776
3777 // Increment the script action counter
3778 if (ScriptActionCtr_070 < MAX_ACTION_CTR_VALUE)
3779 ScriptActionCtr_070++;
3780 }
3781 } break;
3782 }
3783 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3784 }
3785
3786 int16_t TriggerScript_001D::CallEvent(int event, tOSIRISEventInfo *data) {
3787 switch (event) {
3788 case EVT_COLLIDE: {
3789 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3790
3791 // Script 069: Music-East-4
3792 if (1) {
3793 aMusicSetRegion(2, event_data->it_handle);
3794
3795 // Increment the script action counter
3796 if (ScriptActionCtr_069 < MAX_ACTION_CTR_VALUE)
3797 ScriptActionCtr_069++;
3798 }
3799 } break;
3800 }
3801 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3802 }
3803
3804 int16_t TriggerScript_0016::CallEvent(int event, tOSIRISEventInfo *data) {
3805 switch (event) {
3806 case EVT_COLLIDE: {
3807 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3808
3809 // Script 068: Music-East-3
3810 if (1) {
3811 aMusicSetRegion(2, event_data->it_handle);
3812
3813 // Increment the script action counter
3814 if (ScriptActionCtr_068 < MAX_ACTION_CTR_VALUE)
3815 ScriptActionCtr_068++;
3816 }
3817 } break;
3818 }
3819 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3820 }
3821
3822 int16_t TriggerScript_0014::CallEvent(int event, tOSIRISEventInfo *data) {
3823 switch (event) {
3824 case EVT_COLLIDE: {
3825 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3826
3827 // Script 067: Music-East-2
3828 if (1) {
3829 aMusicSetRegion(2, event_data->it_handle);
3830
3831 // Increment the script action counter
3832 if (ScriptActionCtr_067 < MAX_ACTION_CTR_VALUE)
3833 ScriptActionCtr_067++;
3834 }
3835 } break;
3836 }
3837 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3838 }
3839
3840 int16_t TriggerScript_0012::CallEvent(int event, tOSIRISEventInfo *data) {
3841 switch (event) {
3842 case EVT_COLLIDE: {
3843 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3844
3845 // Script 066: Music-East-1
3846 if (1) {
3847 aMusicSetRegion(2, event_data->it_handle);
3848
3849 // Increment the script action counter
3850 if (ScriptActionCtr_066 < MAX_ACTION_CTR_VALUE)
3851 ScriptActionCtr_066++;
3852 }
3853 } break;
3854 }
3855 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3856 }
3857
3858 int16_t TriggerScript_0019::CallEvent(int event, tOSIRISEventInfo *data) {
3859 switch (event) {
3860 case EVT_COLLIDE: {
3861 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3862
3863 // Script 065: Music-West-2
3864 if (1) {
3865 aMusicSetRegion(4, event_data->it_handle);
3866
3867 // Increment the script action counter
3868 if (ScriptActionCtr_065 < MAX_ACTION_CTR_VALUE)
3869 ScriptActionCtr_065++;
3870 }
3871 } break;
3872 }
3873 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3874 }
3875
3876 int16_t TriggerScript_000F::CallEvent(int event, tOSIRISEventInfo *data) {
3877 switch (event) {
3878 case EVT_COLLIDE: {
3879 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3880
3881 // Script 064: Music-West-1
3882 if (1) {
3883 aMusicSetRegion(4, event_data->it_handle);
3884
3885 // Increment the script action counter
3886 if (ScriptActionCtr_064 < MAX_ACTION_CTR_VALUE)
3887 ScriptActionCtr_064++;
3888 }
3889 } break;
3890 }
3891 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3892 }
3893
3894 int16_t TriggerScript_000A::CallEvent(int event, tOSIRISEventInfo *data) {
3895 switch (event) {
3896 case EVT_COLLIDE: {
3897 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
3898
3899 // Script 078: Pre-Boss Player Cinematic
3900 if (qObjIsPlayer(event_data->it_handle) == true) {
3901 aUserFlagSet(19, 1);
3902 aCinematicIntro(Path_indexes[9], Message_strings[20], Object_handles[0], Path_indexes[10], 15.000000f);
3903
3904 // Increment the script action counter
3905 if (ScriptActionCtr_078 < MAX_ACTION_CTR_VALUE)
3906 ScriptActionCtr_078++;
3907 }
3908 } break;
3909 }
3910 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
3911 }
3912
3913 /*********************************************************
3914 Script Save Block: DO NOT TOUCH ANYTHING IN THIS BLOCK!!!
3915 **********************************************************
3916 $$SCRIPT_BLOCK_START
3917
3918 VERSION 3
3919 NEXT_ID 92
3920
3921 // UserType value blocks
3922 $$UTYPE_VALS_START UserVar
3923 0:MatCenStateA
3924 1:MatCenStateB
3925 2:MatCenStateC
3926 3:MatCenStateD
3927 4:MatCenStateE
3928 17:MagicMatCenSwitchSequence
3929 $$UTYPE_VALS_END
3930
3931 $$UTYPE_VALS_START UserFlag
3932 0:MatCenSwitchAON
3933 1:MatCenSwitchBON
3934 2:MatCenSwitchCON
3935 3:MatCenSwitchDON
3936 4:MatCenSwitchEON
3937 5:MatCenSwitchFON
3938 6:MatCenSwitchGON
3939 7:LeftLavaCrankON
3940 8:CenterLavaCrankON
3941 9:RightLavaCrankON
3942 10:LeftGeoTubeSwitchON
3943 11:CenterGeoTubeSwitchON
3944 12:RightGeoTubeSwitchON
3945 13:FoundInnerDoor
3946 14:TNTElevatorSwitchLowON
3947 15:LeftTNTDispenserBroken
3948 16:CenterTNTDispenserON
3949 17:RightTNTDispenserON
3950 18:PlayedBossIntro
3951 19:PreBossCinematic
3952 20:TheFanON
3953 21:PowerSourceFound
3954 $$UTYPE_VALS_END
3955
3956 $$UTYPE_VALS_START SpewHandle
3957 0:MatCen1Spewer
3958 1:MatCen2Spewer
3959 2:MatCen3Spewer
3960 3:MatCen4Spewer
3961 4:MatCen5Spewer
3962 5:LeftTNTDispenserSpewer
3963 6:MediumA
3964 7:MediumB
3965 8:MediumC
3966 9:MediumD
3967 10:MediumE
3968 11:LavaSpewA
3969 12:LavaSpewB
3970 13:LavaSpewC
3971 14:LavaSpewD
3972 15:LavaSpewE
3973 16:LavaSpewF
3974 17:LavaSpewG
3975 18:LavaSpewH
3976 19:LavaSpewI
3977 20:LavaSpewJ
3978 21:LavaSpewK
3979 22:LavaSpewL
3980 23:LavaSpewM
3981 24:LavaSpewN
3982 25:LavaSpewO
3983 26:LavaSpewP
3984 27:LavaSpewQ
3985 28:LavaSpewR
3986 29:LavaSpewS
3987 30:LavaSpewT
3988 31:LavaSpewU
3989 32:LavaSpewV
3990 33:LavaSpewW
3991 34:LavaSpewX
3992 35:LavaSpewY
3993 36:LavaSpewZ
3994 37:SmallA
3995 38:SmallB
3996 39:SmallC
3997 40:LargeA
3998 41:LargeB
3999 42:LargeC
4000 43:LargeD
4001 44:LargeE
4002 45:LargeF
4003 $$UTYPE_VALS_END
4004
4005 $$UTYPE_VALS_START TimerID
4006 0:TNTDispRight
4007 1:TNTDispCenter
4008 2:EnergyCentersRepaired
4009 3:MinorEruption
4010 4:MajorEruption
4011 5:MediumVolcanoFlames
4012 6:LargeVolcanoFlames
4013 $$UTYPE_VALS_END
4014
4015 $$UTYPE_VALS_START SavedObjectSlot
4016 $$UTYPE_VALS_END
4017
4018 $$UTYPE_VALS_START GoalID
4019 $$UTYPE_VALS_END
4020
4021
4022 // Name Lists
4023 $$DOOR_LIST_START
4024 RightLowerGeoPitDo
4025 LeftLowerGeoPitDoo
4026 CenterLowerGeoPitD
4027 RightGeoTubeNookDo
4028 RightUpperGeoPitDo
4029 CenterGeoTubeNookD
4030 CenterUpperGeoPitD
4031 LeftGeoTubeNookDoo
4032 LeftUpperGeoPitDoo
4033 DravisDoor
4034 $$DOOR_LIST_END
4035
4036 $$OBJECT_LIST_START
4037 InnerStrongholdPas
4038 Inner Door View Ca
4039 LeftGeoPitLava
4040 RightGeoPitLava
4041 CenterGeoPitLava
4042 LeftLavaCrank
4043 CenterLavaCrank
4044 RightLavaCrank
4045 BackupReactorPower
4046 BackupReactorFuse
4047 MatCenSwitchA
4048 MatCenSwitchB
4049 MatCenSwitchC
4050 MatCenSwitchD
4051 MatCenSwitchE
4052 MatCenSwitchF
4053 MatCenSwitchG
4054 MatCenPuzzleRESET
4055 RightGeoTubeSwitch
4056 RightGeoTubeLava
4057 CenterGeoTubeSwitc
4058 CenterGeoTubeLava
4059 LeftGeoTubeSwitch
4060 LeftGeoTubeLava
4061 Inner Door E
4062 Inner Door D
4063 Inner Door C
4064 CenterTNTDispenser
4065 RightTNTDispenserS
4066 LeftTNTDispenserSw
4067 LeftTNTDispenserBr
4068 TNTRockWall
4069 HellionFinalBoss
4070 EndLevelCamera
4071 MediumVolcanoPlane
4072 SmallestVolcanoPla
4073 LargeVolcanoPlane
4074 TheFan
4075 RotatingLightA
4076 RotatingLightB
4077 $$OBJECT_LIST_END
4078
4079 $$ROOM_LIST_START
4080 BackupReactorEnerg
4081 CShapedEnergyCente
4082 SecretDoorEnergyCe
4083 LeftGeoPitRoom
4084 CenterGeoPitRoom
4085 RightGeoPitRoom
4086 LeftGeoTubeRoom
4087 CenterGeoTubeRoom
4088 RightGeoTubeRoom
4089 PreBossChamberForc
4090 PreBossForcefieldR
4091 UpperFanRoom
4092 TNT Puzzle Room
4093 $$ROOM_LIST_END
4094
4095 $$TRIGGER_LIST_START
4096 CshapedEnergyCenter
4097 SecretEnergyCenterB
4098 BackupEnergyCenterB
4099 RightGeoNookExit
4100 CenterGeoNookExit
4101 LeftGeoNookExit
4102 RightUpperGeoPitDoo
4103 CenterUpperGeoPitDo
4104 LeftUpperGeoPitDoor
4105 BossEnergyForcefiel
4106 EndLevelTrigger
4107 MOutside-4
4108 MOutside-3
4109 MOutside-2
4110 MOutside-1
4111 MBoss-1
4112 MCentral-6
4113 MCentral-5
4114 MCentral-4
4115 MCentral-3
4116 MCentral-2
4117 MCentral-1
4118 MEast-5
4119 MEast-4
4120 MEast-3
4121 MEast-2
4122 MEast-1
4123 MWest-2
4124 MWest-1
4125 PreBossTrigger
4126 $$TRIGGER_LIST_END
4127
4128 $$SOUND_LIST_START
4129 AmbDroneReactor
4130 DebrisExplosion
4131 AmbExplosionFarB
4132 AmbExplosionFarG
4133 $$SOUND_LIST_END
4134
4135 $$TEXTURE_LIST_START
4136 $$TEXTURE_LIST_END
4137
4138 $$SPECNAME_LIST_START
4139 $$SPECNAME_LIST_END
4140
4141 $$PATH_LIST_START
4142 LeftGeoPitLavaPath
4143 RightGeoPitLavaPath
4144 CenterGeoPitLavaPath
4145 RightGeoTubeLavaPath
4146 CenterGeoTubeLavaPath
4147 LeftGeoTubeLavaPath
4148 EndLevelPath
4149 IntroCamPath
4150 PlayerIntroPath
4151 CameraBossEntrancePath
4152 PlayerBossEntrancePath
4153 BossIntroCameraPath
4154 $$PATH_LIST_END
4155
4156 $$MATCEN_LIST_START
4157 Center TNT Dispense
4158 Right TNT Dispenser
4159 $$MATCEN_LIST_END
4160
4161 $$GOAL_LIST_START
4162 Locate the Inner Stronghold Passkey
4163 Repair the Reactor
4164 Locate the Back-up Reactor
4165 Find the reactor's replacement fuse
4166 Locate Dravis' secret stronghold
4167 $$GOAL_LIST_END
4168
4169 $$STRM_AUDIO_LIST_START
4170 VoxL15StartLevel.osf
4171 $$STRM_AUDIO_LIST_END
4172
4173
4174 // Script Tree Dump
4175 00:0:Inner Stronghold Passkey
4176 $$CHILD_BLOCK_START
4177 01:1:0
4178 02:0
4179 03:0
4180 $$CHILD_BLOCK_START
4181 05:1
4182 $$CHILD_BLOCK_START
4183 06:qObjIsPlayer:Bool
4184 $$CHILD_BLOCK_START
4185 10:1:1:-1:Object
4186 $$CHILD_BLOCK_END
4187 07:0:6
4188 $$CHILD_BLOCK_END
4189 $$CHILD_BLOCK_END
4190 04:0:0:0
4191 $$CHILD_BLOCK_START
4192 08:aShowHUDMessage
4193 $$CHILD_BLOCK_START
4194 10:8:InnerDoorsUnlock:Message
4195 $$CHILD_BLOCK_END
4196 08:aCreatePopupView
4197 $$CHILD_BLOCK_START
4198 10:4:0:GunPoint
4199 10:1:0:1:Object
4200 10:6:10.000000:Time
4201 10:6:1.000000:Zoom
4202 $$CHILD_BLOCK_END
4203 08:aObjectPlayerGiveKey
4204 $$CHILD_BLOCK_START
4205 10:1:1:-1:PlayerObject
4206 10:1:0:0:KeyObject
4207 10:4:1:KeyNum
4208 10:8:InnerStrongholdKey:KeyName
4209 10:10:0:0:Yes/No
4210 $$CHILD_BLOCK_END
4211 08:aGoalCompleted
4212 $$CHILD_BLOCK_START
4213 10:18:0:0:LevelGoal
4214 10:10:0:1:Completed
4215 $$CHILD_BLOCK_END
4216 $$CHILD_BLOCK_END
4217 $$CHILD_BLOCK_END
4218 00:34:Level Start Initialization
4219 $$CHILD_BLOCK_START
4220 01:2:0
4221 02:6
4222 03:0
4223 $$CHILD_BLOCK_START
4224 05:0
4225 $$CHILD_BLOCK_END
4226 04:0:0:0
4227 $$CHILD_BLOCK_START
4228 08:aUserFlagSet
4229 $$CHILD_BLOCK_START
4230 10:10:0:7:UserFlag
4231 10:5:0:True/False
4232 $$CHILD_BLOCK_END
4233 08:aUserFlagSet
4234 $$CHILD_BLOCK_START
4235 10:10:0:9:UserFlag
4236 10:5:0:True/False
4237 $$CHILD_BLOCK_END
4238 08:aUserFlagSet
4239 $$CHILD_BLOCK_START
4240 10:10:0:8:UserFlag
4241 10:5:0:True/False
4242 $$CHILD_BLOCK_END
4243 08:aDoorSetPos
4244 $$CHILD_BLOCK_START
4245 10:0:0:0:Door
4246 10:9:0.000000:Position
4247 $$CHILD_BLOCK_END
4248 08:aDoorSetPos
4249 $$CHILD_BLOCK_START
4250 10:0:0:1:Door
4251 10:9:0.000000:Position
4252 $$CHILD_BLOCK_END
4253 08:aDoorSetPos
4254 $$CHILD_BLOCK_START
4255 10:0:0:2:Door
4256 10:9:0.000000:Position
4257 $$CHILD_BLOCK_END
4258 08:aAIGoalFollowPath
4259 $$CHILD_BLOCK_START
4260 10:1:0:2:Object
4261 10:16:0:Path
4262 10:4:1:FirstNode
4263 10:4:2:LastNode
4264 10:4:1:StartNode
4265 10:10:0:3:GoalPriority
4266 10:15:2228480:AIGoalFlags
4267 10:10:0:-1:GoalID
4268 $$CHILD_BLOCK_END
4269 08:aAIGoalFollowPath
4270 $$CHILD_BLOCK_START
4271 10:1:0:3:Object
4272 10:16:1:Path
4273 10:4:1:FirstNode
4274 10:4:2:LastNode
4275 10:4:1:StartNode
4276 10:10:0:3:GoalPriority
4277 10:15:2228480:AIGoalFlags
4278 10:10:0:-1:GoalID
4279 $$CHILD_BLOCK_END
4280 08:aAIGoalFollowPath
4281 $$CHILD_BLOCK_START
4282 10:1:0:4:Object
4283 10:16:2:Path
4284 10:4:1:FirstNode
4285 10:4:2:LastNode
4286 10:4:1:StartNode
4287 10:10:0:3:GoalPriority
4288 10:15:2228480:AIGoalFlags
4289 10:10:0:-1:GoalID
4290 $$CHILD_BLOCK_END
4291 08:aUserFlagSet
4292 $$CHILD_BLOCK_START
4293 10:10:0:13:UserFlag
4294 10:5:0:True/False
4295 $$CHILD_BLOCK_END
4296 08:aUserFlagSet
4297 $$CHILD_BLOCK_START
4298 10:10:0:18:UserFlag
4299 10:5:0:True/False
4300 $$CHILD_BLOCK_END
4301 $$CHILD_BLOCK_END
4302 $$CHILD_BLOCK_END
4303 00:1:Left Lava Crank
4304 $$CHILD_BLOCK_START
4305 01:1:5
4306 02:0
4307 03:0
4308 $$CHILD_BLOCK_START
4309 09:0
4310 $$CHILD_BLOCK_START
4311 05:1
4312 $$CHILD_BLOCK_START
4313 06:qObjIsPlayerWeapon:Bool
4314 $$CHILD_BLOCK_START
4315 10:1:1:-1:Object
4316 $$CHILD_BLOCK_END
4317 07:0:6
4318 $$CHILD_BLOCK_END
4319 05:1
4320 $$CHILD_BLOCK_START
4321 06:qUserFlag:Bool
4322 $$CHILD_BLOCK_START
4323 10:10:0:7:UserFlag
4324 $$CHILD_BLOCK_END
4325 07:0:7
4326 $$CHILD_BLOCK_END
4327 $$CHILD_BLOCK_END
4328 $$CHILD_BLOCK_END
4329 04:0:0:0
4330 $$CHILD_BLOCK_START
4331 08:aAIGoalFollowPath
4332 $$CHILD_BLOCK_START
4333 10:1:0:2:Object
4334 10:16:0:Path
4335 10:4:1:FirstNode
4336 10:4:2:LastNode
4337 10:4:1:StartNode
4338 10:10:0:3:GoalPriority
4339 10:15:19005696:AIGoalFlags
4340 10:10:0:-1:GoalID
4341 $$CHILD_BLOCK_END
4342 08:aObjPlayAnim
4343 $$CHILD_BLOCK_START
4344 10:1:0:5:Object
4345 10:4:0:StartFrame
4346 10:4:20:EndFrame
4347 10:6:2.000000:CycleTime
4348 10:5:0:Looping
4349 $$CHILD_BLOCK_END
4350 08:aShowHUDMessage
4351 $$CHILD_BLOCK_START
4352 10:8:LeftLavaCrank:Message
4353 $$CHILD_BLOCK_END
4354 08:aUserFlagSet
4355 $$CHILD_BLOCK_START
4356 10:10:0:7:UserFlag
4357 10:5:1:True/False
4358 $$CHILD_BLOCK_END
4359 08:aDoorSetPos
4360 $$CHILD_BLOCK_START
4361 10:0:0:1:Door
4362 10:9:1.000000:Position
4363 $$CHILD_BLOCK_END
4364 $$CHILD_BLOCK_END
4365 $$CHILD_BLOCK_END
4366 00:20:Center Lava Crank
4367 $$CHILD_BLOCK_START
4368 01:1:6
4369 02:0
4370 03:0
4371 $$CHILD_BLOCK_START
4372 09:0
4373 $$CHILD_BLOCK_START
4374 05:1
4375 $$CHILD_BLOCK_START
4376 06:qObjIsPlayerWeapon:Bool
4377 $$CHILD_BLOCK_START
4378 10:1:1:-1:Object
4379 $$CHILD_BLOCK_END
4380 07:0:6
4381 $$CHILD_BLOCK_END
4382 05:1
4383 $$CHILD_BLOCK_START
4384 06:qUserFlag:Bool
4385 $$CHILD_BLOCK_START
4386 10:10:0:8:UserFlag
4387 $$CHILD_BLOCK_END
4388 07:0:7
4389 $$CHILD_BLOCK_END
4390 $$CHILD_BLOCK_END
4391 $$CHILD_BLOCK_END
4392 04:0:0:0
4393 $$CHILD_BLOCK_START
4394 08:aAIGoalFollowPath
4395 $$CHILD_BLOCK_START
4396 10:1:0:4:Object
4397 10:16:2:Path
4398 10:4:1:FirstNode
4399 10:4:2:LastNode
4400 10:4:1:StartNode
4401 10:10:0:3:GoalPriority
4402 10:15:19005696:AIGoalFlags
4403 10:10:0:-1:GoalID
4404 $$CHILD_BLOCK_END
4405 08:aObjPlayAnim
4406 $$CHILD_BLOCK_START
4407 10:1:0:6:Object
4408 10:4:0:StartFrame
4409 10:4:20:EndFrame
4410 10:6:2.000000:CycleTime
4411 10:5:0:Looping
4412 $$CHILD_BLOCK_END
4413 08:aShowHUDMessage
4414 $$CHILD_BLOCK_START
4415 10:8:CenterLavaCrank:Message
4416 $$CHILD_BLOCK_END
4417 08:aUserFlagSet
4418 $$CHILD_BLOCK_START
4419 10:10:0:8:UserFlag
4420 10:5:1:True/False
4421 $$CHILD_BLOCK_END
4422 08:aDoorSetPos
4423 $$CHILD_BLOCK_START
4424 10:0:0:2:Door
4425 10:9:1.000000:Position
4426 $$CHILD_BLOCK_END
4427 $$CHILD_BLOCK_END
4428 $$CHILD_BLOCK_END
4429 00:21:Right Lava Crank
4430 $$CHILD_BLOCK_START
4431 01:1:7
4432 02:0
4433 03:0
4434 $$CHILD_BLOCK_START
4435 09:0
4436 $$CHILD_BLOCK_START
4437 05:1
4438 $$CHILD_BLOCK_START
4439 06:qObjIsPlayerWeapon:Bool
4440 $$CHILD_BLOCK_START
4441 10:1:1:-1:Object
4442 $$CHILD_BLOCK_END
4443 07:0:6
4444 $$CHILD_BLOCK_END
4445 05:1
4446 $$CHILD_BLOCK_START
4447 06:qUserFlag:Bool
4448 $$CHILD_BLOCK_START
4449 10:10:0:9:UserFlag
4450 $$CHILD_BLOCK_END
4451 07:0:7
4452 $$CHILD_BLOCK_END
4453 $$CHILD_BLOCK_END
4454 $$CHILD_BLOCK_END
4455 04:0:0:0
4456 $$CHILD_BLOCK_START
4457 08:aAIGoalFollowPath
4458 $$CHILD_BLOCK_START
4459 10:1:0:3:Object
4460 10:16:1:Path
4461 10:4:1:FirstNode
4462 10:4:2:LastNode
4463 10:4:1:StartNode
4464 10:10:0:3:GoalPriority
4465 10:15:19005696:AIGoalFlags
4466 10:10:0:-1:GoalID
4467 $$CHILD_BLOCK_END
4468 08:aObjPlayAnim
4469 $$CHILD_BLOCK_START
4470 10:1:0:7:Object
4471 10:4:0:StartFrame
4472 10:4:20:EndFrame
4473 10:6:2.000000:CycleTime
4474 10:5:0:Looping
4475 $$CHILD_BLOCK_END
4476 08:aShowHUDMessage
4477 $$CHILD_BLOCK_START
4478 10:8:RightLavaCrank:Message
4479 $$CHILD_BLOCK_END
4480 08:aUserFlagSet
4481 $$CHILD_BLOCK_START
4482 10:10:0:9:UserFlag
4483 10:5:1:True/False
4484 $$CHILD_BLOCK_END
4485 08:aDoorSetPos
4486 $$CHILD_BLOCK_START
4487 10:0:0:0:Door
4488 10:9:1.000000:Position
4489 $$CHILD_BLOCK_END
4490 $$CHILD_BLOCK_END
4491 $$CHILD_BLOCK_END
4492 00:2:Powerless Energy Centers
4493 $$CHILD_BLOCK_START
4494 01:2:0
4495 02:6
4496 03:0
4497 $$CHILD_BLOCK_START
4498 05:0
4499 $$CHILD_BLOCK_END
4500 04:0:0:0
4501 $$CHILD_BLOCK_START
4502 08:aRoomSetFuelcen
4503 $$CHILD_BLOCK_START
4504 10:10:0:0:On/Off
4505 10:2:0:Room
4506 $$CHILD_BLOCK_END
4507 08:aRoomSetFuelcen
4508 $$CHILD_BLOCK_START
4509 10:10:0:0:On/Off
4510 10:2:1:Room
4511 $$CHILD_BLOCK_END
4512 08:aRoomSetFuelcen
4513 $$CHILD_BLOCK_START
4514 10:10:0:0:On/Off
4515 10:2:2:Room
4516 $$CHILD_BLOCK_END
4517 $$CHILD_BLOCK_END
4518 $$CHILD_BLOCK_END
4519 00:53:Energy Centers Repaired Timer
4520 $$CHILD_BLOCK_START
4521 01:2:0
4522 02:9
4523 03:0
4524 $$CHILD_BLOCK_START
4525 05:2
4526 $$CHILD_BLOCK_START
4527 10:10:2:0:TimerID
4528 07:1:0
4529 10:10:0:2:TimerID
4530 $$CHILD_BLOCK_END
4531 $$CHILD_BLOCK_END
4532 04:0:0:0
4533 $$CHILD_BLOCK_START
4534 08:aShowHUDMessage
4535 $$CHILD_BLOCK_START
4536 10:8:EnergyCentersOnline:Message
4537 $$CHILD_BLOCK_END
4538 $$CHILD_BLOCK_END
4539 $$CHILD_BLOCK_END
4540 00:3:Old Backup Reactor
4541 $$CHILD_BLOCK_START
4542 01:1:8
4543 02:0
4544 03:0
4545 $$CHILD_BLOCK_START
4546 09:0
4547 $$CHILD_BLOCK_START
4548 05:1
4549 $$CHILD_BLOCK_START
4550 06:qObjIsPlayerWeapon:Bool
4551 $$CHILD_BLOCK_START
4552 10:1:1:-1:Object
4553 $$CHILD_BLOCK_END
4554 07:0:6
4555 $$CHILD_BLOCK_END
4556 05:1
4557 $$CHILD_BLOCK_START
4558 06:qObjExists:Bool
4559 $$CHILD_BLOCK_START
4560 10:1:0:9:Object
4561 $$CHILD_BLOCK_END
4562 07:0:7
4563 $$CHILD_BLOCK_END
4564 $$CHILD_BLOCK_END
4565 $$CHILD_BLOCK_END
4566 04:0:0:1
4567 $$CHILD_BLOCK_START
4568 08:aObjPlayAnim
4569 $$CHILD_BLOCK_START
4570 10:1:0:8:Object
4571 10:4:0:StartFrame
4572 10:4:20:EndFrame
4573 10:6:2.000000:CycleTime
4574 10:5:0:Looping
4575 $$CHILD_BLOCK_END
4576 08:aShowHUDMessage
4577 $$CHILD_BLOCK_START
4578 10:8:PowerRestored:Message
4579 $$CHILD_BLOCK_END
4580 08:aRoomSetLightingStrobe
4581 $$CHILD_BLOCK_START
4582 10:10:0:0:On/Off
4583 10:2:0:Room
4584 $$CHILD_BLOCK_END
4585 08:aRoomSetFuelcen
4586 $$CHILD_BLOCK_START
4587 10:10:0:1:On/Off
4588 10:2:0:Room
4589 $$CHILD_BLOCK_END
4590 08:aRoomSetLightingFlicker
4591 $$CHILD_BLOCK_START
4592 10:10:0:0:On/Off
4593 10:2:1:Room
4594 $$CHILD_BLOCK_END
4595 08:aRoomSetFuelcen
4596 $$CHILD_BLOCK_START
4597 10:10:0:1:On/Off
4598 10:2:1:Room
4599 $$CHILD_BLOCK_END
4600 08:aRoomSetLightingStrobe
4601 $$CHILD_BLOCK_START
4602 10:10:0:0:On/Off
4603 10:2:2:Room
4604 $$CHILD_BLOCK_END
4605 08:aRoomSetLightingFlicker
4606 $$CHILD_BLOCK_START
4607 10:10:0:0:On/Off
4608 10:2:2:Room
4609 $$CHILD_BLOCK_END
4610 08:aRoomSetFuelcen
4611 $$CHILD_BLOCK_START
4612 10:10:0:1:On/Off
4613 10:2:2:Room
4614 $$CHILD_BLOCK_END
4615 08:aRoomSetLightingStrobe
4616 $$CHILD_BLOCK_START
4617 10:10:0:0:On/Off
4618 10:2:1:Room
4619 $$CHILD_BLOCK_END
4620 08:aRoomSetLightingFlicker
4621 $$CHILD_BLOCK_START
4622 10:10:0:0:On/Off
4623 10:2:0:Room
4624 $$CHILD_BLOCK_END
4625 08:aTriggerSetState
4626 $$CHILD_BLOCK_START
4627 10:10:0:0:Enable/Disable
4628 10:3:0:Trigger
4629 $$CHILD_BLOCK_END
4630 08:aTriggerSetState
4631 $$CHILD_BLOCK_START
4632 10:10:0:0:Enable/Disable
4633 10:3:1:Trigger
4634 $$CHILD_BLOCK_END
4635 08:aTriggerSetState
4636 $$CHILD_BLOCK_START
4637 10:10:0:0:Enable/Disable
4638 10:3:2:Trigger
4639 $$CHILD_BLOCK_END
4640 08:aGoalCompleted
4641 $$CHILD_BLOCK_START
4642 10:18:0:1:LevelGoal
4643 10:10:0:1:Completed
4644 $$CHILD_BLOCK_END
4645 08:aSetLevelTimer
4646 $$CHILD_BLOCK_START
4647 10:6:3.000000:Time
4648 10:10:0:2:TimerID
4649 $$CHILD_BLOCK_END
4650 08:aSoundPlayObject
4651 $$CHILD_BLOCK_START
4652 10:12:0:Sound
4653 10:1:0:8:Object
4654 10:9:1.000000:Volume
4655 $$CHILD_BLOCK_END
4656 $$CHILD_BLOCK_END
4657 $$CHILD_BLOCK_END
4658 00:4:Old Backup Reactor Fuse
4659 $$CHILD_BLOCK_START
4660 01:1:9
4661 02:0
4662 03:0
4663 $$CHILD_BLOCK_START
4664 05:1
4665 $$CHILD_BLOCK_START
4666 06:qObjIsPlayer:Bool
4667 $$CHILD_BLOCK_START
4668 10:1:1:-1:Object
4669 $$CHILD_BLOCK_END
4670 07:0:6
4671 $$CHILD_BLOCK_END
4672 $$CHILD_BLOCK_END
4673 04:0:0:0
4674 $$CHILD_BLOCK_START
4675 08:aObjDelete
4676 $$CHILD_BLOCK_START
4677 10:1:0:9:Object
4678 $$CHILD_BLOCK_END
4679 08:aGoalEnableDisable
4680 $$CHILD_BLOCK_START
4681 10:10:0:1:Enable/Disable
4682 10:18:0:2:LevelGoal
4683 $$CHILD_BLOCK_END
4684 08:aShowHUDMessage
4685 $$CHILD_BLOCK_START
4686 10:8:FuseFound:Message
4687 $$CHILD_BLOCK_END
4688 08:aGoalCompleted
4689 $$CHILD_BLOCK_START
4690 10:18:0:3:LevelGoal
4691 10:10:0:1:Completed
4692 $$CHILD_BLOCK_END
4693 $$CHILD_BLOCK_END
4694 $$CHILD_BLOCK_END
4695 00:5:Backup Reactor Broken
4696 $$CHILD_BLOCK_START
4697 01:1:8
4698 02:0
4699 03:0
4700 $$CHILD_BLOCK_START
4701 09:0
4702 $$CHILD_BLOCK_START
4703 05:1
4704 $$CHILD_BLOCK_START
4705 06:qObjIsPlayerWeapon:Bool
4706 $$CHILD_BLOCK_START
4707 10:1:1:-1:Object
4708 $$CHILD_BLOCK_END
4709 07:0:6
4710 $$CHILD_BLOCK_END
4711 05:1
4712 $$CHILD_BLOCK_START
4713 06:qObjExists:Bool
4714 $$CHILD_BLOCK_START
4715 10:1:0:9:Object
4716 $$CHILD_BLOCK_END
4717 07:0:6
4718 $$CHILD_BLOCK_END
4719 $$CHILD_BLOCK_END
4720 $$CHILD_BLOCK_END
4721 04:0:0:0
4722 $$CHILD_BLOCK_START
4723 08:aShowHUDMessage
4724 $$CHILD_BLOCK_START
4725 10:8:ReactorBroken:Message
4726 $$CHILD_BLOCK_END
4727 08:aGoalEnableDisable
4728 $$CHILD_BLOCK_START
4729 10:10:0:1:Enable/Disable
4730 10:18:0:3:LevelGoal
4731 $$CHILD_BLOCK_END
4732 08:aGoalEnableDisable
4733 $$CHILD_BLOCK_START
4734 10:10:0:1:Enable/Disable
4735 10:18:0:1:LevelGoal
4736 $$CHILD_BLOCK_END
4737 $$CHILD_BLOCK_END
4738 $$CHILD_BLOCK_END
4739 00:6:MatCen Control Switch A
4740 $$CHILD_BLOCK_START
4741 01:1:10
4742 02:0
4743 03:0
4744 $$CHILD_BLOCK_START
4745 05:1
4746 $$CHILD_BLOCK_START
4747 06:qObjIsPlayerWeapon:Bool
4748 $$CHILD_BLOCK_START
4749 10:1:1:-1:Object
4750 $$CHILD_BLOCK_END
4751 07:0:6
4752 $$CHILD_BLOCK_END
4753 $$CHILD_BLOCK_END
4754 04:0:0:0
4755 $$CHILD_BLOCK_START
4756 08:aMatCenPuzzleSwitchA
4757 $$CHILD_BLOCK_START
4758 06:qObjParent:Player
4759 $$CHILD_BLOCK_START
4760 10:1:1:-1:Object
4761 $$CHILD_BLOCK_END
4762 $$CHILD_BLOCK_END
4763 $$CHILD_BLOCK_END
4764 $$CHILD_BLOCK_END
4765 00:8:MatCen Control Switch B
4766 $$CHILD_BLOCK_START
4767 01:1:11
4768 02:0
4769 03:0
4770 $$CHILD_BLOCK_START
4771 05:1
4772 $$CHILD_BLOCK_START
4773 06:qObjIsPlayerWeapon:Bool
4774 $$CHILD_BLOCK_START
4775 10:1:1:-1:Object
4776 $$CHILD_BLOCK_END
4777 07:0:6
4778 $$CHILD_BLOCK_END
4779 $$CHILD_BLOCK_END
4780 04:0:0:0
4781 $$CHILD_BLOCK_START
4782 08:aMatCenPuzzleSwitchB
4783 $$CHILD_BLOCK_START
4784 06:qObjParent:Player
4785 $$CHILD_BLOCK_START
4786 10:1:1:-1:Object
4787 $$CHILD_BLOCK_END
4788 $$CHILD_BLOCK_END
4789 $$CHILD_BLOCK_END
4790 $$CHILD_BLOCK_END
4791 00:9:MatCen Control Switch C
4792 $$CHILD_BLOCK_START
4793 01:1:12
4794 02:0
4795 03:0
4796 $$CHILD_BLOCK_START
4797 05:1
4798 $$CHILD_BLOCK_START
4799 06:qObjIsPlayerWeapon:Bool
4800 $$CHILD_BLOCK_START
4801 10:1:1:-1:Object
4802 $$CHILD_BLOCK_END
4803 07:0:6
4804 $$CHILD_BLOCK_END
4805 $$CHILD_BLOCK_END
4806 04:0:0:0
4807 $$CHILD_BLOCK_START
4808 08:aMatCenPuzzleSwitchC
4809 $$CHILD_BLOCK_START
4810 06:qObjParent:Player
4811 $$CHILD_BLOCK_START
4812 10:1:1:-1:Object
4813 $$CHILD_BLOCK_END
4814 $$CHILD_BLOCK_END
4815 $$CHILD_BLOCK_END
4816 $$CHILD_BLOCK_END
4817 00:10:MatCen Control Switch D
4818 $$CHILD_BLOCK_START
4819 01:1:13
4820 02:0
4821 03:0
4822 $$CHILD_BLOCK_START
4823 05:1
4824 $$CHILD_BLOCK_START
4825 06:qObjIsPlayerWeapon:Bool
4826 $$CHILD_BLOCK_START
4827 10:1:1:-1:Object
4828 $$CHILD_BLOCK_END
4829 07:0:6
4830 $$CHILD_BLOCK_END
4831 $$CHILD_BLOCK_END
4832 04:0:0:0
4833 $$CHILD_BLOCK_START
4834 08:aMatCenPuzzleSwitchD
4835 $$CHILD_BLOCK_START
4836 06:qObjParent:Player
4837 $$CHILD_BLOCK_START
4838 10:1:1:-1:Object
4839 $$CHILD_BLOCK_END
4840 $$CHILD_BLOCK_END
4841 $$CHILD_BLOCK_END
4842 $$CHILD_BLOCK_END
4843 00:11:MatCen Control Switch E
4844 $$CHILD_BLOCK_START
4845 01:1:14
4846 02:0
4847 03:0
4848 $$CHILD_BLOCK_START
4849 05:1
4850 $$CHILD_BLOCK_START
4851 06:qObjIsPlayerWeapon:Bool
4852 $$CHILD_BLOCK_START
4853 10:1:1:-1:Object
4854 $$CHILD_BLOCK_END
4855 07:0:6
4856 $$CHILD_BLOCK_END
4857 $$CHILD_BLOCK_END
4858 04:0:0:0
4859 $$CHILD_BLOCK_START
4860 08:aMatCenPuzzleSwitchE
4861 $$CHILD_BLOCK_START
4862 06:qObjParent:Player
4863 $$CHILD_BLOCK_START
4864 10:1:1:-1:Object
4865 $$CHILD_BLOCK_END
4866 $$CHILD_BLOCK_END
4867 $$CHILD_BLOCK_END
4868 $$CHILD_BLOCK_END
4869 00:13:MatCen Control Switch F
4870 $$CHILD_BLOCK_START
4871 01:1:15
4872 02:0
4873 03:0
4874 $$CHILD_BLOCK_START
4875 05:1
4876 $$CHILD_BLOCK_START
4877 06:qObjIsPlayerWeapon:Bool
4878 $$CHILD_BLOCK_START
4879 10:1:1:-1:Object
4880 $$CHILD_BLOCK_END
4881 07:0:6
4882 $$CHILD_BLOCK_END
4883 $$CHILD_BLOCK_END
4884 04:0:0:0
4885 $$CHILD_BLOCK_START
4886 08:aMatCenPuzzleSwitchF
4887 $$CHILD_BLOCK_START
4888 06:qObjParent:Player
4889 $$CHILD_BLOCK_START
4890 10:1:1:-1:Object
4891 $$CHILD_BLOCK_END
4892 $$CHILD_BLOCK_END
4893 $$CHILD_BLOCK_END
4894 $$CHILD_BLOCK_END
4895 00:14:MatCen Control Switch G
4896 $$CHILD_BLOCK_START
4897 01:1:16
4898 02:0
4899 03:0
4900 $$CHILD_BLOCK_START
4901 05:1
4902 $$CHILD_BLOCK_START
4903 06:qObjIsPlayerWeapon:Bool
4904 $$CHILD_BLOCK_START
4905 10:1:1:-1:Object
4906 $$CHILD_BLOCK_END
4907 07:0:6
4908 $$CHILD_BLOCK_END
4909 $$CHILD_BLOCK_END
4910 04:0:0:0
4911 $$CHILD_BLOCK_START
4912 08:aMatCenPuzzleSwitchG
4913 $$CHILD_BLOCK_START
4914 06:qObjParent:Player
4915 $$CHILD_BLOCK_START
4916 10:1:1:-1:Object
4917 $$CHILD_BLOCK_END
4918 $$CHILD_BLOCK_END
4919 $$CHILD_BLOCK_END
4920 $$CHILD_BLOCK_END
4921 00:12:MatCen Puzzle Init
4922 $$CHILD_BLOCK_START
4923 01:2:0
4924 02:6
4925 03:0
4926 $$CHILD_BLOCK_START
4927 05:0
4928 $$CHILD_BLOCK_END
4929 04:0:0:0
4930 $$CHILD_BLOCK_START
4931 08:aUserFlagSet
4932 $$CHILD_BLOCK_START
4933 10:10:0:0:UserFlag
4934 10:5:0:True/False
4935 $$CHILD_BLOCK_END
4936 08:aUserFlagSet
4937 $$CHILD_BLOCK_START
4938 10:10:0:1:UserFlag
4939 10:5:0:True/False
4940 $$CHILD_BLOCK_END
4941 08:aUserFlagSet
4942 $$CHILD_BLOCK_START
4943 10:10:0:2:UserFlag
4944 10:5:0:True/False
4945 $$CHILD_BLOCK_END
4946 08:aUserFlagSet
4947 $$CHILD_BLOCK_START
4948 10:10:0:3:UserFlag
4949 10:5:0:True/False
4950 $$CHILD_BLOCK_END
4951 08:aUserFlagSet
4952 $$CHILD_BLOCK_START
4953 10:10:0:4:UserFlag
4954 10:5:0:True/False
4955 $$CHILD_BLOCK_END
4956 08:aUserFlagSet
4957 $$CHILD_BLOCK_START
4958 10:10:0:5:UserFlag
4959 10:5:0:True/False
4960 $$CHILD_BLOCK_END
4961 08:aUserFlagSet
4962 $$CHILD_BLOCK_START
4963 10:10:0:6:UserFlag
4964 10:5:0:True/False
4965 $$CHILD_BLOCK_END
4966 08:aMatCenPuzzleInit
4967 $$CHILD_BLOCK_END
4968 $$CHILD_BLOCK_END
4969 00:7:MatCen Puzzle Reset
4970 $$CHILD_BLOCK_START
4971 01:1:17
4972 02:0
4973 03:0
4974 $$CHILD_BLOCK_START
4975 05:2
4976 $$CHILD_BLOCK_START
4977 06:qObjIsPlayerWeapon:Bool
4978 $$CHILD_BLOCK_START
4979 10:1:1:-1:Object
4980 $$CHILD_BLOCK_END
4981 07:1:0
4982 10:5:1:Bool
4983 $$CHILD_BLOCK_END
4984 $$CHILD_BLOCK_END
4985 04:0:0:0
4986 $$CHILD_BLOCK_START
4987 08:aMatCenPuzzleReset
4988 $$CHILD_BLOCK_END
4989 $$CHILD_BLOCK_END
4990 00:15:Backup Energy Center Broken
4991 $$CHILD_BLOCK_START
4992 01:0:2
4993 02:1
4994 03:0
4995 $$CHILD_BLOCK_START
4996 05:1
4997 $$CHILD_BLOCK_START
4998 06:qObjIsPlayer:Bool
4999 $$CHILD_BLOCK_START
5000 10:1:1:-1:Object
5001 $$CHILD_BLOCK_END
5002 07:0:6
5003 $$CHILD_BLOCK_END
5004 $$CHILD_BLOCK_END
5005 04:0:0:0
5006 $$CHILD_BLOCK_START
5007 08:aShowHUDMessage
5008 $$CHILD_BLOCK_START
5009 10:8:EnergyCenterBroken:Message
5010 $$CHILD_BLOCK_END
5011 $$CHILD_BLOCK_END
5012 $$CHILD_BLOCK_END
5013 00:16:C Shaped Energy Center Broken
5014 $$CHILD_BLOCK_START
5015 01:0:0
5016 02:1
5017 03:0
5018 $$CHILD_BLOCK_START
5019 05:1
5020 $$CHILD_BLOCK_START
5021 06:qObjIsPlayer:Bool
5022 $$CHILD_BLOCK_START
5023 10:1:1:-1:Object
5024 $$CHILD_BLOCK_END
5025 07:0:6
5026 $$CHILD_BLOCK_END
5027 $$CHILD_BLOCK_END
5028 04:0:0:0
5029 $$CHILD_BLOCK_START
5030 08:aShowHUDMessage
5031 $$CHILD_BLOCK_START
5032 10:8:EnergyCenterBroken:Message
5033 $$CHILD_BLOCK_END
5034 08:aGoalEnableDisable
5035 $$CHILD_BLOCK_START
5036 10:10:0:1:Enable/Disable
5037 10:18:0:2:LevelGoal
5038 $$CHILD_BLOCK_END
5039 $$CHILD_BLOCK_END
5040 $$CHILD_BLOCK_END
5041 00:17:Secret Energy Center Broken
5042 $$CHILD_BLOCK_START
5043 01:0:1
5044 02:1
5045 03:0
5046 $$CHILD_BLOCK_START
5047 05:1
5048 $$CHILD_BLOCK_START
5049 06:qObjIsPlayer:Bool
5050 $$CHILD_BLOCK_START
5051 10:1:1:-1:Object
5052 $$CHILD_BLOCK_END
5053 07:0:6
5054 $$CHILD_BLOCK_END
5055 $$CHILD_BLOCK_END
5056 04:0:0:0
5057 $$CHILD_BLOCK_START
5058 08:aShowHUDMessage
5059 $$CHILD_BLOCK_START
5060 10:8:EnergyCenterBroken:Message
5061 $$CHILD_BLOCK_END
5062 08:aGoalEnableDisable
5063 $$CHILD_BLOCK_START
5064 10:10:0:1:Enable/Disable
5065 10:18:0:2:LevelGoal
5066 $$CHILD_BLOCK_END
5067 $$CHILD_BLOCK_END
5068 $$CHILD_BLOCK_END
5069 00:26:Right Geo Tube Switch
5070 $$CHILD_BLOCK_START
5071 01:1:18
5072 02:0
5073 03:0
5074 $$CHILD_BLOCK_START
5075 09:0
5076 $$CHILD_BLOCK_START
5077 05:1
5078 $$CHILD_BLOCK_START
5079 06:qObjIsPlayerWeapon:Bool
5080 $$CHILD_BLOCK_START
5081 10:1:1:-1:Object
5082 $$CHILD_BLOCK_END
5083 07:0:6
5084 $$CHILD_BLOCK_END
5085 05:1
5086 $$CHILD_BLOCK_START
5087 06:qUserFlag:Bool
5088 $$CHILD_BLOCK_START
5089 10:10:0:12:UserFlag
5090 $$CHILD_BLOCK_END
5091 07:0:7
5092 $$CHILD_BLOCK_END
5093 $$CHILD_BLOCK_END
5094 $$CHILD_BLOCK_END
5095 04:0:0:0
5096 $$CHILD_BLOCK_START
5097 08:aObjPlayAnim
5098 $$CHILD_BLOCK_START
5099 10:1:0:18:Object
5100 10:4:0:StartFrame
5101 10:4:1:EndFrame
5102 10:6:2.000000:CycleTime
5103 10:5:0:Looping
5104 $$CHILD_BLOCK_END
5105 08:aDoorSetPos
5106 $$CHILD_BLOCK_START
5107 10:0:0:0:Door
5108 10:9:0.000000:Position
5109 $$CHILD_BLOCK_END
5110 08:aDoorSetPos
5111 $$CHILD_BLOCK_START
5112 10:0:0:3:Door
5113 10:9:1.000000:Position
5114 $$CHILD_BLOCK_END
5115 08:aDoorSetPos
5116 $$CHILD_BLOCK_START
5117 10:0:0:4:Door
5118 10:9:1.000000:Position
5119 $$CHILD_BLOCK_END
5120 08:aAIGoalFollowPath
5121 $$CHILD_BLOCK_START
5122 10:1:0:3:Object
5123 10:16:1:Path
5124 10:4:1:FirstNode
5125 10:4:2:LastNode
5126 10:4:1:StartNode
5127 10:10:0:3:GoalPriority
5128 10:15:2228480:AIGoalFlags
5129 10:10:0:-1:GoalID
5130 $$CHILD_BLOCK_END
5131 08:aUserFlagSet
5132 $$CHILD_BLOCK_START
5133 10:10:0:9:UserFlag
5134 10:5:0:True/False
5135 $$CHILD_BLOCK_END
5136 08:aObjPlayAnim
5137 $$CHILD_BLOCK_START
5138 10:1:0:7:Object
5139 10:4:20:StartFrame
5140 10:4:40:EndFrame
5141 10:6:1.000000:CycleTime
5142 10:5:0:Looping
5143 $$CHILD_BLOCK_END
5144 08:aAIGoalFollowPath
5145 $$CHILD_BLOCK_START
5146 10:1:0:19:Object
5147 10:16:3:Path
5148 10:4:1:FirstNode
5149 10:4:2:LastNode
5150 10:4:1:StartNode
5151 10:10:0:3:GoalPriority
5152 10:15:2228480:AIGoalFlags
5153 10:10:0:-1:GoalID
5154 $$CHILD_BLOCK_END
5155 08:aUserFlagSet
5156 $$CHILD_BLOCK_START
5157 10:10:0:12:UserFlag
5158 10:5:1:True/False
5159 $$CHILD_BLOCK_END
5160 $$CHILD_BLOCK_END
5161 $$CHILD_BLOCK_END
5162 00:22:Center Geo Tube Switch
5163 $$CHILD_BLOCK_START
5164 01:1:20
5165 02:0
5166 03:0
5167 $$CHILD_BLOCK_START
5168 09:0
5169 $$CHILD_BLOCK_START
5170 05:1
5171 $$CHILD_BLOCK_START
5172 06:qObjIsPlayerWeapon:Bool
5173 $$CHILD_BLOCK_START
5174 10:1:1:-1:Object
5175 $$CHILD_BLOCK_END
5176 07:0:6
5177 $$CHILD_BLOCK_END
5178 05:1
5179 $$CHILD_BLOCK_START
5180 06:qUserFlag:Bool
5181 $$CHILD_BLOCK_START
5182 10:10:0:11:UserFlag
5183 $$CHILD_BLOCK_END
5184 07:0:7
5185 $$CHILD_BLOCK_END
5186 $$CHILD_BLOCK_END
5187 $$CHILD_BLOCK_END
5188 04:0:0:0
5189 $$CHILD_BLOCK_START
5190 08:aObjPlayAnim
5191 $$CHILD_BLOCK_START
5192 10:1:0:20:Object
5193 10:4:0:StartFrame
5194 10:4:1:EndFrame
5195 10:6:2.000000:CycleTime
5196 10:5:0:Looping
5197 $$CHILD_BLOCK_END
5198 08:aDoorSetPos
5199 $$CHILD_BLOCK_START
5200 10:0:0:2:Door
5201 10:9:0.000000:Position
5202 $$CHILD_BLOCK_END
5203 08:aDoorSetPos
5204 $$CHILD_BLOCK_START
5205 10:0:0:5:Door
5206 10:9:1.000000:Position
5207 $$CHILD_BLOCK_END
5208 08:aDoorSetPos
5209 $$CHILD_BLOCK_START
5210 10:0:0:6:Door
5211 10:9:1.000000:Position
5212 $$CHILD_BLOCK_END
5213 08:aAIGoalFollowPath
5214 $$CHILD_BLOCK_START
5215 10:1:0:4:Object
5216 10:16:2:Path
5217 10:4:1:FirstNode
5218 10:4:2:LastNode
5219 10:4:1:StartNode
5220 10:10:0:3:GoalPriority
5221 10:15:2228480:AIGoalFlags
5222 10:10:0:-1:GoalID
5223 $$CHILD_BLOCK_END
5224 08:aUserFlagSet
5225 $$CHILD_BLOCK_START
5226 10:10:0:8:UserFlag
5227 10:5:0:True/False
5228 $$CHILD_BLOCK_END
5229 08:aObjPlayAnim
5230 $$CHILD_BLOCK_START
5231 10:1:0:6:Object
5232 10:4:20:StartFrame
5233 10:4:40:EndFrame
5234 10:6:1.000000:CycleTime
5235 10:5:0:Looping
5236 $$CHILD_BLOCK_END
5237 08:aAIGoalFollowPath
5238 $$CHILD_BLOCK_START
5239 10:1:0:21:Object
5240 10:16:4:Path
5241 10:4:1:FirstNode
5242 10:4:2:LastNode
5243 10:4:1:StartNode
5244 10:10:0:3:GoalPriority
5245 10:15:2228480:AIGoalFlags
5246 10:10:0:-1:GoalID
5247 $$CHILD_BLOCK_END
5248 08:aUserFlagSet
5249 $$CHILD_BLOCK_START
5250 10:10:0:11:UserFlag
5251 10:5:1:True/False
5252 $$CHILD_BLOCK_END
5253 $$CHILD_BLOCK_END
5254 $$CHILD_BLOCK_END
5255 00:23:Left Geo Tube Switch
5256 $$CHILD_BLOCK_START
5257 01:1:22
5258 02:0
5259 03:0
5260 $$CHILD_BLOCK_START
5261 09:0
5262 $$CHILD_BLOCK_START
5263 05:1
5264 $$CHILD_BLOCK_START
5265 06:qObjIsPlayerWeapon:Bool
5266 $$CHILD_BLOCK_START
5267 10:1:1:-1:Object
5268 $$CHILD_BLOCK_END
5269 07:0:6
5270 $$CHILD_BLOCK_END
5271 05:1
5272 $$CHILD_BLOCK_START
5273 06:qUserFlag:Bool
5274 $$CHILD_BLOCK_START
5275 10:10:0:10:UserFlag
5276 $$CHILD_BLOCK_END
5277 07:0:7
5278 $$CHILD_BLOCK_END
5279 $$CHILD_BLOCK_END
5280 $$CHILD_BLOCK_END
5281 04:0:0:0
5282 $$CHILD_BLOCK_START
5283 08:aObjPlayAnim
5284 $$CHILD_BLOCK_START
5285 10:1:0:22:Object
5286 10:4:0:StartFrame
5287 10:4:1:EndFrame
5288 10:6:2.000000:CycleTime
5289 10:5:0:Looping
5290 $$CHILD_BLOCK_END
5291 08:aDoorSetPos
5292 $$CHILD_BLOCK_START
5293 10:0:0:1:Door
5294 10:9:0.000000:Position
5295 $$CHILD_BLOCK_END
5296 08:aDoorSetPos
5297 $$CHILD_BLOCK_START
5298 10:0:0:7:Door
5299 10:9:1.000000:Position
5300 $$CHILD_BLOCK_END
5301 08:aDoorSetPos
5302 $$CHILD_BLOCK_START
5303 10:0:0:8:Door
5304 10:9:1.000000:Position
5305 $$CHILD_BLOCK_END
5306 08:aAIGoalFollowPath
5307 $$CHILD_BLOCK_START
5308 10:1:0:2:Object
5309 10:16:0:Path
5310 10:4:1:FirstNode
5311 10:4:2:LastNode
5312 10:4:1:StartNode
5313 10:10:0:3:GoalPriority
5314 10:15:2228480:AIGoalFlags
5315 10:10:0:-1:GoalID
5316 $$CHILD_BLOCK_END
5317 08:aUserFlagSet
5318 $$CHILD_BLOCK_START
5319 10:10:0:7:UserFlag
5320 10:5:0:True/False
5321 $$CHILD_BLOCK_END
5322 08:aObjPlayAnim
5323 $$CHILD_BLOCK_START
5324 10:1:0:5:Object
5325 10:4:20:StartFrame
5326 10:4:40:EndFrame
5327 10:6:1.000000:CycleTime
5328 10:5:0:Looping
5329 $$CHILD_BLOCK_END
5330 08:aAIGoalFollowPath
5331 $$CHILD_BLOCK_START
5332 10:1:0:23:Object
5333 10:16:5:Path
5334 10:4:1:FirstNode
5335 10:4:2:LastNode
5336 10:4:1:StartNode
5337 10:10:0:3:GoalPriority
5338 10:15:2228480:AIGoalFlags
5339 10:10:0:-1:GoalID
5340 $$CHILD_BLOCK_END
5341 08:aUserFlagSet
5342 $$CHILD_BLOCK_START
5343 10:10:0:10:UserFlag
5344 10:5:1:True/False
5345 $$CHILD_BLOCK_END
5346 $$CHILD_BLOCK_END
5347 $$CHILD_BLOCK_END
5348 00:28:Right Geo Tube Nook Exit
5349 $$CHILD_BLOCK_START
5350 01:0:3
5351 02:1
5352 03:0
5353 $$CHILD_BLOCK_START
5354 05:1
5355 $$CHILD_BLOCK_START
5356 06:qObjIsPlayer:Bool
5357 $$CHILD_BLOCK_START
5358 10:1:1:-1:Object
5359 $$CHILD_BLOCK_END
5360 07:0:6
5361 $$CHILD_BLOCK_END
5362 $$CHILD_BLOCK_END
5363 04:0:0:0
5364 $$CHILD_BLOCK_START
5365 08:aDoorSetPos
5366 $$CHILD_BLOCK_START
5367 10:0:0:3:Door
5368 10:9:0.000000:Position
5369 $$CHILD_BLOCK_END
5370 08:aAIGoalFollowPath
5371 $$CHILD_BLOCK_START
5372 10:1:0:19:Object
5373 10:16:3:Path
5374 10:4:2:FirstNode
5375 10:4:3:LastNode
5376 10:4:2:StartNode
5377 10:10:0:3:GoalPriority
5378 10:15:2228480:AIGoalFlags
5379 10:10:0:-1:GoalID
5380 $$CHILD_BLOCK_END
5381 $$CHILD_BLOCK_END
5382 $$CHILD_BLOCK_END
5383 00:27:Center Geo Tube Nook Exit
5384 $$CHILD_BLOCK_START
5385 01:0:4
5386 02:1
5387 03:0
5388 $$CHILD_BLOCK_START
5389 05:1
5390 $$CHILD_BLOCK_START
5391 06:qObjIsPlayer:Bool
5392 $$CHILD_BLOCK_START
5393 10:1:1:-1:Object
5394 $$CHILD_BLOCK_END
5395 07:0:6
5396 $$CHILD_BLOCK_END
5397 $$CHILD_BLOCK_END
5398 04:0:0:0
5399 $$CHILD_BLOCK_START
5400 08:aDoorSetPos
5401 $$CHILD_BLOCK_START
5402 10:0:0:5:Door
5403 10:9:0.000000:Position
5404 $$CHILD_BLOCK_END
5405 08:aAIGoalFollowPath
5406 $$CHILD_BLOCK_START
5407 10:1:0:21:Object
5408 10:16:4:Path
5409 10:4:2:FirstNode
5410 10:4:3:LastNode
5411 10:4:2:StartNode
5412 10:10:0:3:GoalPriority
5413 10:15:2228480:AIGoalFlags
5414 10:10:0:-1:GoalID
5415 $$CHILD_BLOCK_END
5416 $$CHILD_BLOCK_END
5417 $$CHILD_BLOCK_END
5418 00:24:Left Geo Tube Nook Exit
5419 $$CHILD_BLOCK_START
5420 01:0:5
5421 02:1
5422 03:0
5423 $$CHILD_BLOCK_START
5424 05:1
5425 $$CHILD_BLOCK_START
5426 06:qObjIsPlayer:Bool
5427 $$CHILD_BLOCK_START
5428 10:1:1:-1:Object
5429 $$CHILD_BLOCK_END
5430 07:0:6
5431 $$CHILD_BLOCK_END
5432 $$CHILD_BLOCK_END
5433 04:0:0:0
5434 $$CHILD_BLOCK_START
5435 08:aDoorSetPos
5436 $$CHILD_BLOCK_START
5437 10:0:0:7:Door
5438 10:9:0.000000:Position
5439 $$CHILD_BLOCK_END
5440 08:aAIGoalFollowPath
5441 $$CHILD_BLOCK_START
5442 10:1:0:23:Object
5443 10:16:5:Path
5444 10:4:2:FirstNode
5445 10:4:3:LastNode
5446 10:4:2:StartNode
5447 10:10:0:3:GoalPriority
5448 10:15:2228480:AIGoalFlags
5449 10:10:0:-1:GoalID
5450 $$CHILD_BLOCK_END
5451 $$CHILD_BLOCK_END
5452 $$CHILD_BLOCK_END
5453 00:30:Right Upper Geo Pit Door Escape
5454 $$CHILD_BLOCK_START
5455 01:0:6
5456 02:1
5457 03:0
5458 $$CHILD_BLOCK_START
5459 05:1
5460 $$CHILD_BLOCK_START
5461 06:qObjIsPlayer:Bool
5462 $$CHILD_BLOCK_START
5463 10:1:1:-1:Object
5464 $$CHILD_BLOCK_END
5465 07:0:6
5466 $$CHILD_BLOCK_END
5467 $$CHILD_BLOCK_END
5468 04:0:0:0
5469 $$CHILD_BLOCK_START
5470 08:aDoorSetPos
5471 $$CHILD_BLOCK_START
5472 10:0:0:4:Door
5473 10:9:0.000000:Position
5474 $$CHILD_BLOCK_END
5475 08:aAIGoalFollowPath
5476 $$CHILD_BLOCK_START
5477 10:1:0:19:Object
5478 10:16:3:Path
5479 10:4:1:FirstNode
5480 10:4:3:LastNode
5481 10:4:3:StartNode
5482 10:10:0:3:GoalPriority
5483 10:15:19005696:AIGoalFlags
5484 10:10:0:-1:GoalID
5485 $$CHILD_BLOCK_END
5486 08:aObjPlayAnim
5487 $$CHILD_BLOCK_START
5488 10:1:0:18:Object
5489 10:4:1:StartFrame
5490 10:4:2:EndFrame
5491 10:6:1.000000:CycleTime
5492 10:5:0:Looping
5493 $$CHILD_BLOCK_END
5494 08:aUserFlagSet
5495 $$CHILD_BLOCK_START
5496 10:10:0:12:UserFlag
5497 10:5:0:True/False
5498 $$CHILD_BLOCK_END
5499 $$CHILD_BLOCK_END
5500 $$CHILD_BLOCK_END
5501 00:29:Center Upper Geo Pit Door Escape
5502 $$CHILD_BLOCK_START
5503 01:0:7
5504 02:1
5505 03:0
5506 $$CHILD_BLOCK_START
5507 05:1
5508 $$CHILD_BLOCK_START
5509 06:qObjIsPlayer:Bool
5510 $$CHILD_BLOCK_START
5511 10:1:1:-1:Object
5512 $$CHILD_BLOCK_END
5513 07:0:6
5514 $$CHILD_BLOCK_END
5515 $$CHILD_BLOCK_END
5516 04:0:0:0
5517 $$CHILD_BLOCK_START
5518 08:aDoorSetPos
5519 $$CHILD_BLOCK_START
5520 10:0:0:6:Door
5521 10:9:0.000000:Position
5522 $$CHILD_BLOCK_END
5523 08:aAIGoalFollowPath
5524 $$CHILD_BLOCK_START
5525 10:1:0:21:Object
5526 10:16:4:Path
5527 10:4:1:FirstNode
5528 10:4:3:LastNode
5529 10:4:3:StartNode
5530 10:10:0:3:GoalPriority
5531 10:15:19005696:AIGoalFlags
5532 10:10:0:-1:GoalID
5533 $$CHILD_BLOCK_END
5534 08:aObjPlayAnim
5535 $$CHILD_BLOCK_START
5536 10:1:0:20:Object
5537 10:4:1:StartFrame
5538 10:4:2:EndFrame
5539 10:6:1.000000:CycleTime
5540 10:5:0:Looping
5541 $$CHILD_BLOCK_END
5542 08:aUserFlagSet
5543 $$CHILD_BLOCK_START
5544 10:10:0:11:UserFlag
5545 10:5:0:True/False
5546 $$CHILD_BLOCK_END
5547 $$CHILD_BLOCK_END
5548 $$CHILD_BLOCK_END
5549 00:25:Left Upper Geo Pit Door Escape
5550 $$CHILD_BLOCK_START
5551 01:0:8
5552 02:1
5553 03:0
5554 $$CHILD_BLOCK_START
5555 05:1
5556 $$CHILD_BLOCK_START
5557 06:qObjIsPlayer:Bool
5558 $$CHILD_BLOCK_START
5559 10:1:1:-1:Object
5560 $$CHILD_BLOCK_END
5561 07:0:6
5562 $$CHILD_BLOCK_END
5563 $$CHILD_BLOCK_END
5564 04:0:0:0
5565 $$CHILD_BLOCK_START
5566 08:aDoorSetPos
5567 $$CHILD_BLOCK_START
5568 10:0:0:8:Door
5569 10:9:0.000000:Position
5570 $$CHILD_BLOCK_END
5571 08:aAIGoalFollowPath
5572 $$CHILD_BLOCK_START
5573 10:1:0:23:Object
5574 10:16:5:Path
5575 10:4:1:FirstNode
5576 10:4:3:LastNode
5577 10:4:3:StartNode
5578 10:10:0:3:GoalPriority
5579 10:15:19005696:AIGoalFlags
5580 10:10:0:-1:GoalID
5581 $$CHILD_BLOCK_END
5582 08:aObjPlayAnim
5583 $$CHILD_BLOCK_START
5584 10:1:0:22:Object
5585 10:4:1:StartFrame
5586 10:4:2:EndFrame
5587 10:6:1.000000:CycleTime
5588 10:5:0:Looping
5589 $$CHILD_BLOCK_END
5590 08:aUserFlagSet
5591 $$CHILD_BLOCK_START
5592 10:10:0:10:UserFlag
5593 10:5:0:True/False
5594 $$CHILD_BLOCK_END
5595 $$CHILD_BLOCK_END
5596 $$CHILD_BLOCK_END
5597 00:18:Lava Puzzle Switch Starts
5598 $$CHILD_BLOCK_START
5599 01:2:0
5600 02:6
5601 03:0
5602 $$CHILD_BLOCK_START
5603 05:0
5604 $$CHILD_BLOCK_END
5605 04:0:0:0
5606 $$CHILD_BLOCK_START
5607 08:aUserFlagSet
5608 $$CHILD_BLOCK_START
5609 10:10:0:7:UserFlag
5610 10:5:0:True/False
5611 $$CHILD_BLOCK_END
5612 08:aUserFlagSet
5613 $$CHILD_BLOCK_START
5614 10:10:0:8:UserFlag
5615 10:5:0:True/False
5616 $$CHILD_BLOCK_END
5617 08:aUserFlagSet
5618 $$CHILD_BLOCK_START
5619 10:10:0:9:UserFlag
5620 10:5:0:True/False
5621 $$CHILD_BLOCK_END
5622 08:aUserFlagSet
5623 $$CHILD_BLOCK_START
5624 10:10:0:10:UserFlag
5625 10:5:0:True/False
5626 $$CHILD_BLOCK_END
5627 08:aUserFlagSet
5628 $$CHILD_BLOCK_START
5629 10:10:0:11:UserFlag
5630 10:5:0:True/False
5631 $$CHILD_BLOCK_END
5632 08:aUserFlagSet
5633 $$CHILD_BLOCK_START
5634 10:10:0:12:UserFlag
5635 10:5:0:True/False
5636 $$CHILD_BLOCK_END
5637 08:aUserFlagSet
5638 $$CHILD_BLOCK_START
5639 10:10:0:19:UserFlag
5640 10:5:0:True/False
5641 $$CHILD_BLOCK_END
5642 $$CHILD_BLOCK_END
5643 $$CHILD_BLOCK_END
5644 00:19:Geo Lava Room Damage
5645 $$CHILD_BLOCK_START
5646 01:2:0
5647 02:6
5648 03:0
5649 $$CHILD_BLOCK_START
5650 05:0
5651 $$CHILD_BLOCK_END
5652 04:0:0:0
5653 $$CHILD_BLOCK_START
5654 08:aRoomSetDamage
5655 $$CHILD_BLOCK_START
5656 10:2:3:Room
5657 10:6:6.000000:Damage
5658 10:10:0:0:DamageSoundType
5659 $$CHILD_BLOCK_END
5660 08:aRoomSetDamage
5661 $$CHILD_BLOCK_START
5662 10:2:4:Room
5663 10:6:6.000000:Damage
5664 10:10:0:0:DamageSoundType
5665 $$CHILD_BLOCK_END
5666 08:aRoomSetDamage
5667 $$CHILD_BLOCK_START
5668 10:2:5:Room
5669 10:6:6.000000:Damage
5670 10:10:0:0:DamageSoundType
5671 $$CHILD_BLOCK_END
5672 08:aRoomSetDamage
5673 $$CHILD_BLOCK_START
5674 10:2:6:Room
5675 10:6:6.000000:Damage
5676 10:10:0:0:DamageSoundType
5677 $$CHILD_BLOCK_END
5678 08:aRoomSetDamage
5679 $$CHILD_BLOCK_START
5680 10:2:7:Room
5681 10:6:6.000000:Damage
5682 10:10:0:0:DamageSoundType
5683 $$CHILD_BLOCK_END
5684 08:aRoomSetDamage
5685 $$CHILD_BLOCK_START
5686 10:2:8:Room
5687 10:6:6.000000:Damage
5688 10:10:0:0:DamageSoundType
5689 $$CHILD_BLOCK_END
5690 $$CHILD_BLOCK_END
5691 $$CHILD_BLOCK_END
5692 00:33:Inner Stronghold Door E
5693 $$CHILD_BLOCK_START
5694 01:1:24
5695 02:0
5696 03:0
5697 $$CHILD_BLOCK_START
5698 09:0
5699 $$CHILD_BLOCK_START
5700 05:1
5701 $$CHILD_BLOCK_START
5702 06:qObjIsPlayerOrPlayerWeapon:Bool
5703 $$CHILD_BLOCK_START
5704 10:1:1:-1:Object
5705 $$CHILD_BLOCK_END
5706 07:0:6
5707 $$CHILD_BLOCK_END
5708 05:1
5709 $$CHILD_BLOCK_START
5710 06:qDoorOpenable:Bool
5711 $$CHILD_BLOCK_START
5712 10:0:2:-1:Door
5713 10:1:1:-1:Object
5714 $$CHILD_BLOCK_END
5715 07:0:7
5716 $$CHILD_BLOCK_END
5717 $$CHILD_BLOCK_END
5718 $$CHILD_BLOCK_END
5719 04:0:0:0
5720 $$CHILD_BLOCK_START
5721 08:aShowHUDMessage
5722 $$CHILD_BLOCK_START
5723 10:8:InnerDoorsDenied:Message
5724 $$CHILD_BLOCK_END
5725 03:1
5726 $$CHILD_BLOCK_START
5727 05:1
5728 $$CHILD_BLOCK_START
5729 06:qUserFlag:Bool
5730 $$CHILD_BLOCK_START
5731 10:10:0:13:UserFlag
5732 $$CHILD_BLOCK_END
5733 07:0:7
5734 $$CHILD_BLOCK_END
5735 $$CHILD_BLOCK_END
5736 04:1:0:0
5737 $$CHILD_BLOCK_START
5738 08:aUserFlagSet
5739 $$CHILD_BLOCK_START
5740 10:10:0:13:UserFlag
5741 10:5:1:True/False
5742 $$CHILD_BLOCK_END
5743 08:aGoalEnableDisable
5744 $$CHILD_BLOCK_START
5745 10:10:0:1:Enable/Disable
5746 10:18:0:0:LevelGoal
5747 $$CHILD_BLOCK_END
5748 $$CHILD_BLOCK_END
5749 $$CHILD_BLOCK_END
5750 $$CHILD_BLOCK_END
5751 00:32:Inner Stronghold Door D
5752 $$CHILD_BLOCK_START
5753 01:1:25
5754 02:0
5755 03:0
5756 $$CHILD_BLOCK_START
5757 09:0
5758 $$CHILD_BLOCK_START
5759 05:1
5760 $$CHILD_BLOCK_START
5761 06:qObjIsPlayerOrPlayerWeapon:Bool
5762 $$CHILD_BLOCK_START
5763 10:1:1:-1:Object
5764 $$CHILD_BLOCK_END
5765 07:0:6
5766 $$CHILD_BLOCK_END
5767 05:1
5768 $$CHILD_BLOCK_START
5769 06:qDoorOpenable:Bool
5770 $$CHILD_BLOCK_START
5771 10:0:2:-1:Door
5772 10:1:1:-1:Object
5773 $$CHILD_BLOCK_END
5774 07:0:7
5775 $$CHILD_BLOCK_END
5776 $$CHILD_BLOCK_END
5777 $$CHILD_BLOCK_END
5778 04:0:0:0
5779 $$CHILD_BLOCK_START
5780 08:aShowHUDMessage
5781 $$CHILD_BLOCK_START
5782 10:8:InnerDoorsDenied:Message
5783 $$CHILD_BLOCK_END
5784 03:1
5785 $$CHILD_BLOCK_START
5786 05:1
5787 $$CHILD_BLOCK_START
5788 06:qUserFlag:Bool
5789 $$CHILD_BLOCK_START
5790 10:10:0:13:UserFlag
5791 $$CHILD_BLOCK_END
5792 07:0:7
5793 $$CHILD_BLOCK_END
5794 $$CHILD_BLOCK_END
5795 04:1:0:0
5796 $$CHILD_BLOCK_START
5797 08:aUserFlagSet
5798 $$CHILD_BLOCK_START
5799 10:10:0:13:UserFlag
5800 10:5:1:True/False
5801 $$CHILD_BLOCK_END
5802 08:aGoalEnableDisable
5803 $$CHILD_BLOCK_START
5804 10:10:0:1:Enable/Disable
5805 10:18:0:0:LevelGoal
5806 $$CHILD_BLOCK_END
5807 $$CHILD_BLOCK_END
5808 $$CHILD_BLOCK_END
5809 $$CHILD_BLOCK_END
5810 00:31:Inner Stronghold Door C
5811 $$CHILD_BLOCK_START
5812 01:1:26
5813 02:0
5814 03:0
5815 $$CHILD_BLOCK_START
5816 09:0
5817 $$CHILD_BLOCK_START
5818 05:1
5819 $$CHILD_BLOCK_START
5820 06:qObjIsPlayerOrPlayerWeapon:Bool
5821 $$CHILD_BLOCK_START
5822 10:1:1:-1:Object
5823 $$CHILD_BLOCK_END
5824 07:0:6
5825 $$CHILD_BLOCK_END
5826 05:1
5827 $$CHILD_BLOCK_START
5828 06:qDoorOpenable:Bool
5829 $$CHILD_BLOCK_START
5830 10:0:2:-1:Door
5831 10:1:1:-1:Object
5832 $$CHILD_BLOCK_END
5833 07:0:7
5834 $$CHILD_BLOCK_END
5835 $$CHILD_BLOCK_END
5836 $$CHILD_BLOCK_END
5837 04:0:0:0
5838 $$CHILD_BLOCK_START
5839 08:aShowHUDMessage
5840 $$CHILD_BLOCK_START
5841 10:8:InnerDoorsDenied:Message
5842 $$CHILD_BLOCK_END
5843 03:1
5844 $$CHILD_BLOCK_START
5845 05:1
5846 $$CHILD_BLOCK_START
5847 06:qUserFlag:Bool
5848 $$CHILD_BLOCK_START
5849 10:10:0:13:UserFlag
5850 $$CHILD_BLOCK_END
5851 07:0:7
5852 $$CHILD_BLOCK_END
5853 $$CHILD_BLOCK_END
5854 04:1:0:0
5855 $$CHILD_BLOCK_START
5856 08:aUserFlagSet
5857 $$CHILD_BLOCK_START
5858 10:10:0:13:UserFlag
5859 10:5:1:True/False
5860 $$CHILD_BLOCK_END
5861 08:aGoalEnableDisable
5862 $$CHILD_BLOCK_START
5863 10:10:0:1:Enable/Disable
5864 10:18:0:0:LevelGoal
5865 $$CHILD_BLOCK_END
5866 $$CHILD_BLOCK_END
5867 $$CHILD_BLOCK_END
5868 $$CHILD_BLOCK_END
5869 00:38:Center TNT Dispenser Switch
5870 $$CHILD_BLOCK_START
5871 01:1:27
5872 02:0
5873 03:0
5874 $$CHILD_BLOCK_START
5875 05:1
5876 $$CHILD_BLOCK_START
5877 06:qObjIsPlayerWeapon:Bool
5878 $$CHILD_BLOCK_START
5879 10:1:1:-1:Object
5880 $$CHILD_BLOCK_END
5881 07:0:6
5882 $$CHILD_BLOCK_END
5883 $$CHILD_BLOCK_END
5884 04:0:0:0
5885 $$CHILD_BLOCK_START
5886 03:1
5887 $$CHILD_BLOCK_START
5888 05:1
5889 $$CHILD_BLOCK_START
5890 06:qUserFlag:Bool
5891 $$CHILD_BLOCK_START
5892 10:10:0:16:UserFlag
5893 $$CHILD_BLOCK_END
5894 07:0:7
5895 $$CHILD_BLOCK_END
5896 $$CHILD_BLOCK_END
5897 04:1:0:0
5898 $$CHILD_BLOCK_START
5899 08:aObjPlayAnim
5900 $$CHILD_BLOCK_START
5901 10:1:0:27:Object
5902 10:4:0:StartFrame
5903 10:4:10:EndFrame
5904 10:6:1.000000:CycleTime
5905 10:5:0:Looping
5906 $$CHILD_BLOCK_END
5907 08:aShowHUDMessage
5908 $$CHILD_BLOCK_START
5909 10:8:TNTDispenserCenter:Message
5910 $$CHILD_BLOCK_END
5911 08:aMatcenSetState
5912 $$CHILD_BLOCK_START
5913 10:10:0:1:Activate/Deactivate
5914 10:17:0:0:Matcen
5915 $$CHILD_BLOCK_END
5916 08:aUserFlagSet
5917 $$CHILD_BLOCK_START
5918 10:10:0:16:UserFlag
5919 10:5:1:True/False
5920 $$CHILD_BLOCK_END
5921 08:aSetObjectTimer
5922 $$CHILD_BLOCK_START
5923 10:1:0:27:Object
5924 10:6:1.000000:Time
5925 10:10:0:1:TimerID
5926 $$CHILD_BLOCK_END
5927 $$CHILD_BLOCK_END
5928 04:1:0:1
5929 $$CHILD_BLOCK_START
5930 08:DO NOTHING
5931 $$CHILD_BLOCK_END
5932 $$CHILD_BLOCK_END
5933 $$CHILD_BLOCK_END
5934 00:39:Right TNT Dispenser Switch
5935 $$CHILD_BLOCK_START
5936 01:1:28
5937 02:0
5938 03:0
5939 $$CHILD_BLOCK_START
5940 05:1
5941 $$CHILD_BLOCK_START
5942 06:qObjIsPlayerWeapon:Bool
5943 $$CHILD_BLOCK_START
5944 10:1:1:-1:Object
5945 $$CHILD_BLOCK_END
5946 07:0:6
5947 $$CHILD_BLOCK_END
5948 $$CHILD_BLOCK_END
5949 04:0:0:0
5950 $$CHILD_BLOCK_START
5951 03:1
5952 $$CHILD_BLOCK_START
5953 05:1
5954 $$CHILD_BLOCK_START
5955 06:qUserFlag:Bool
5956 $$CHILD_BLOCK_START
5957 10:10:0:17:UserFlag
5958 $$CHILD_BLOCK_END
5959 07:0:7
5960 $$CHILD_BLOCK_END
5961 $$CHILD_BLOCK_END
5962 04:1:0:0
5963 $$CHILD_BLOCK_START
5964 08:aObjPlayAnim
5965 $$CHILD_BLOCK_START
5966 10:1:0:28:Object
5967 10:4:0:StartFrame
5968 10:4:10:EndFrame
5969 10:6:1.000000:CycleTime
5970 10:5:0:Looping
5971 $$CHILD_BLOCK_END
5972 08:aShowHUDMessage
5973 $$CHILD_BLOCK_START
5974 10:8:TNTDispenserRight:Message
5975 $$CHILD_BLOCK_END
5976 08:aMatcenSetState
5977 $$CHILD_BLOCK_START
5978 10:10:0:1:Activate/Deactivate
5979 10:17:0:1:Matcen
5980 $$CHILD_BLOCK_END
5981 08:aUserFlagSet
5982 $$CHILD_BLOCK_START
5983 10:10:0:17:UserFlag
5984 10:5:1:True/False
5985 $$CHILD_BLOCK_END
5986 08:aSetObjectTimer
5987 $$CHILD_BLOCK_START
5988 10:1:0:28:Object
5989 10:6:1.000000:Time
5990 10:10:0:0:TimerID
5991 $$CHILD_BLOCK_END
5992 $$CHILD_BLOCK_END
5993 04:1:0:1
5994 $$CHILD_BLOCK_START
5995 08:DO NOTHING
5996 $$CHILD_BLOCK_END
5997 $$CHILD_BLOCK_END
5998 $$CHILD_BLOCK_END
5999 00:50:Center TNT Dispenser Reset
6000 $$CHILD_BLOCK_START
6001 01:1:27
6002 02:9
6003 03:0
6004 $$CHILD_BLOCK_START
6005 05:2
6006 $$CHILD_BLOCK_START
6007 10:10:2:0:TimerID
6008 07:1:0
6009 10:10:0:1:TimerID
6010 $$CHILD_BLOCK_END
6011 $$CHILD_BLOCK_END
6012 04:0:0:0
6013 $$CHILD_BLOCK_START
6014 08:aMatcenSetState
6015 $$CHILD_BLOCK_START
6016 10:10:0:0:Activate/Deactivate
6017 10:17:0:0:Matcen
6018 $$CHILD_BLOCK_END
6019 08:aUserFlagSet
6020 $$CHILD_BLOCK_START
6021 10:10:0:16:UserFlag
6022 10:5:0:True/False
6023 $$CHILD_BLOCK_END
6024 08:aObjPlayAnim
6025 $$CHILD_BLOCK_START
6026 10:1:0:27:Object
6027 10:4:10:StartFrame
6028 10:4:20:EndFrame
6029 10:6:1.000000:CycleTime
6030 10:5:0:Looping
6031 $$CHILD_BLOCK_END
6032 $$CHILD_BLOCK_END
6033 $$CHILD_BLOCK_END
6034 00:36:Right TNT Dispenser Reset
6035 $$CHILD_BLOCK_START
6036 01:1:28
6037 02:9
6038 03:0
6039 $$CHILD_BLOCK_START
6040 05:2
6041 $$CHILD_BLOCK_START
6042 10:10:2:0:TimerID
6043 07:1:0
6044 10:10:0:0:TimerID
6045 $$CHILD_BLOCK_END
6046 $$CHILD_BLOCK_END
6047 04:0:0:0
6048 $$CHILD_BLOCK_START
6049 08:aMatcenSetState
6050 $$CHILD_BLOCK_START
6051 10:10:0:0:Activate/Deactivate
6052 10:17:0:1:Matcen
6053 $$CHILD_BLOCK_END
6054 08:aUserFlagSet
6055 $$CHILD_BLOCK_START
6056 10:10:0:17:UserFlag
6057 10:5:0:True/False
6058 $$CHILD_BLOCK_END
6059 08:aObjPlayAnim
6060 $$CHILD_BLOCK_START
6061 10:1:0:28:Object
6062 10:4:10:StartFrame
6063 10:4:20:EndFrame
6064 10:6:1.000000:CycleTime
6065 10:5:0:Looping
6066 $$CHILD_BLOCK_END
6067 $$CHILD_BLOCK_END
6068 $$CHILD_BLOCK_END
6069 00:37:Left TNT Dispenser Switch
6070 $$CHILD_BLOCK_START
6071 01:1:29
6072 02:0
6073 03:0
6074 $$CHILD_BLOCK_START
6075 05:1
6076 $$CHILD_BLOCK_START
6077 06:qObjIsPlayerWeapon:Bool
6078 $$CHILD_BLOCK_START
6079 10:1:1:-1:Object
6080 $$CHILD_BLOCK_END
6081 07:0:6
6082 $$CHILD_BLOCK_END
6083 $$CHILD_BLOCK_END
6084 04:0:0:0
6085 $$CHILD_BLOCK_START
6086 03:1
6087 $$CHILD_BLOCK_START
6088 05:1
6089 $$CHILD_BLOCK_START
6090 06:qUserFlag:Bool
6091 $$CHILD_BLOCK_START
6092 10:10:0:15:UserFlag
6093 $$CHILD_BLOCK_END
6094 07:0:7
6095 $$CHILD_BLOCK_END
6096 $$CHILD_BLOCK_END
6097 04:1:0:0
6098 $$CHILD_BLOCK_START
6099 08:aShowHUDMessage
6100 $$CHILD_BLOCK_START
6101 10:8:TNTDispenserLeft:Message
6102 $$CHILD_BLOCK_END
6103 08:aTurnOnSpew
6104 $$CHILD_BLOCK_START
6105 10:1:0:30:Object
6106 10:4:-1:GunNum
6107 10:10:0:8:SpewType
6108 10:6:0.000000:Mass
6109 10:6:0.000000:Drag
6110 10:15:65536:PhysicsFlags
6111 10:5:0:IsRealObject
6112 10:6:0.750000:BlobLifetime
6113 10:6:0.100000:BlobInterval
6114 10:6:-1.000000:SpewLife
6115 10:6:2.000000:BlobSize
6116 10:6:10.000000:BlobSpeed
6117 10:5:1:Randomize
6118 10:10:0:5:SpewHandle
6119 $$CHILD_BLOCK_END
6120 08:aUserFlagSet
6121 $$CHILD_BLOCK_START
6122 10:10:0:15:UserFlag
6123 10:5:1:True/False
6124 $$CHILD_BLOCK_END
6125 08:aObjPlayAnim
6126 $$CHILD_BLOCK_START
6127 10:1:0:29:Object
6128 10:4:0:StartFrame
6129 10:4:10:EndFrame
6130 10:6:1.000000:CycleTime
6131 10:5:0:Looping
6132 $$CHILD_BLOCK_END
6133 08:aMiscViewerShake
6134 $$CHILD_BLOCK_START
6135 10:6:40.000000:Amount
6136 $$CHILD_BLOCK_END
6137 08:aSoundPlayObject
6138 $$CHILD_BLOCK_START
6139 10:12:1:Sound
6140 10:1:0:30:Object
6141 10:9:1.000000:Volume
6142 $$CHILD_BLOCK_END
6143 $$CHILD_BLOCK_END
6144 04:1:0:1
6145 $$CHILD_BLOCK_START
6146 08:aShowHUDMessage
6147 $$CHILD_BLOCK_START
6148 10:8:TNTDispenserLeftBroken:Message
6149 $$CHILD_BLOCK_END
6150 $$CHILD_BLOCK_END
6151 $$CHILD_BLOCK_END
6152 $$CHILD_BLOCK_END
6153 00:40:TNT Dispensers Start
6154 $$CHILD_BLOCK_START
6155 01:2:0
6156 02:6
6157 03:0
6158 $$CHILD_BLOCK_START
6159 05:0
6160 $$CHILD_BLOCK_END
6161 04:0:0:0
6162 $$CHILD_BLOCK_START
6163 08:aUserFlagSet
6164 $$CHILD_BLOCK_START
6165 10:10:0:15:UserFlag
6166 10:5:0:True/False
6167 $$CHILD_BLOCK_END
6168 08:aUserFlagSet
6169 $$CHILD_BLOCK_START
6170 10:10:0:16:UserFlag
6171 10:5:0:True/False
6172 $$CHILD_BLOCK_END
6173 08:aUserFlagSet
6174 $$CHILD_BLOCK_START
6175 10:10:0:17:UserFlag
6176 10:5:0:True/False
6177 $$CHILD_BLOCK_END
6178 $$CHILD_BLOCK_END
6179 $$CHILD_BLOCK_END
6180 00:51:TNT Rock wall destroyed
6181 $$CHILD_BLOCK_START
6182 01:1:31
6183 02:4
6184 03:0
6185 $$CHILD_BLOCK_START
6186 05:0
6187 $$CHILD_BLOCK_END
6188 04:0:0:0
6189 $$CHILD_BLOCK_START
6190 08:aShowHUDMessage
6191 $$CHILD_BLOCK_START
6192 10:8:TNTRockwalldestroyed:Message
6193 $$CHILD_BLOCK_END
6194 $$CHILD_BLOCK_END
6195 $$CHILD_BLOCK_END
6196 00:41:TNT Rock Wall hit with player weapon
6197 $$CHILD_BLOCK_START
6198 01:1:31
6199 02:0
6200 03:0
6201 $$CHILD_BLOCK_START
6202 05:1
6203 $$CHILD_BLOCK_START
6204 06:qObjIsPlayerWeapon:Bool
6205 $$CHILD_BLOCK_START
6206 10:1:1:-1:Object
6207 $$CHILD_BLOCK_END
6208 07:0:6
6209 $$CHILD_BLOCK_END
6210 $$CHILD_BLOCK_END
6211 04:0:0:0
6212 $$CHILD_BLOCK_START
6213 08:aShowHUDMessageObj
6214 $$CHILD_BLOCK_START
6215 10:8:TNTRockWall:Message
6216 10:1:1:-1:PlayerObject
6217 $$CHILD_BLOCK_END
6218 $$CHILD_BLOCK_END
6219 $$CHILD_BLOCK_END
6220 00:42:Boss Chamber Forcefield
6221 $$CHILD_BLOCK_START
6222 01:0:9
6223 02:1
6224 03:0
6225 $$CHILD_BLOCK_START
6226 05:1
6227 $$CHILD_BLOCK_START
6228 06:qObjIsPlayer:Bool
6229 $$CHILD_BLOCK_START
6230 10:1:1:-1:Object
6231 $$CHILD_BLOCK_END
6232 07:0:6
6233 $$CHILD_BLOCK_END
6234 $$CHILD_BLOCK_END
6235 04:0:0:0
6236 $$CHILD_BLOCK_START
6237 08:aPortalRenderSet
6238 $$CHILD_BLOCK_START
6239 10:10:0:1:Enable/Disable
6240 10:4:1:PortalNum
6241 10:2:9:Room
6242 10:5:1:DoublesidedFlag
6243 $$CHILD_BLOCK_END
6244 08:aPortalRenderSet
6245 $$CHILD_BLOCK_START
6246 10:10:0:0:Enable/Disable
6247 10:4:0:PortalNum
6248 10:2:10:Room
6249 10:5:1:DoublesidedFlag
6250 $$CHILD_BLOCK_END
6251 $$CHILD_BLOCK_END
6252 $$CHILD_BLOCK_END
6253 00:44:Boss Chamber Entrance Forcefield Start
6254 $$CHILD_BLOCK_START
6255 01:2:0
6256 02:6
6257 03:0
6258 $$CHILD_BLOCK_START
6259 05:0
6260 $$CHILD_BLOCK_END
6261 04:0:0:0
6262 $$CHILD_BLOCK_START
6263 08:aPortalRenderSet
6264 $$CHILD_BLOCK_START
6265 10:10:0:0:Enable/Disable
6266 10:4:1:PortalNum
6267 10:2:9:Room
6268 10:5:1:DoublesidedFlag
6269 $$CHILD_BLOCK_END
6270 $$CHILD_BLOCK_END
6271 $$CHILD_BLOCK_END
6272 00:45:Boss Death Dravis Door
6273 $$CHILD_BLOCK_START
6274 01:1:32
6275 02:4
6276 03:0
6277 $$CHILD_BLOCK_START
6278 05:0
6279 $$CHILD_BLOCK_END
6280 04:0:0:0
6281 $$CHILD_BLOCK_START
6282 08:aDoorSetPos
6283 $$CHILD_BLOCK_START
6284 10:0:0:9:Door
6285 10:9:1.000000:Position
6286 $$CHILD_BLOCK_END
6287 08:aShowHUDMessage
6288 $$CHILD_BLOCK_START
6289 10:8:DravisDoor:Message
6290 $$CHILD_BLOCK_END
6291 08:aGoalCompleted
6292 $$CHILD_BLOCK_START
6293 10:18:0:4:LevelGoal
6294 10:10:0:1:Completed
6295 $$CHILD_BLOCK_END
6296 $$CHILD_BLOCK_END
6297 $$CHILD_BLOCK_END
6298 00:46:End Level Sequence
6299 $$CHILD_BLOCK_START
6300 01:0:10
6301 02:1
6302 03:0
6303 $$CHILD_BLOCK_START
6304 05:1
6305 $$CHILD_BLOCK_START
6306 06:qObjIsPlayer:Bool
6307 $$CHILD_BLOCK_START
6308 10:1:1:-1:Object
6309 $$CHILD_BLOCK_END
6310 07:0:6
6311 $$CHILD_BLOCK_END
6312 $$CHILD_BLOCK_END
6313 04:0:0:0
6314 $$CHILD_BLOCK_START
6315 08:aStartEndlevelSequence
6316 $$CHILD_BLOCK_START
6317 10:1:0:33:Camera
6318 10:16:6:PlayerPath
6319 10:6:10.000000:Time
6320 10:8:End:Text
6321 $$CHILD_BLOCK_END
6322 $$CHILD_BLOCK_END
6323 $$CHILD_BLOCK_END
6324 00:47:Volcanoes Smoking
6325 $$CHILD_BLOCK_START
6326 01:2:0
6327 02:6
6328 03:0
6329 $$CHILD_BLOCK_START
6330 05:0
6331 $$CHILD_BLOCK_END
6332 04:0:0:0
6333 $$CHILD_BLOCK_START
6334 08:aTurnOnSpew
6335 $$CHILD_BLOCK_START
6336 10:1:0:34:Object
6337 10:4:0:GunNum
6338 10:10:0:8:SpewType
6339 10:6:0.000000:Mass
6340 10:6:0.000000:Drag
6341 10:15:65536:PhysicsFlags
6342 10:5:0:IsRealObject
6343 10:6:14.000000:BlobLifetime
6344 10:6:0.300000:BlobInterval
6345 10:6:-1.000000:SpewLife
6346 10:6:200.000000:BlobSize
6347 10:6:45.000000:BlobSpeed
6348 10:5:1:Randomize
6349 10:10:0:6:SpewHandle
6350 $$CHILD_BLOCK_END
6351 08:aTurnOnSpew
6352 $$CHILD_BLOCK_START
6353 10:1:0:34:Object
6354 10:4:1:GunNum
6355 10:10:0:8:SpewType
6356 10:6:0.000000:Mass
6357 10:6:0.000000:Drag
6358 10:15:65536:PhysicsFlags
6359 10:5:0:IsRealObject
6360 10:6:14.000000:BlobLifetime
6361 10:6:0.300000:BlobInterval
6362 10:6:-1.000000:SpewLife
6363 10:6:200.000000:BlobSize
6364 10:6:45.000000:BlobSpeed
6365 10:5:1:Randomize
6366 10:10:0:6:SpewHandle
6367 $$CHILD_BLOCK_END
6368 08:aTurnOnSpew
6369 $$CHILD_BLOCK_START
6370 10:1:0:34:Object
6371 10:4:2:GunNum
6372 10:10:0:8:SpewType
6373 10:6:0.000000:Mass
6374 10:6:0.000000:Drag
6375 10:15:65536:PhysicsFlags
6376 10:5:0:IsRealObject
6377 10:6:14.000000:BlobLifetime
6378 10:6:0.300000:BlobInterval
6379 10:6:-1.000000:SpewLife
6380 10:6:200.000000:BlobSize
6381 10:6:45.000000:BlobSpeed
6382 10:5:1:Randomize
6383 10:10:0:6:SpewHandle
6384 $$CHILD_BLOCK_END
6385 08:aTurnOnSpew
6386 $$CHILD_BLOCK_START
6387 10:1:0:34:Object
6388 10:4:3:GunNum
6389 10:10:0:8:SpewType
6390 10:6:0.000000:Mass
6391 10:6:0.000000:Drag
6392 10:15:65536:PhysicsFlags
6393 10:5:0:IsRealObject
6394 10:6:14.000000:BlobLifetime
6395 10:6:0.300000:BlobInterval
6396 10:6:-1.000000:SpewLife
6397 10:6:200.000000:BlobSize
6398 10:6:45.000000:BlobSpeed
6399 10:5:1:Randomize
6400 10:10:0:6:SpewHandle
6401 $$CHILD_BLOCK_END
6402 08:aTurnOnSpew
6403 $$CHILD_BLOCK_START
6404 10:1:0:34:Object
6405 10:4:4:GunNum
6406 10:10:0:8:SpewType
6407 10:6:0.000000:Mass
6408 10:6:0.000000:Drag
6409 10:15:65536:PhysicsFlags
6410 10:5:0:IsRealObject
6411 10:6:14.000000:BlobLifetime
6412 10:6:0.300000:BlobInterval
6413 10:6:-1.000000:SpewLife
6414 10:6:200.000000:BlobSize
6415 10:6:45.000000:BlobSpeed
6416 10:5:1:Randomize
6417 10:10:0:6:SpewHandle
6418 $$CHILD_BLOCK_END
6419 08:aTurnOnSpew
6420 $$CHILD_BLOCK_START
6421 10:1:0:35:Object
6422 10:4:0:GunNum
6423 10:10:0:8:SpewType
6424 10:6:0.000000:Mass
6425 10:6:0.000000:Drag
6426 10:15:65536:PhysicsFlags
6427 10:5:0:IsRealObject
6428 10:6:14.000000:BlobLifetime
6429 10:6:0.300000:BlobInterval
6430 10:6:-1.000000:SpewLife
6431 10:6:200.000000:BlobSize
6432 10:6:45.000000:BlobSpeed
6433 10:5:1:Randomize
6434 10:10:0:6:SpewHandle
6435 $$CHILD_BLOCK_END
6436 08:aTurnOnSpew
6437 $$CHILD_BLOCK_START
6438 10:1:0:35:Object
6439 10:4:1:GunNum
6440 10:10:0:8:SpewType
6441 10:6:0.000000:Mass
6442 10:6:0.000000:Drag
6443 10:15:65536:PhysicsFlags
6444 10:5:0:IsRealObject
6445 10:6:14.000000:BlobLifetime
6446 10:6:0.300000:BlobInterval
6447 10:6:-1.000000:SpewLife
6448 10:6:200.000000:BlobSize
6449 10:6:45.000000:BlobSpeed
6450 10:5:1:Randomize
6451 10:10:0:6:SpewHandle
6452 $$CHILD_BLOCK_END
6453 08:aTurnOnSpew
6454 $$CHILD_BLOCK_START
6455 10:1:0:35:Object
6456 10:4:2:GunNum
6457 10:10:0:8:SpewType
6458 10:6:0.000000:Mass
6459 10:6:0.000000:Drag
6460 10:15:65536:PhysicsFlags
6461 10:5:0:IsRealObject
6462 10:6:14.000000:BlobLifetime
6463 10:6:0.300000:BlobInterval
6464 10:6:-1.000000:SpewLife
6465 10:6:200.000000:BlobSize
6466 10:6:45.000000:BlobSpeed
6467 10:5:1:Randomize
6468 10:10:0:6:SpewHandle
6469 $$CHILD_BLOCK_END
6470 08:aTurnOnSpew
6471 $$CHILD_BLOCK_START
6472 10:1:0:36:Object
6473 10:4:0:GunNum
6474 10:10:0:8:SpewType
6475 10:6:0.000000:Mass
6476 10:6:0.000000:Drag
6477 10:15:65536:PhysicsFlags
6478 10:5:0:IsRealObject
6479 10:6:14.000000:BlobLifetime
6480 10:6:0.300000:BlobInterval
6481 10:6:-1.000000:SpewLife
6482 10:6:200.000000:BlobSize
6483 10:6:45.000000:BlobSpeed
6484 10:5:1:Randomize
6485 10:10:0:6:SpewHandle
6486 $$CHILD_BLOCK_END
6487 08:aTurnOnSpew
6488 $$CHILD_BLOCK_START
6489 10:1:0:36:Object
6490 10:4:1:GunNum
6491 10:10:0:8:SpewType
6492 10:6:0.000000:Mass
6493 10:6:0.000000:Drag
6494 10:15:65536:PhysicsFlags
6495 10:5:0:IsRealObject
6496 10:6:14.000000:BlobLifetime
6497 10:6:0.300000:BlobInterval
6498 10:6:-1.000000:SpewLife
6499 10:6:200.000000:BlobSize
6500 10:6:45.000000:BlobSpeed
6501 10:5:1:Randomize
6502 10:10:0:6:SpewHandle
6503 $$CHILD_BLOCK_END
6504 08:aTurnOnSpew
6505 $$CHILD_BLOCK_START
6506 10:1:0:36:Object
6507 10:4:2:GunNum
6508 10:10:0:8:SpewType
6509 10:6:0.000000:Mass
6510 10:6:0.000000:Drag
6511 10:15:65536:PhysicsFlags
6512 10:5:0:IsRealObject
6513 10:6:14.000000:BlobLifetime
6514 10:6:0.300000:BlobInterval
6515 10:6:-1.000000:SpewLife
6516 10:6:200.000000:BlobSize
6517 10:6:45.000000:BlobSpeed
6518 10:5:1:Randomize
6519 10:10:0:6:SpewHandle
6520 $$CHILD_BLOCK_END
6521 08:aTurnOnSpew
6522 $$CHILD_BLOCK_START
6523 10:1:0:36:Object
6524 10:4:3:GunNum
6525 10:10:0:8:SpewType
6526 10:6:0.000000:Mass
6527 10:6:0.000000:Drag
6528 10:15:65536:PhysicsFlags
6529 10:5:0:IsRealObject
6530 10:6:14.000000:BlobLifetime
6531 10:6:0.300000:BlobInterval
6532 10:6:-1.000000:SpewLife
6533 10:6:200.000000:BlobSize
6534 10:6:45.000000:BlobSpeed
6535 10:5:1:Randomize
6536 10:10:0:6:SpewHandle
6537 $$CHILD_BLOCK_END
6538 08:aTurnOnSpew
6539 $$CHILD_BLOCK_START
6540 10:1:0:36:Object
6541 10:4:4:GunNum
6542 10:10:0:8:SpewType
6543 10:6:0.000000:Mass
6544 10:6:0.000000:Drag
6545 10:15:65536:PhysicsFlags
6546 10:5:0:IsRealObject
6547 10:6:14.000000:BlobLifetime
6548 10:6:0.300000:BlobInterval
6549 10:6:-1.000000:SpewLife
6550 10:6:200.000000:BlobSize
6551 10:6:45.000000:BlobSpeed
6552 10:5:1:Randomize
6553 10:10:0:6:SpewHandle
6554 $$CHILD_BLOCK_END
6555 08:aTurnOnSpew
6556 $$CHILD_BLOCK_START
6557 10:1:0:36:Object
6558 10:4:5:GunNum
6559 10:10:0:8:SpewType
6560 10:6:0.000000:Mass
6561 10:6:0.000000:Drag
6562 10:15:65536:PhysicsFlags
6563 10:5:0:IsRealObject
6564 10:6:14.000000:BlobLifetime
6565 10:6:0.300000:BlobInterval
6566 10:6:-1.000000:SpewLife
6567 10:6:200.000000:BlobSize
6568 10:6:45.000000:BlobSpeed
6569 10:5:1:Randomize
6570 10:10:0:6:SpewHandle
6571 $$CHILD_BLOCK_END
6572 $$CHILD_BLOCK_END
6573 $$CHILD_BLOCK_END
6574 00:52:Intro Camera
6575 $$CHILD_BLOCK_START
6576 01:2:0
6577 02:6
6578 03:0
6579 $$CHILD_BLOCK_START
6580 05:0
6581 $$CHILD_BLOCK_END
6582 04:0:0:0
6583 $$CHILD_BLOCK_START
6584 08:aCinematicIntro
6585 $$CHILD_BLOCK_START
6586 10:16:7:CameraPath
6587 10:8:IntroCameraText:Text
6588 10:1:0:32:TotallyNotUsedTarget
6589 10:16:8:PlayerPath
6590 10:6:8.000000:Seconds
6591 $$CHILD_BLOCK_END
6592 08:aSoundPlaySteaming
6593 $$CHILD_BLOCK_START
6594 10:19:0:Sound
6595 10:9:1.000000:Volume
6596 $$CHILD_BLOCK_END
6597 $$CHILD_BLOCK_END
6598 $$CHILD_BLOCK_END
6599 00:58:Music Start Intro
6600 $$CHILD_BLOCK_START
6601 01:2:0
6602 02:6
6603 03:0
6604 $$CHILD_BLOCK_START
6605 05:0
6606 $$CHILD_BLOCK_END
6607 04:0:0:0
6608 $$CHILD_BLOCK_START
6609 08:aMusicSetRegionAll
6610 $$CHILD_BLOCK_START
6611 10:10:0:1:Region
6612 $$CHILD_BLOCK_END
6613 $$CHILD_BLOCK_END
6614 $$CHILD_BLOCK_END
6615 00:59:Music Outside Init
6616 $$CHILD_BLOCK_START
6617 01:2:0
6618 02:28
6619 03:0
6620 $$CHILD_BLOCK_START
6621 05:0
6622 $$CHILD_BLOCK_END
6623 04:0:0:0
6624 $$CHILD_BLOCK_START
6625 08:aMusicSetRegionAll
6626 $$CHILD_BLOCK_START
6627 10:10:0:1:Region
6628 $$CHILD_BLOCK_END
6629 $$CHILD_BLOCK_END
6630 $$CHILD_BLOCK_END
6631 00:63:Music-Outside-4
6632 $$CHILD_BLOCK_START
6633 01:0:11
6634 02:1
6635 03:0
6636 $$CHILD_BLOCK_START
6637 05:0
6638 $$CHILD_BLOCK_END
6639 04:0:0:0
6640 $$CHILD_BLOCK_START
6641 08:aMusicSetRegion
6642 $$CHILD_BLOCK_START
6643 10:10:0:1:Region
6644 10:1:1:-1:PlayerObject
6645 $$CHILD_BLOCK_END
6646 $$CHILD_BLOCK_END
6647 $$CHILD_BLOCK_END
6648 00:62:Music-Outside-3
6649 $$CHILD_BLOCK_START
6650 01:0:12
6651 02:1
6652 03:0
6653 $$CHILD_BLOCK_START
6654 05:0
6655 $$CHILD_BLOCK_END
6656 04:0:0:0
6657 $$CHILD_BLOCK_START
6658 08:aMusicSetRegion
6659 $$CHILD_BLOCK_START
6660 10:10:0:1:Region
6661 10:1:1:-1:PlayerObject
6662 $$CHILD_BLOCK_END
6663 $$CHILD_BLOCK_END
6664 $$CHILD_BLOCK_END
6665 00:61:Music-Outside-2
6666 $$CHILD_BLOCK_START
6667 01:0:13
6668 02:1
6669 03:0
6670 $$CHILD_BLOCK_START
6671 05:0
6672 $$CHILD_BLOCK_END
6673 04:0:0:0
6674 $$CHILD_BLOCK_START
6675 08:aMusicSetRegion
6676 $$CHILD_BLOCK_START
6677 10:10:0:1:Region
6678 10:1:1:-1:PlayerObject
6679 $$CHILD_BLOCK_END
6680 $$CHILD_BLOCK_END
6681 $$CHILD_BLOCK_END
6682 00:60:Music-Outside-1
6683 $$CHILD_BLOCK_START
6684 01:0:14
6685 02:1
6686 03:0
6687 $$CHILD_BLOCK_START
6688 05:0
6689 $$CHILD_BLOCK_END
6690 04:0:0:0
6691 $$CHILD_BLOCK_START
6692 08:aMusicSetRegion
6693 $$CHILD_BLOCK_START
6694 10:10:0:1:Region
6695 10:1:1:-1:PlayerObject
6696 $$CHILD_BLOCK_END
6697 $$CHILD_BLOCK_END
6698 $$CHILD_BLOCK_END
6699 00:77:Music-Boss-1
6700 $$CHILD_BLOCK_START
6701 01:0:15
6702 02:1
6703 03:0
6704 $$CHILD_BLOCK_START
6705 05:0
6706 $$CHILD_BLOCK_END
6707 04:0:0:0
6708 $$CHILD_BLOCK_START
6709 08:aMusicSetRegion
6710 $$CHILD_BLOCK_START
6711 10:10:0:5:Region
6712 10:1:1:-1:PlayerObject
6713 $$CHILD_BLOCK_END
6714 $$CHILD_BLOCK_END
6715 $$CHILD_BLOCK_END
6716 00:76:Music-Central-6
6717 $$CHILD_BLOCK_START
6718 01:0:16
6719 02:1
6720 03:0
6721 $$CHILD_BLOCK_START
6722 05:0
6723 $$CHILD_BLOCK_END
6724 04:0:0:0
6725 $$CHILD_BLOCK_START
6726 08:aMusicSetRegion
6727 $$CHILD_BLOCK_START
6728 10:10:0:3:Region
6729 10:1:1:-1:PlayerObject
6730 $$CHILD_BLOCK_END
6731 $$CHILD_BLOCK_END
6732 $$CHILD_BLOCK_END
6733 00:75:Music-Central-5
6734 $$CHILD_BLOCK_START
6735 01:0:17
6736 02:1
6737 03:0
6738 $$CHILD_BLOCK_START
6739 05:0
6740 $$CHILD_BLOCK_END
6741 04:0:0:0
6742 $$CHILD_BLOCK_START
6743 08:aMusicSetRegion
6744 $$CHILD_BLOCK_START
6745 10:10:0:3:Region
6746 10:1:1:-1:PlayerObject
6747 $$CHILD_BLOCK_END
6748 $$CHILD_BLOCK_END
6749 $$CHILD_BLOCK_END
6750 00:74:Music-Central-4
6751 $$CHILD_BLOCK_START
6752 01:0:18
6753 02:1
6754 03:0
6755 $$CHILD_BLOCK_START
6756 05:0
6757 $$CHILD_BLOCK_END
6758 04:0:0:0
6759 $$CHILD_BLOCK_START
6760 08:aMusicSetRegion
6761 $$CHILD_BLOCK_START
6762 10:10:0:3:Region
6763 10:1:1:-1:PlayerObject
6764 $$CHILD_BLOCK_END
6765 $$CHILD_BLOCK_END
6766 $$CHILD_BLOCK_END
6767 00:73:Music-Central-3
6768 $$CHILD_BLOCK_START
6769 01:0:19
6770 02:1
6771 03:0
6772 $$CHILD_BLOCK_START
6773 05:0
6774 $$CHILD_BLOCK_END
6775 04:0:0:0
6776 $$CHILD_BLOCK_START
6777 08:aMusicSetRegion
6778 $$CHILD_BLOCK_START
6779 10:10:0:3:Region
6780 10:1:1:-1:PlayerObject
6781 $$CHILD_BLOCK_END
6782 $$CHILD_BLOCK_END
6783 $$CHILD_BLOCK_END
6784 00:72:Music-Central-2
6785 $$CHILD_BLOCK_START
6786 01:0:20
6787 02:1
6788 03:0
6789 $$CHILD_BLOCK_START
6790 05:0
6791 $$CHILD_BLOCK_END
6792 04:0:0:0
6793 $$CHILD_BLOCK_START
6794 08:aMusicSetRegion
6795 $$CHILD_BLOCK_START
6796 10:10:0:3:Region
6797 10:1:1:-1:PlayerObject
6798 $$CHILD_BLOCK_END
6799 $$CHILD_BLOCK_END
6800 $$CHILD_BLOCK_END
6801 00:71:Music-Central-1
6802 $$CHILD_BLOCK_START
6803 01:0:21
6804 02:1
6805 03:0
6806 $$CHILD_BLOCK_START
6807 05:0
6808 $$CHILD_BLOCK_END
6809 04:0:0:0
6810 $$CHILD_BLOCK_START
6811 08:aMusicSetRegion
6812 $$CHILD_BLOCK_START
6813 10:10:0:3:Region
6814 10:1:1:-1:PlayerObject
6815 $$CHILD_BLOCK_END
6816 $$CHILD_BLOCK_END
6817 $$CHILD_BLOCK_END
6818 00:70:Music-East-5
6819 $$CHILD_BLOCK_START
6820 01:0:22
6821 02:1
6822 03:0
6823 $$CHILD_BLOCK_START
6824 05:0
6825 $$CHILD_BLOCK_END
6826 04:0:0:0
6827 $$CHILD_BLOCK_START
6828 08:aMusicSetRegion
6829 $$CHILD_BLOCK_START
6830 10:10:0:2:Region
6831 10:1:1:-1:PlayerObject
6832 $$CHILD_BLOCK_END
6833 $$CHILD_BLOCK_END
6834 $$CHILD_BLOCK_END
6835 00:69:Music-East-4
6836 $$CHILD_BLOCK_START
6837 01:0:23
6838 02:1
6839 03:0
6840 $$CHILD_BLOCK_START
6841 05:0
6842 $$CHILD_BLOCK_END
6843 04:0:0:0
6844 $$CHILD_BLOCK_START
6845 08:aMusicSetRegion
6846 $$CHILD_BLOCK_START
6847 10:10:0:2:Region
6848 10:1:1:-1:PlayerObject
6849 $$CHILD_BLOCK_END
6850 $$CHILD_BLOCK_END
6851 $$CHILD_BLOCK_END
6852 00:68:Music-East-3
6853 $$CHILD_BLOCK_START
6854 01:0:24
6855 02:1
6856 03:0
6857 $$CHILD_BLOCK_START
6858 05:0
6859 $$CHILD_BLOCK_END
6860 04:0:0:0
6861 $$CHILD_BLOCK_START
6862 08:aMusicSetRegion
6863 $$CHILD_BLOCK_START
6864 10:10:0:2:Region
6865 10:1:1:-1:PlayerObject
6866 $$CHILD_BLOCK_END
6867 $$CHILD_BLOCK_END
6868 $$CHILD_BLOCK_END
6869 00:67:Music-East-2
6870 $$CHILD_BLOCK_START
6871 01:0:25
6872 02:1
6873 03:0
6874 $$CHILD_BLOCK_START
6875 05:0
6876 $$CHILD_BLOCK_END
6877 04:0:0:0
6878 $$CHILD_BLOCK_START
6879 08:aMusicSetRegion
6880 $$CHILD_BLOCK_START
6881 10:10:0:2:Region
6882 10:1:1:-1:PlayerObject
6883 $$CHILD_BLOCK_END
6884 $$CHILD_BLOCK_END
6885 $$CHILD_BLOCK_END
6886 00:66:Music-East-1
6887 $$CHILD_BLOCK_START
6888 01:0:26
6889 02:1
6890 03:0
6891 $$CHILD_BLOCK_START
6892 05:0
6893 $$CHILD_BLOCK_END
6894 04:0:0:0
6895 $$CHILD_BLOCK_START
6896 08:aMusicSetRegion
6897 $$CHILD_BLOCK_START
6898 10:10:0:2:Region
6899 10:1:1:-1:PlayerObject
6900 $$CHILD_BLOCK_END
6901 $$CHILD_BLOCK_END
6902 $$CHILD_BLOCK_END
6903 00:65:Music-West-2
6904 $$CHILD_BLOCK_START
6905 01:0:27
6906 02:1
6907 03:0
6908 $$CHILD_BLOCK_START
6909 05:0
6910 $$CHILD_BLOCK_END
6911 04:0:0:0
6912 $$CHILD_BLOCK_START
6913 08:aMusicSetRegion
6914 $$CHILD_BLOCK_START
6915 10:10:0:4:Region
6916 10:1:1:-1:PlayerObject
6917 $$CHILD_BLOCK_END
6918 $$CHILD_BLOCK_END
6919 $$CHILD_BLOCK_END
6920 00:64:Music-West-1
6921 $$CHILD_BLOCK_START
6922 01:0:28
6923 02:1
6924 03:0
6925 $$CHILD_BLOCK_START
6926 05:0
6927 $$CHILD_BLOCK_END
6928 04:0:0:0
6929 $$CHILD_BLOCK_START
6930 08:aMusicSetRegion
6931 $$CHILD_BLOCK_START
6932 10:10:0:4:Region
6933 10:1:1:-1:PlayerObject
6934 $$CHILD_BLOCK_END
6935 $$CHILD_BLOCK_END
6936 $$CHILD_BLOCK_END
6937 00:78:Pre-Boss Player Cinematic
6938 $$CHILD_BLOCK_START
6939 01:0:29
6940 02:1
6941 03:0
6942 $$CHILD_BLOCK_START
6943 05:1
6944 $$CHILD_BLOCK_START
6945 06:qObjIsPlayer:Bool
6946 $$CHILD_BLOCK_START
6947 10:1:1:-1:Object
6948 $$CHILD_BLOCK_END
6949 07:0:6
6950 $$CHILD_BLOCK_END
6951 $$CHILD_BLOCK_END
6952 04:0:0:0
6953 $$CHILD_BLOCK_START
6954 08:aUserFlagSet
6955 $$CHILD_BLOCK_START
6956 10:10:0:19:UserFlag
6957 10:5:1:True/False
6958 $$CHILD_BLOCK_END
6959 08:aCinematicIntro
6960 $$CHILD_BLOCK_START
6961 10:16:9:CameraPath
6962 10:8:BLANK:Text
6963 10:1:0:0:TotallyNotUsedTarget
6964 10:16:10:PlayerPath
6965 10:6:15.000000:Seconds
6966 $$CHILD_BLOCK_END
6967 $$CHILD_BLOCK_END
6968 $$CHILD_BLOCK_END
6969 00:79:Pre-Boss Cinematic Finished
6970 $$CHILD_BLOCK_START
6971 01:2:0
6972 02:28
6973 03:0
6974 $$CHILD_BLOCK_START
6975 05:1
6976 $$CHILD_BLOCK_START
6977 06:qUserFlag:Bool
6978 $$CHILD_BLOCK_START
6979 10:10:0:19:UserFlag
6980 $$CHILD_BLOCK_END
6981 07:0:6
6982 $$CHILD_BLOCK_END
6983 $$CHILD_BLOCK_END
6984 04:0:0:0
6985 $$CHILD_BLOCK_START
6986 08:aUserFlagSet
6987 $$CHILD_BLOCK_START
6988 10:10:0:19:UserFlag
6989 10:5:0:True/False
6990 $$CHILD_BLOCK_END
6991 08:aCinematicSimple
6992 $$CHILD_BLOCK_START
6993 10:16:11:CameraPath
6994 10:8:HellionIntroduction:Text
6995 10:1:0:32:Target
6996 10:6:12.000000:Seconds
6997 10:5:1:FadeIn
6998 $$CHILD_BLOCK_END
6999 $$CHILD_BLOCK_END
7000 $$CHILD_BLOCK_END
7001 00:82:The Fan Destroyed
7002 $$CHILD_BLOCK_START
7003 01:1:37
7004 02:4
7005 03:0
7006 $$CHILD_BLOCK_START
7007 05:0
7008 $$CHILD_BLOCK_END
7009 04:0:0:0
7010 $$CHILD_BLOCK_START
7011 08:aRoomSetWind
7012 $$CHILD_BLOCK_START
7013 10:2:11:Room
7014 10:6:0.000000:X
7015 10:6:0.000000:Y
7016 10:6:0.000000:Z
7017 10:6:1.000000:Speed
7018 $$CHILD_BLOCK_END
7019 $$CHILD_BLOCK_END
7020 $$CHILD_BLOCK_END
7021 00:81:The Fan Kill
7022 $$CHILD_BLOCK_START
7023 01:1:37
7024 02:0
7025 03:0
7026 $$CHILD_BLOCK_START
7027 05:1
7028 $$CHILD_BLOCK_START
7029 06:qObjIsPlayer:Bool
7030 $$CHILD_BLOCK_START
7031 10:1:1:-1:Object
7032 $$CHILD_BLOCK_END
7033 07:0:6
7034 $$CHILD_BLOCK_END
7035 $$CHILD_BLOCK_END
7036 04:0:0:0
7037 $$CHILD_BLOCK_START
7038 08:aObjApplyDamage
7039 $$CHILD_BLOCK_START
7040 10:1:1:-1:Object
7041 10:6:0.250000:DamageAmount
7042 $$CHILD_BLOCK_END
7043 $$CHILD_BLOCK_END
7044 $$CHILD_BLOCK_END
7045 00:80:The Fan Start
7046 $$CHILD_BLOCK_START
7047 01:2:0
7048 02:6
7049 03:0
7050 $$CHILD_BLOCK_START
7051 05:0
7052 $$CHILD_BLOCK_END
7053 04:0:0:0
7054 $$CHILD_BLOCK_START
7055 08:aRoomSetWind
7056 $$CHILD_BLOCK_START
7057 10:2:11:Room
7058 10:6:0.000000:X
7059 10:6:-1.000000:Y
7060 10:6:0.000000:Z
7061 10:6:10.000000:Speed
7062 $$CHILD_BLOCK_END
7063 $$CHILD_BLOCK_END
7064 $$CHILD_BLOCK_END
7065 00:83:Weather Start
7066 $$CHILD_BLOCK_START
7067 01:2:0
7068 02:6
7069 03:0
7070 $$CHILD_BLOCK_START
7071 05:0
7072 $$CHILD_BLOCK_END
7073 04:0:0:0
7074 $$CHILD_BLOCK_START
7075 08:aLightningTurnOn
7076 $$CHILD_BLOCK_START
7077 10:6:1.000000:Seconds
7078 10:9:0.500000:Probability
7079 $$CHILD_BLOCK_END
7080 08:aRainTurnOn
7081 $$CHILD_BLOCK_START
7082 10:9:0.500000:Density
7083 $$CHILD_BLOCK_END
7084 08:aSetLevelTimer
7085 $$CHILD_BLOCK_START
7086 06:qRandomValue:Time
7087 $$CHILD_BLOCK_START
7088 10:6:2.000000:LowerLimit
7089 10:6:15.000000:UpperLimit
7090 $$CHILD_BLOCK_END
7091 10:10:0:3:TimerID
7092 $$CHILD_BLOCK_END
7093 $$CHILD_BLOCK_END
7094 $$CHILD_BLOCK_END
7095 00:85:Major Eruption Tremor
7096 $$CHILD_BLOCK_START
7097 01:2:0
7098 02:9
7099 03:0
7100 $$CHILD_BLOCK_START
7101 05:2
7102 $$CHILD_BLOCK_START
7103 10:10:0:4:TimerID
7104 07:1:0
7105 10:10:2:0:TimerID
7106 $$CHILD_BLOCK_END
7107 $$CHILD_BLOCK_END
7108 04:0:0:0
7109 $$CHILD_BLOCK_START
7110 08:aMiscViewerShake
7111 $$CHILD_BLOCK_START
7112 06:qRandomValue:Amount
7113 $$CHILD_BLOCK_START
7114 10:6:40.000000:LowerLimit
7115 10:6:100.000000:UpperLimit
7116 $$CHILD_BLOCK_END
7117 $$CHILD_BLOCK_END
7118 08:aSoundPlay2D
7119 $$CHILD_BLOCK_START
7120 10:12:2:Sound
7121 10:9:1.000000:Volume
7122 $$CHILD_BLOCK_END
7123 08:aSetLevelTimer
7124 $$CHILD_BLOCK_START
7125 06:qRandomValue:Time
7126 $$CHILD_BLOCK_START
7127 10:6:5.000000:LowerLimit
7128 10:6:15.000000:UpperLimit
7129 $$CHILD_BLOCK_END
7130 10:10:0:3:TimerID
7131 $$CHILD_BLOCK_END
7132 $$CHILD_BLOCK_END
7133 $$CHILD_BLOCK_END
7134 00:84:Minor Eruption Tremor
7135 $$CHILD_BLOCK_START
7136 01:2:0
7137 02:9
7138 03:0
7139 $$CHILD_BLOCK_START
7140 05:2
7141 $$CHILD_BLOCK_START
7142 10:10:0:3:TimerID
7143 07:1:0
7144 10:10:2:0:TimerID
7145 $$CHILD_BLOCK_END
7146 $$CHILD_BLOCK_END
7147 04:0:0:0
7148 $$CHILD_BLOCK_START
7149 08:aMiscViewerShake
7150 $$CHILD_BLOCK_START
7151 06:qRandomValue:Amount
7152 $$CHILD_BLOCK_START
7153 10:6:10.000000:LowerLimit
7154 10:6:50.000000:UpperLimit
7155 $$CHILD_BLOCK_END
7156 $$CHILD_BLOCK_END
7157 08:aSoundPlay2D
7158 $$CHILD_BLOCK_START
7159 10:12:3:Sound
7160 10:9:0.500000:Volume
7161 $$CHILD_BLOCK_END
7162 08:aSetLevelTimer
7163 $$CHILD_BLOCK_START
7164 06:qRandomValue:Time
7165 $$CHILD_BLOCK_START
7166 10:6:10.000000:LowerLimit
7167 10:6:30.000000:UpperLimit
7168 $$CHILD_BLOCK_END
7169 10:10:0:4:TimerID
7170 $$CHILD_BLOCK_END
7171 $$CHILD_BLOCK_END
7172 $$CHILD_BLOCK_END
7173 00:90:Rotating Lights
7174 $$CHILD_BLOCK_START
7175 01:2:0
7176 02:6
7177 03:0
7178 $$CHILD_BLOCK_START
7179 05:0
7180 $$CHILD_BLOCK_END
7181 04:0:0:0
7182 $$CHILD_BLOCK_START
7183 08:aObjPlayAnim
7184 $$CHILD_BLOCK_START
7185 10:1:0:38:Object
7186 10:4:0:StartFrame
7187 10:4:64:EndFrame
7188 10:6:1.000000:CycleTime
7189 10:5:1:Looping
7190 $$CHILD_BLOCK_END
7191 08:aObjPlayAnim
7192 $$CHILD_BLOCK_START
7193 10:1:0:39:Object
7194 10:4:0:StartFrame
7195 10:4:64:EndFrame
7196 10:6:1.000000:CycleTime
7197 10:5:1:Looping
7198 $$CHILD_BLOCK_END
7199 $$CHILD_BLOCK_END
7200 $$CHILD_BLOCK_END
7201 00:35:Locate Back-up Reactor Goal Completed
7202 $$CHILD_BLOCK_START
7203 01:2:0
7204 02:5
7205 03:0
7206 $$CHILD_BLOCK_START
7207 05:1
7208 $$CHILD_BLOCK_START
7209 06:qRoomHasPlayer:Bool
7210 $$CHILD_BLOCK_START
7211 10:2:12:Room
7212 $$CHILD_BLOCK_END
7213 07:0:6
7214 $$CHILD_BLOCK_END
7215 $$CHILD_BLOCK_END
7216 04:0:0:1
7217 $$CHILD_BLOCK_START
7218 08:aGoalCompleted
7219 $$CHILD_BLOCK_START
7220 10:18:0:2:LevelGoal
7221 10:10:0:1:Completed
7222 $$CHILD_BLOCK_END
7223 $$CHILD_BLOCK_END
7224 $$CHILD_BLOCK_END
7225
7226 $$SCRIPT_BLOCK_END
7227 *********************************************************/