Debian Codegraph @

scripts/LevelS1.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: levels1.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_0804 0x001
57
58 #define ID_TRIGGER_0002 0x002
59 #define ID_TRIGGER_0004 0x003
60 #define ID_TRIGGER_0003 0x004
61 #define ID_TRIGGER_0007 0x005
62 #define ID_TRIGGER_0006 0x006
63 #define ID_TRIGGER_0005 0x007
64
65 // ========================
66 // Script Class Definitions
67 // ========================
68
69 class BaseScript {
70 public:
71 BaseScript();
72 ~BaseScript();
73 virtual int16_t CallEvent(int event, tOSIRISEventInfo *data);
74 };
75
76 class LevelScript_0000 : public BaseScript {
77 public:
78 int16_t CallEvent(int event, tOSIRISEventInfo *data);
79 };
80
81 class CustomObjectScript_0804 : public BaseScript {
82 public:
83 int16_t CallEvent(int event, tOSIRISEventInfo *data);
84 };
85
86 class TriggerScript_0002 : public BaseScript {
87 public:
88 int16_t CallEvent(int event, tOSIRISEventInfo *data);
89 };
90
91 class TriggerScript_0004 : public BaseScript {
92 public:
93 int16_t CallEvent(int event, tOSIRISEventInfo *data);
94 };
95
96 class TriggerScript_0003 : public BaseScript {
97 public:
98 int16_t CallEvent(int event, tOSIRISEventInfo *data);
99 };
100
101 class TriggerScript_0007 : public BaseScript {
102 public:
103 int16_t CallEvent(int event, tOSIRISEventInfo *data);
104 };
105
106 class TriggerScript_0006 : public BaseScript {
107 public:
108 int16_t CallEvent(int event, tOSIRISEventInfo *data);
109 };
110
111 class TriggerScript_0005 : public BaseScript {
112 public:
113 int16_t CallEvent(int event, tOSIRISEventInfo *data);
114 };
115
116 // ======================
117 // Global Action Counters
118 // ======================
119
120 #define MAX_ACTION_CTR_VALUE 100000
121
122 int ScriptActionCtr_001 = 0;
123 int ScriptActionCtr_004 = 0;
124 int ScriptActionCtr_007 = 0;
125 int ScriptActionCtr_010 = 0;
126 int ScriptActionCtr_009 = 0;
127 int ScriptActionCtr_011 = 0;
128 int ScriptActionCtr_003 = 0;
129 int ScriptActionCtr_014 = 0;
130 int ScriptActionCtr_015 = 0;
131 int ScriptActionCtr_016 = 0;
132 int ScriptActionCtr_019 = 0;
133 int ScriptActionCtr_000 = 0;
134 int ScriptActionCtr_017 = 0;
135 int ScriptActionCtr_002 = 0;
136 int ScriptActionCtr_008 = 0;
137 int ScriptActionCtr_006 = 0;
138 int ScriptActionCtr_005 = 0;
139 int ScriptActionCtr_012 = 0;
140
141 // ========================================
142 // Function to Clear Global Action Counters
143 // ========================================
144 void ClearGlobalActionCtrs(void) {
145 ScriptActionCtr_001 = 0;
146 ScriptActionCtr_004 = 0;
147 ScriptActionCtr_007 = 0;
148 ScriptActionCtr_010 = 0;
149 ScriptActionCtr_009 = 0;
150 ScriptActionCtr_011 = 0;
151 ScriptActionCtr_003 = 0;
152 ScriptActionCtr_014 = 0;
153 ScriptActionCtr_015 = 0;
154 ScriptActionCtr_016 = 0;
155 ScriptActionCtr_019 = 0;
156 ScriptActionCtr_000 = 0;
157 ScriptActionCtr_017 = 0;
158 ScriptActionCtr_002 = 0;
159 ScriptActionCtr_008 = 0;
160 ScriptActionCtr_006 = 0;
161 ScriptActionCtr_005 = 0;
162 ScriptActionCtr_012 = 0;
163 }
164
165 // ========================================
166 // Function to Save Global Action Counters
167 // ========================================
168 void SaveGlobalActionCtrs(void *file_ptr) {
169 File_WriteInt(ScriptActionCtr_001, file_ptr);
170 File_WriteInt(ScriptActionCtr_004, file_ptr);
171 File_WriteInt(ScriptActionCtr_007, file_ptr);
172 File_WriteInt(ScriptActionCtr_010, file_ptr);
173 File_WriteInt(ScriptActionCtr_009, file_ptr);
174 File_WriteInt(ScriptActionCtr_011, file_ptr);
175 File_WriteInt(ScriptActionCtr_003, file_ptr);
176 File_WriteInt(ScriptActionCtr_014, file_ptr);
177 File_WriteInt(ScriptActionCtr_015, file_ptr);
178 File_WriteInt(ScriptActionCtr_016, file_ptr);
179 File_WriteInt(ScriptActionCtr_019, file_ptr);
180 File_WriteInt(ScriptActionCtr_000, file_ptr);
181 File_WriteInt(ScriptActionCtr_017, file_ptr);
182 File_WriteInt(ScriptActionCtr_002, file_ptr);
183 File_WriteInt(ScriptActionCtr_008, file_ptr);
184 File_WriteInt(ScriptActionCtr_006, file_ptr);
185 File_WriteInt(ScriptActionCtr_005, file_ptr);
186 File_WriteInt(ScriptActionCtr_012, file_ptr);
187 }
188
189 // ===========================================
190 // Function to Restore Global Action Counters
191 // ===========================================
192 void RestoreGlobalActionCtrs(void *file_ptr) {
193 ScriptActionCtr_001 = File_ReadInt(file_ptr);
194 ScriptActionCtr_004 = File_ReadInt(file_ptr);
195 ScriptActionCtr_007 = File_ReadInt(file_ptr);
196 ScriptActionCtr_010 = File_ReadInt(file_ptr);
197 ScriptActionCtr_009 = File_ReadInt(file_ptr);
198 ScriptActionCtr_011 = File_ReadInt(file_ptr);
199 ScriptActionCtr_003 = File_ReadInt(file_ptr);
200 ScriptActionCtr_014 = File_ReadInt(file_ptr);
201 ScriptActionCtr_015 = File_ReadInt(file_ptr);
202 ScriptActionCtr_016 = File_ReadInt(file_ptr);
203 ScriptActionCtr_019 = File_ReadInt(file_ptr);
204 ScriptActionCtr_000 = File_ReadInt(file_ptr);
205 ScriptActionCtr_017 = File_ReadInt(file_ptr);
206 ScriptActionCtr_002 = File_ReadInt(file_ptr);
207 ScriptActionCtr_008 = File_ReadInt(file_ptr);
208 ScriptActionCtr_006 = File_ReadInt(file_ptr);
209 ScriptActionCtr_005 = File_ReadInt(file_ptr);
210 ScriptActionCtr_012 = File_ReadInt(file_ptr);
211 }
212
213 // ===============================================================
214 // Start of Custom Script Block - DO NOT EDIT ANYTHING BEFORE THIS
215 // ===============================================================
216 /**{CUSTOM_SCRIPT_BLOCK_START}** DO NOT EDIT! **/
217
218 // Enter your custom script code here
219 /*
220 $$ENUM Region
221 0:Intro
222 1:Main
223 2:Area 3
224 3:Area 2
225 4:Area 1
226 $$END
227 */
228
229 /**{CUSTOM_SCRIPT_BLOCK_END}**** DO NOT EDIT! **/
230 // ============================================================
231 // End of Custom Script Block - DO NOT EDIT ANYTHING AFTER THIS
232 // ============================================================
233
234 // =================
235 // Message File Data
236 // =================
237
238 #define MAX_SCRIPT_MESSAGES 256
239 #define MAX_MSG_FILEBUF_LEN 1024
240 #define NO_MESSAGE_STRING "*Message Not Found*"
241 #define INV_MSGNAME_STRING "*Message Name Invalid*"
242 #define WHITESPACE_CHARS " \t\r\n"
243
244 // Structure for storing a script message
245 struct tScriptMessage {
246 char *name; // the name of the message
247 char *message; // the actual message text
248 };
249
250 // Global storage for level script messages
251 tScriptMessage *message_list[MAX_SCRIPT_MESSAGES];
252 int num_messages;
253
254 // ======================
255 // Message File Functions
256 // ======================
257
258 // Initializes the Message List
259 void InitMessageList(void) {
260 for (int j = 0; j < MAX_SCRIPT_MESSAGES; j++)
261 message_list[j] = NULL;
262 num_messages = 0;
263 }
264
265 // Clear the Message List
266 void ClearMessageList(void) {
267 for (int j = 0; j < num_messages; j++) {
268 free(message_list[j]->name);
269 free(message_list[j]->message);
270 free(message_list[j]);
271 message_list[j] = NULL;
272 }
273 num_messages = 0;
274 }
275
276 // Adds a message to the list
277 int AddMessageToList(char *name, char *msg) {
278 int pos;
279
280 // Make sure there is room in the list
281 if (num_messages >= MAX_SCRIPT_MESSAGES)
282 return false;
283
284 // Allocate memory for this message entry
285 pos = num_messages;
286 message_list[pos] = (tScriptMessage *)malloc(sizeof(tScriptMessage));
287 if (message_list[pos] == NULL)
288 return false;
289
290 // Allocate memory for the message name
291 message_list[pos]->name = (char *)malloc(strlen(name) + 1);
292 if (message_list[pos]->name == NULL) {
293 free(message_list[pos]);
294 return false;
295 }
296 strcpy(message_list[pos]->name, name);
297
298 // Allocate memory for the message name
299 message_list[pos]->message = (char *)malloc(strlen(msg) + 1);
300 if (message_list[pos]->message == NULL) {
301 free(message_list[pos]->name);
302 free(message_list[pos]);
303 return false;
304 }
305 strcpy(message_list[pos]->message, msg);
306 num_messages++;
307
308 return true;
309 }
310
311 // Removes any whitespace padding from the end of a string
312 void RemoveTrailingWhitespace(char *s) {
313 int last_char_pos;
314
315 last_char_pos = strlen(s) - 1;
316 while (last_char_pos >= 0 && isspace(s[last_char_pos])) {
317 s[last_char_pos] = '\0';
318 last_char_pos--;
319 }
320 }
321
322 // Returns a pointer to the first non-whitespace char in given string
323 char *SkipInitialWhitespace(char *s) {
324 while ((*s) != '\0' && isspace(*s))
325 s++;
326
327 return (s);
328 }
329
330 // Read in the Messages
331 int ReadMessageFile(const char *filename) {
332 void *infile;
333 char filebuffer[MAX_MSG_FILEBUF_LEN + 1];
334 char *line, *msg_start;
335 int line_num;
336 bool next_msgid_found;
337
338 // Try to open the file for loading
339 infile = File_Open(filename, "rt");
340 if (!infile)
341 return false;
342
343 line_num = 0;
344 next_msgid_found = true;
345
346 // Clear the message list
347 ClearMessageList();
348
349 // Read in and parse each line of the file
350 while (!File_eof(infile)) {
351
352 // Clear the buffer
353 strcpy(filebuffer, "");
354
355 // Read in a line from the file
356 File_ReadString(filebuffer, MAX_MSG_FILEBUF_LEN, infile);
357 line_num++;
358
359 // Remove whitespace padding at start and end of line
360 RemoveTrailingWhitespace(filebuffer);
361 line = SkipInitialWhitespace(filebuffer);
362
363 // If line is a comment, or empty, discard it
364 if (strlen(line) == 0 || strncmp(line, "//", 2) == 0)
365 continue;
366
367 if (!next_msgid_found) { // Parse out the last message ID number
368
369 // Grab the first keyword, make sure it's valid
370 line = strtok(line, WHITESPACE_CHARS);
371 if (line == NULL)
372 continue;
373
374 // Grab the second keyword, and assign it as the next message ID
375 line = strtok(NULL, WHITESPACE_CHARS);
376 if (line == NULL)
377 continue;
378
379 next_msgid_found = true;
380 } else { // Parse line as a message line
381
382 // Find the start of message, and mark it
383 msg_start = strchr(line, '=');
384 if (msg_start == NULL)
385 continue;
386 msg_start[0] = '\0';
387 msg_start++;
388
389 // Add the message to the list
390 AddMessageToList(line, msg_start);
391 }
392 }
393 File_Close(infile);
394
395 return true;
396 }
397
398 // Find a message
399 const char *GetMessage(const char *name) {
400 // Make sure given name is valid
401 if (name == NULL)
402 return INV_MSGNAME_STRING;
403
404 // Search message list for name
405 for (int j = 0; j < num_messages; j++)
406 if (strcmp(message_list[j]->name, name) == 0)
407 return (message_list[j]->message);
408
409 // Couldn't find it
410 return NO_MESSAGE_STRING;
411 }
412
413 //======================
414 // Name List Arrays
415 //======================
416
417 #define NUM_DOOR_NAMES 0
418 const char **Door_names = NULL;
419 int *Door_handles = NULL;
420
421 #define NUM_OBJECT_NAMES 8
422 const char *Object_names[NUM_OBJECT_NAMES] = {"EntranceDoor", "LightningNode01", "LightningNode02", "LightningNode03",
423 "LightningNode04", "LightningNode05", "PlayerLightning", "OrbCenter"};
424 int Object_handles[NUM_OBJECT_NAMES];
425
426 #define NUM_ROOM_NAMES 8
427 const char *Room_names[NUM_ROOM_NAMES] = {"EyeballMatcen", "Tube302", "Tube202", "Tube102",
428 "Tube310", "ControlRoom", "OrbRoom", "OrbCollar"};
429 int Room_indexes[NUM_ROOM_NAMES];
430
431 #define NUM_TRIGGER_NAMES 6
432 const char *Trigger_names[NUM_TRIGGER_NAMES] = {"MainRoom1", "MainRoom3", "MainRoom2", "MArea1", "MArea2", "MArea3"};
433 int Trigger_indexes[NUM_TRIGGER_NAMES];
434 int Trigger_faces[NUM_TRIGGER_NAMES];
435 int Trigger_rooms[NUM_TRIGGER_NAMES];
436
437 #define NUM_SOUND_NAMES 2
438 const char *Sound_names[NUM_SOUND_NAMES] = {"DoorIsLocked", "Lightning"};
439 int Sound_indexes[NUM_SOUND_NAMES];
440
441 #define NUM_TEXTURE_NAMES 3
442 const char *Texture_names[NUM_TEXTURE_NAMES] = {"Reddataup", "Ready1", "FunkyEffectGreen"};
443 int Texture_indexes[NUM_TEXTURE_NAMES];
444
445 #define NUM_PATH_NAMES 2
446 const char *Path_names[NUM_PATH_NAMES] = {"EndCameraPath", "EndPlayerPath"};
447 int Path_indexes[NUM_PATH_NAMES];
448
449 #define NUM_MATCEN_NAMES 0
450 const char **Matcen_names = NULL;
451 int *Matcen_indexes = NULL;
452
453 #define NUM_GOAL_NAMES 4
454 const char *Goal_names[NUM_GOAL_NAMES] = {"Find Area 1", "Find Area 3", "Find Area 2", "Explore the hidden facility"};
455 int Goal_indexes[NUM_GOAL_NAMES];
456
457 #define NUM_MESSAGE_NAMES 8
458 const char *Message_names[NUM_MESSAGE_NAMES] = {
459 "IntroBriefingMessage", "IntroHUDmessage", "EntranceDoorMessage", "Area1", "Area3", "Area2",
460 "EndLevelMessage", "Nothing"};
461 const char *Message_strings[NUM_MESSAGE_NAMES];
462
463 // ===============
464 // InitializeDLL()
465 // ===============
466 char STDCALL InitializeDLL(tOSIRISModuleInit *func_list) {
467 osicommon_Initialize((tOSIRISModuleInit *)func_list);
468 if (func_list->game_checksum != CHECKSUM) {
469 mprintf(0, "Game-Checksum FAIL!!! (%ul!=%ul)\n", func_list->game_checksum, CHECKSUM);
470 mprintf(0, "RECOMPILE YOUR SCRIPTS!!!\n");
471 return 0;
472 }
473
474 ClearGlobalActionCtrs();
475 dfInit();
476 InitMessageList();
477
478 // Build the filename of the message file
479 char filename[_MAX_PATH + 32];
480 int lang_type;
481 if (func_list->script_identifier != NULL) {
482 _splitpath(func_list->script_identifier, NULL, NULL, filename, NULL);
483 lang_type = Game_GetLanguage();
484 if (lang_type == LANGUAGE_FRENCH)
485 strcat(filename, "_FRN");
486 else if (lang_type == LANGUAGE_GERMAN)
487 strcat(filename, "_GER");
488 else if (lang_type == LANGUAGE_ITALIAN)
489 strcat(filename, "_ITN");
490 else if (lang_type == LANGUAGE_SPANISH)
491 strcat(filename, "_SPN");
492 strcat(filename, ".msg");
493 } else {
494 strcpy(filename, "levels1.msg");
495 lang_type = LANGUAGE_ENGLISH;
496 }
497 if (!ReadMessageFile(filename)) {
498 mprintf(0, "ERROR: Could not load message file - %s\n", filename);
499 }
500
501 int j;
502
503 // Do Door Index lookups
504 for (j = 0; j < NUM_DOOR_NAMES; j++)
505 Door_handles[j] = Scrpt_FindDoorName(Door_names[j]);
506
507 // Do Object Index lookups
508 for (j = 0; j < NUM_OBJECT_NAMES; j++)
509 Object_handles[j] = Scrpt_FindObjectName(Object_names[j]);
510
511 // Do Room Index lookups
512 for (j = 0; j < NUM_ROOM_NAMES; j++)
513 Room_indexes[j] = Scrpt_FindRoomName(Room_names[j]);
514
515 // Do Trigger Index lookups
516 for (j = 0; j < NUM_TRIGGER_NAMES; j++) {
517 Trigger_indexes[j] = Scrpt_FindTriggerName(Trigger_names[j]);
518 Trigger_faces[j] = Scrpt_GetTriggerFace(Trigger_indexes[j]);
519 Trigger_rooms[j] = Scrpt_GetTriggerRoom(Trigger_indexes[j]);
520 }
521
522 // Do Sound Index lookups
523 for (j = 0; j < NUM_SOUND_NAMES; j++)
524 Sound_indexes[j] = Scrpt_FindSoundName(Sound_names[j]);
525
526 // Do Texture Index lookups
527 for (j = 0; j < NUM_TEXTURE_NAMES; j++)
528 Texture_indexes[j] = Scrpt_FindTextureName(Texture_names[j]);
529
530 // Do Path Index lookups
531 for (j = 0; j < NUM_PATH_NAMES; j++)
532 Path_indexes[j] = Scrpt_FindPathName(Path_names[j]);
533
534 // Do Matcen Index lookups
535 for (j = 0; j < NUM_MATCEN_NAMES; j++)
536 Matcen_indexes[j] = Scrpt_FindMatcenName(Matcen_names[j]);
537
538 // Do Goal Index lookups
539 for (j = 0; j < NUM_GOAL_NAMES; j++)
540 Goal_indexes[j] = Scrpt_FindLevelGoalName(Goal_names[j]);
541
542 // Do Message Name lookups
543 for (j = 0; j < NUM_MESSAGE_NAMES; j++)
544 Message_strings[j] = GetMessage(Message_names[j]);
545
546 return 1;
547 }
548
549 // =============
550 // ShutdownDLL()
551 // =============
552 void STDCALL ShutdownDLL(void) { ClearMessageList(); }
553
554 // ===============
555 // GetGOScriptID()
556 // ===============
557 int STDCALL GetGOScriptID(const char *name, uint8_t isdoor) { return -1; }
558
559 // ================
560 // CreateInstance()
561 // ================
562 void STDCALLPTR CreateInstance(int id) {
563 switch (id) {
564 case ID_LEVEL_0000:
565 return new LevelScript_0000;
566 break;
567 case ID_CUSTOM_OBJECT_0804:
568 return new CustomObjectScript_0804;
569 break;
570 case ID_TRIGGER_0002:
571 return new TriggerScript_0002;
572 break;
573 case ID_TRIGGER_0004:
574 return new TriggerScript_0004;
575 break;
576 case ID_TRIGGER_0003:
577 return new TriggerScript_0003;
578 break;
579 case ID_TRIGGER_0007:
580 return new TriggerScript_0007;
581 break;
582 case ID_TRIGGER_0006:
583 return new TriggerScript_0006;
584 break;
585 case ID_TRIGGER_0005:
586 return new TriggerScript_0005;
587 break;
588 default:
589 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
590 break;
591 }
592 return NULL;
593 }
594
595 // =================
596 // DestroyInstance()
597 // =================
598 void STDCALL DestroyInstance(int id, void *ptr) {
599 switch (id) {
600 case ID_LEVEL_0000:
601 delete ((LevelScript_0000 *)ptr);
602 break;
603 case ID_CUSTOM_OBJECT_0804:
604 delete ((CustomObjectScript_0804 *)ptr);
605 break;
606 case ID_TRIGGER_0002:
607 delete ((TriggerScript_0002 *)ptr);
608 break;
609 case ID_TRIGGER_0004:
610 delete ((TriggerScript_0004 *)ptr);
611 break;
612 case ID_TRIGGER_0003:
613 delete ((TriggerScript_0003 *)ptr);
614 break;
615 case ID_TRIGGER_0007:
616 delete ((TriggerScript_0007 *)ptr);
617 break;
618 case ID_TRIGGER_0006:
619 delete ((TriggerScript_0006 *)ptr);
620 break;
621 case ID_TRIGGER_0005:
622 delete ((TriggerScript_0005 *)ptr);
623 break;
624 default:
625 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
626 break;
627 }
628 }
629
630 // ===================
631 // CallInstanceEvent()
632 // ===================
633 int16_t STDCALL CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfo *data) {
634 switch (id) {
635 case ID_LEVEL_0000:
636 case ID_CUSTOM_OBJECT_0804:
637 case ID_TRIGGER_0002:
638 case ID_TRIGGER_0004:
639 case ID_TRIGGER_0003:
640 case ID_TRIGGER_0007:
641 case ID_TRIGGER_0006:
642 case ID_TRIGGER_0005:
643 return ((BaseScript *)ptr)->CallEvent(event, data);
644 break;
645 default:
646 mprintf(0, "SCRIPT: Illegal ID (%d)\n", id);
647 break;
648 }
649 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
650 }
651
652 // ==================
653 // SaveRestoreState()
654 // ==================
655 int STDCALL SaveRestoreState(void *file_ptr, uint8_t saving_state) { return 0; }
656
657 // ====================
658 // GetTriggerScriptID()
659 // ====================
660 int STDCALL GetTriggerScriptID(int trigger_room, int trigger_face) {
661 if (trigger_room == Trigger_rooms[0] && trigger_face == Trigger_faces[0])
662 return ID_TRIGGER_0002;
663
664 if (trigger_room == Trigger_rooms[1] && trigger_face == Trigger_faces[1])
665 return ID_TRIGGER_0004;
666
667 if (trigger_room == Trigger_rooms[2] && trigger_face == Trigger_faces[2])
668 return ID_TRIGGER_0003;
669
670 if (trigger_room == Trigger_rooms[3] && trigger_face == Trigger_faces[3])
671 return ID_TRIGGER_0007;
672
673 if (trigger_room == Trigger_rooms[4] && trigger_face == Trigger_faces[4])
674 return ID_TRIGGER_0006;
675
676 if (trigger_room == Trigger_rooms[5] && trigger_face == Trigger_faces[5])
677 return ID_TRIGGER_0005;
678
679 return -1;
680 }
681
682 // =================
683 // GetCOScriptList()
684 // =================
685 int STDCALL GetCOScriptList(int **list, int **id_list) {
686 static int cust_handle_list[1];
687 static int cust_id_list[1] = {ID_CUSTOM_OBJECT_0804};
688
689 // Fill in the custom handle list
690 cust_handle_list[0] = Object_handles[0];
691
692 *list = cust_handle_list;
693 *id_list = cust_id_list;
694
695 return 1;
696 }
697
698 //=======================
699 // Script Implementation
700 //=======================
701
702 BaseScript::BaseScript() {}
703
704 BaseScript::~BaseScript() {}
705
706 int16_t BaseScript::CallEvent(int event, tOSIRISEventInfo *data) {
707 mprintf(0, "BaseScript::CallEvent()\n");
708 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
709 }
710
711 int16_t LevelScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
712 switch (event) {
713 case EVT_SAVESTATE: {
714 tOSIRISEVTSAVESTATE *event_data = &data->evt_savestate;
715
716 SaveGlobalActionCtrs(event_data->fileptr);
717 dfSave(event_data->fileptr);
718 } break;
719 case EVT_RESTORESTATE: {
720 tOSIRISEVTRESTORESTATE *event_data = &data->evt_restorestate;
721
722 RestoreGlobalActionCtrs(event_data->fileptr);
723 dfRestore(event_data->fileptr);
724 } break;
725 case EVT_INTERVAL: {
726 tOSIRISEVTINTERVAL *event_data = &data->evt_interval;
727
728 // Script 011: AreasVisited
729 if ((ScriptActionCtr_011 < 1) && (qUserVarValueInt(4) == 3)) {
730 aGoalCompleted(Goal_indexes[3], 1);
731
732 // Increment the script action counter
733 if (ScriptActionCtr_011 < MAX_ACTION_CTR_VALUE)
734 ScriptActionCtr_011++;
735 }
736
737 // Script 016: EndLevelSequence
738 if ((ScriptActionCtr_016 < 1) && (qRoomHasPlayer(Room_indexes[6]) == 1)) {
739 aRoomSetWind(Room_indexes[7], 0.000000f, -1.000000f, 0.000000f, 20.000000f);
740 aSetLevelTimer(20.000000f, 6);
741 aSetLevelTimer(19.250000f, 7);
742 aShowHUDMessage(Message_strings[6]);
743
744 // Increment the script action counter
745 if (ScriptActionCtr_016 < MAX_ACTION_CTR_VALUE)
746 ScriptActionCtr_016++;
747 }
748
749 // Script 012: FinallevelObjectiveCompleted
750 if (qRoomHasPlayer(Room_indexes[7]) == 1) {
751 aGoalCompleted(Goal_indexes[3], 1);
752
753 // Increment the script action counter
754 if (ScriptActionCtr_012 < MAX_ACTION_CTR_VALUE)
755 ScriptActionCtr_012++;
756 }
757 } break;
758 case EVT_LEVELSTART: {
759 tOSIRISEVTLEVELSTART *event_data = &data->evt_levelstart;
760
761 ClearGlobalActionCtrs();
762 dfInit();
763
764 // Script 001: LevelStart
765 if ((ScriptActionCtr_001 < 1) && (1)) {
766 aRoomSetWind(Room_indexes[0], 0.400000f, 0.000000f, 0.100000f, 45.000000f);
767 aRoomSetWind(Room_indexes[1], 1.000000f, 0.000000f, 0.000000f, 30.000000f);
768 aRoomSetWind(Room_indexes[2], -1.000000f, 0.000000f, 0.000000f, 30.000000f);
769 aRoomSetWind(Room_indexes[3], -1.000000f, 0.000000f, 0.000000f, 30.000000f);
770 aAddGameMessage(Message_strings[0], Message_strings[1]);
771 aUserVarSet(0, 0.000000f);
772 aUserVarSet(1, 0.000000f);
773 aUserVarSet(2, 0.000000f);
774 aUserVarSet(3, 0.000000f);
775 aUserVarSet(4, 0.000000f);
776 aRoomSetWind(Room_indexes[4], -0.440000f, 0.821000f, -0.367000f, 30.000000f);
777 aSetLevelTimer(0.000000f, 5);
778 aMissionSetFlag(29, 1);
779
780 // Increment the script action counter
781 if (ScriptActionCtr_001 < MAX_ACTION_CTR_VALUE)
782 ScriptActionCtr_001++;
783 }
784
785 // Script 003: OrbLightning
786 if ((ScriptActionCtr_003 < 1) && (1)) {
787 aLightningCreate(Object_handles[1], Object_handles[2], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
788 1.000000f, 1, 222, 255, 222, 0);
789 aLightningCreate(Object_handles[1], Object_handles[3], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
790 1.000000f, 1, 222, 255, 222, 0);
791 aLightningCreate(Object_handles[1], Object_handles[4], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
792 1.000000f, 1, 222, 255, 222, 0);
793 aLightningCreate(Object_handles[2], Object_handles[3], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
794 1.000000f, 1, 222, 255, 222, 0);
795 aLightningCreate(Object_handles[2], Object_handles[4], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
796 1.000000f, 1, 222, 255, 222, 0);
797 aLightningCreate(Object_handles[2], Object_handles[5], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
798 1.000000f, 1, 222, 255, 222, 0);
799 aLightningCreate(Object_handles[3], Object_handles[4], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
800 1.000000f, 1, 222, 255, 222, 0);
801 aLightningCreate(Object_handles[3], Object_handles[5], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
802 1.000000f, 1, 222, 255, 222, 0);
803 aLightningCreate(Object_handles[3], Object_handles[1], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
804 1.000000f, 1, 222, 255, 222, 0);
805 aLightningCreate(Object_handles[4], Object_handles[5], 10000000000.000000f, 6.000000f, 1, Texture_indexes[2],
806 1.000000f, 1, 222, 255, 222, 0);
807 aLightningCreate(Object_handles[4], Object_handles[1], 10000000000.000000f, 6.000000f, 1, Texture_indexes[2],
808 1.000000f, 1, 222, 255, 222, 0);
809 aLightningCreate(Object_handles[4], Object_handles[2], 10000000000.000000f, 6.000000f, 1, Texture_indexes[2],
810 1.000000f, 1, 222, 255, 222, 0);
811 aLightningCreate(Object_handles[5], Object_handles[1], 10000000000.000000f, 6.000000f, 1, Texture_indexes[2],
812 1.000000f, 1, 222, 255, 222, 0);
813 aLightningCreate(Object_handles[5], Object_handles[2], 10000000000.000000f, 6.000000f, 1, Texture_indexes[2],
814 1.000000f, 1, 222, 255, 222, 0);
815 aLightningCreate(Object_handles[5], Object_handles[3], 10000000000.000000f, 6.000000f, 1, Texture_indexes[2],
816 1.000000f, 1, 222, 255, 222, 0);
817
818 // Increment the script action counter
819 if (ScriptActionCtr_003 < MAX_ACTION_CTR_VALUE)
820 ScriptActionCtr_003++;
821 }
822
823 // Script 002: Music Start
824 if (1) {
825 aMusicSetRegionAll(1);
826
827 // Increment the script action counter
828 if (ScriptActionCtr_002 < MAX_ACTION_CTR_VALUE)
829 ScriptActionCtr_002++;
830 }
831 } break;
832 case EVT_TIMER: {
833 tOSIRISEVTTIMER *event_data = &data->evt_timer;
834
835 // Script 014: GreenFogScript
836 if (event_data->id == 4) {
837 aRoomChangeFog(Room_indexes[6], 0.000000f, 1.000000f, 0.500000f, 800.000000f, 8.000000f);
838 aSetLevelTimer(8.000000f, 5);
839
840 // Increment the script action counter
841 if (ScriptActionCtr_014 < MAX_ACTION_CTR_VALUE)
842 ScriptActionCtr_014++;
843 }
844
845 // Script 015: GreenFogScript2
846 if (event_data->id == 5) {
847 aRoomChangeFog(Room_indexes[6], 0.000000f, 0.600000f, 0.300000f, 1100.000000f, 8.000000f);
848 aSetLevelTimer(8.000000f, 4);
849
850 // Increment the script action counter
851 if (ScriptActionCtr_015 < MAX_ACTION_CTR_VALUE)
852 ScriptActionCtr_015++;
853 }
854
855 // Script 019: ShakeCamera
856 if ((ScriptActionCtr_019 < 1) && (event_data->id == 7)) {
857 aMiscViewerShake(40.000000f);
858 aSetLevelTimer(6.000000f, 8);
859
860 // Increment the script action counter
861 if (ScriptActionCtr_019 < MAX_ACTION_CTR_VALUE)
862 ScriptActionCtr_019++;
863 }
864
865 // Script 000: CloakPlayer
866 if ((ScriptActionCtr_000 < 1) && (event_data->id == 8)) {
867 aCloakAllPlayers(10.000000f);
868
869 // Increment the script action counter
870 if (ScriptActionCtr_000 < MAX_ACTION_CTR_VALUE)
871 ScriptActionCtr_000++;
872 }
873
874 // Script 017: EndLevelSequencePart2
875 if ((ScriptActionCtr_017 < 1) && (event_data->id == 6)) {
876 aSoundPlayObject(Sound_indexes[1], Object_handles[6], 1.000000f);
877 aStartEndlevelSequencePath(Path_indexes[0], Path_indexes[1], 8.000000f, Message_strings[7]);
878 aTurnOnSpew(Object_handles[7], -1, 7, 0.000000f, 0.000000f, 65536, 0, 1.500000f, 0.150000f, 30.000000f, 4.000000f,
879 20.000000f, 1, -1);
880 aLightningCreate(Object_handles[7], Object_handles[6], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
881 1.000000f, 1, 222, 255, 222, 0);
882 aLightningCreate(Object_handles[1], Object_handles[6], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
883 1.000000f, 1, 222, 255, 222, 0);
884 aLightningCreate(Object_handles[2], Object_handles[6], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
885 1.000000f, 1, 222, 255, 222, 0);
886 aLightningCreate(Object_handles[3], Object_handles[6], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
887 1.000000f, 1, 222, 255, 222, 0);
888 aLightningCreate(Object_handles[4], Object_handles[6], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
889 1.000000f, 1, 222, 255, 222, 0);
890 aLightningCreate(Object_handles[5], Object_handles[6], 999999995904.000000f, 6.000000f, 1, Texture_indexes[2],
891 1.000000f, 1, 222, 255, 222, 0);
892 aCancelTimer(5);
893 aCancelTimer(4);
894 aRoomChangeFog(Room_indexes[6], 0.800000f, 1.000000f, 0.800000f, 100.000000f, 8.000000f);
895 aPhysFlags(1, 60817408, qPlayerClosest(Object_handles[7], -1));
896
897 // Increment the script action counter
898 if (ScriptActionCtr_017 < MAX_ACTION_CTR_VALUE)
899 ScriptActionCtr_017++;
900 }
901 } break;
902 }
903 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
904 }
905
906 int16_t CustomObjectScript_0804::CallEvent(int event, tOSIRISEventInfo *data) {
907 switch (event) {
908 case EVT_COLLIDE: {
909 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
910
911 // Script 004: EntranceDoorMessage
912 if (qObjIsPlayerOrPlayerWeapon(event_data->it_handle) == 1) {
913 aShowHUDMessageObj(Message_strings[2], event_data->it_handle);
914 aSoundPlay2DObj(Sound_indexes[0], event_data->it_handle, 1.000000f);
915
916 // Increment the script action counter
917 if (ScriptActionCtr_004 < MAX_ACTION_CTR_VALUE)
918 ScriptActionCtr_004++;
919 }
920 } break;
921 }
922 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
923 }
924
925 int16_t TriggerScript_0002::CallEvent(int event, tOSIRISEventInfo *data) {
926 switch (event) {
927 case EVT_COLLIDE: {
928 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
929
930 // Script 007: MainRoom1Entered
931 if ((ScriptActionCtr_007 < 1) && (qObjIsPlayer(event_data->it_handle) == 1)) {
932 aUserVarInc(4);
933 aShowHUDMessageObj(Message_strings[3], event_data->it_handle);
934 aGoalCompleted(Goal_indexes[0], 1);
935
936 // Increment the script action counter
937 if (ScriptActionCtr_007 < MAX_ACTION_CTR_VALUE)
938 ScriptActionCtr_007++;
939 }
940 } break;
941 }
942 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
943 }
944
945 int16_t TriggerScript_0004::CallEvent(int event, tOSIRISEventInfo *data) {
946 switch (event) {
947 case EVT_COLLIDE: {
948 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
949
950 // Script 010: MainRoom3Entered
951 if ((ScriptActionCtr_010 < 1) && (qObjIsPlayer(event_data->it_handle) == 1)) {
952 aUserVarInc(4);
953 aShowHUDMessageObj(Message_strings[4], event_data->it_handle);
954 aRoomSetWind(Room_indexes[1], -1.000000f, 0.000000f, 0.000000f, 30.000000f);
955 aRoomSetWind(Room_indexes[3], -1.000000f, 0.000000f, 0.000000f, 30.000000f);
956 aRoomSetWind(Room_indexes[2], 1.000000f, 0.000000f, 0.000000f, 30.000000f);
957 aRoomSetFaceTexture(Room_indexes[5], 160, Texture_indexes[0]);
958 aRoomSetFaceTexture(Room_indexes[5], 151, Texture_indexes[1]);
959 aGoalCompleted(Goal_indexes[1], 1);
960
961 // Increment the script action counter
962 if (ScriptActionCtr_010 < MAX_ACTION_CTR_VALUE)
963 ScriptActionCtr_010++;
964 }
965 } break;
966 }
967 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
968 }
969
970 int16_t TriggerScript_0003::CallEvent(int event, tOSIRISEventInfo *data) {
971 switch (event) {
972 case EVT_COLLIDE: {
973 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
974
975 // Script 009: MainRoom2Entered
976 if ((ScriptActionCtr_009 < 1) && (qObjIsPlayer(event_data->it_handle) == 1)) {
977 aUserVarInc(4);
978 aShowHUDMessageObj(Message_strings[5], event_data->it_handle);
979 aRoomSetWind(Room_indexes[3], 1.000000f, 0.000000f, 0.000000f, 30.000000f);
980 aRoomSetWind(Room_indexes[1], -1.000000f, 0.000000f, 0.000000f, 30.000000f);
981 aRoomSetWind(Room_indexes[2], -1.000000f, 0.000000f, 0.000000f, 30.000000f);
982 aRoomSetFaceTexture(Room_indexes[5], 151, Texture_indexes[0]);
983 aRoomSetFaceTexture(Room_indexes[5], 142, Texture_indexes[1]);
984 aGoalCompleted(Goal_indexes[2], 1);
985
986 // Increment the script action counter
987 if (ScriptActionCtr_009 < MAX_ACTION_CTR_VALUE)
988 ScriptActionCtr_009++;
989 }
990 } break;
991 }
992 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
993 }
994
995 int16_t TriggerScript_0007::CallEvent(int event, tOSIRISEventInfo *data) {
996 switch (event) {
997 case EVT_COLLIDE: {
998 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
999
1000 // Script 008: Music Area 1
1001 if (1) {
1002 aMusicSetRegion(4, event_data->it_handle);
1003
1004 // Increment the script action counter
1005 if (ScriptActionCtr_008 < MAX_ACTION_CTR_VALUE)
1006 ScriptActionCtr_008++;
1007 }
1008 } break;
1009 }
1010 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
1011 }
1012
1013 int16_t TriggerScript_0006::CallEvent(int event, tOSIRISEventInfo *data) {
1014 switch (event) {
1015 case EVT_COLLIDE: {
1016 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
1017
1018 // Script 006: Music Area 2
1019 if (1) {
1020 aMusicSetRegion(3, event_data->it_handle);
1021
1022 // Increment the script action counter
1023 if (ScriptActionCtr_006 < MAX_ACTION_CTR_VALUE)
1024 ScriptActionCtr_006++;
1025 }
1026 } break;
1027 }
1028 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
1029 }
1030
1031 int16_t TriggerScript_0005::CallEvent(int event, tOSIRISEventInfo *data) {
1032 switch (event) {
1033 case EVT_COLLIDE: {
1034 tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
1035
1036 // Script 005: Music Area 3
1037 if (1) {
1038 aMusicSetRegion(2, event_data->it_handle);
1039
1040 // Increment the script action counter
1041 if (ScriptActionCtr_005 < MAX_ACTION_CTR_VALUE)
1042 ScriptActionCtr_005++;
1043 }
1044 } break;
1045 }
1046 return CONTINUE_CHAIN | CONTINUE_DEFAULT;
1047 }
1048
1049 /*********************************************************
1050 Script Save Block: DO NOT TOUCH ANYTHING IN THIS BLOCK!!!
1051 **********************************************************
1052 $$SCRIPT_BLOCK_START
1053
1054 VERSION 3
1055 NEXT_ID 1
1056
1057 // UserType value blocks
1058 $$UTYPE_VALS_START UserVar
1059 0:SwitchActive
1060 1:Tube1Active
1061 2:Tube2Active
1062 3:Tube3Active
1063 4:AreasVisited
1064 5:OrbPlayer
1065 $$UTYPE_VALS_END
1066
1067 $$UTYPE_VALS_START UserFlag
1068 $$UTYPE_VALS_END
1069
1070 $$UTYPE_VALS_START SpewHandle
1071 $$UTYPE_VALS_END
1072
1073 $$UTYPE_VALS_START TimerID
1074 0:Switch1
1075 1:Switch2
1076 2:Switch3
1077 3:EndLevelTimer
1078 4:PulseUp
1079 5:PulseDown
1080 6:EndOrbTimer
1081 7:ShakeTimer
1082 8:EndCloakTimer
1083 $$UTYPE_VALS_END
1084
1085 $$UTYPE_VALS_START SavedObjectSlot
1086 $$UTYPE_VALS_END
1087
1088 $$UTYPE_VALS_START GoalID
1089 $$UTYPE_VALS_END
1090
1091
1092 // Name Lists
1093 $$DOOR_LIST_START
1094 $$DOOR_LIST_END
1095
1096 $$OBJECT_LIST_START
1097 EntranceDoor
1098 LightningNode01
1099 LightningNode02
1100 LightningNode03
1101 LightningNode04
1102 LightningNode05
1103 PlayerLightning
1104 OrbCenter
1105 $$OBJECT_LIST_END
1106
1107 $$ROOM_LIST_START
1108 EyeballMatcen
1109 Tube302
1110 Tube202
1111 Tube102
1112 Tube310
1113 ControlRoom
1114 OrbRoom
1115 OrbCollar
1116 $$ROOM_LIST_END
1117
1118 $$TRIGGER_LIST_START
1119 MainRoom1
1120 MainRoom3
1121 MainRoom2
1122 MArea1
1123 MArea2
1124 MArea3
1125 $$TRIGGER_LIST_END
1126
1127 $$SOUND_LIST_START
1128 DoorIsLocked
1129 Lightning
1130 $$SOUND_LIST_END
1131
1132 $$TEXTURE_LIST_START
1133 Reddataup
1134 Ready1
1135 FunkyEffectGreen
1136 $$TEXTURE_LIST_END
1137
1138 $$SPECNAME_LIST_START
1139 $$SPECNAME_LIST_END
1140
1141 $$PATH_LIST_START
1142 EndCameraPath
1143 EndPlayerPath
1144 $$PATH_LIST_END
1145
1146 $$MATCEN_LIST_START
1147 $$MATCEN_LIST_END
1148
1149 $$GOAL_LIST_START
1150 Find Area 1
1151 Find Area 3
1152 Find Area 2
1153 Explore the hidden facility
1154 $$GOAL_LIST_END
1155
1156 $$STRM_AUDIO_LIST_START
1157 $$STRM_AUDIO_LIST_END
1158
1159
1160 // Script Tree Dump
1161 00:1:LevelStart
1162 $$CHILD_BLOCK_START
1163 01:2:0
1164 02:6
1165 03:0
1166 $$CHILD_BLOCK_START
1167 05:0
1168 $$CHILD_BLOCK_END
1169 04:0:0:1
1170 $$CHILD_BLOCK_START
1171 08:aRoomSetWind
1172 $$CHILD_BLOCK_START
1173 10:2:0:Room
1174 10:6:0.400000:X
1175 10:6:0.000000:Y
1176 10:6:0.100000:Z
1177 10:6:45.000000:Speed
1178 $$CHILD_BLOCK_END
1179 08:aRoomSetWind
1180 $$CHILD_BLOCK_START
1181 10:2:1:Room
1182 10:6:1.000000:X
1183 10:6:0.000000:Y
1184 10:6:0.000000:Z
1185 10:6:30.000000:Speed
1186 $$CHILD_BLOCK_END
1187 08:aRoomSetWind
1188 $$CHILD_BLOCK_START
1189 10:2:2:Room
1190 10:6:-1.000000:X
1191 10:6:0.000000:Y
1192 10:6:0.000000:Z
1193 10:6:30.000000:Speed
1194 $$CHILD_BLOCK_END
1195 08:aRoomSetWind
1196 $$CHILD_BLOCK_START
1197 10:2:3:Room
1198 10:6:-1.000000:X
1199 10:6:0.000000:Y
1200 10:6:0.000000:Z
1201 10:6:30.000000:Speed
1202 $$CHILD_BLOCK_END
1203 08:aAddGameMessage
1204 $$CHILD_BLOCK_START
1205 10:8:IntroBriefingMessage:GameMessage
1206 10:8:IntroHUDmessage:HUDMessage
1207 $$CHILD_BLOCK_END
1208 08:aUserVarSet
1209 $$CHILD_BLOCK_START
1210 10:10:0:0:UserVar
1211 10:6:0.000000:value
1212 $$CHILD_BLOCK_END
1213 08:aUserVarSet
1214 $$CHILD_BLOCK_START
1215 10:10:0:1:UserVar
1216 10:6:0.000000:value
1217 $$CHILD_BLOCK_END
1218 08:aUserVarSet
1219 $$CHILD_BLOCK_START
1220 10:10:0:2:UserVar
1221 10:6:0.000000:value
1222 $$CHILD_BLOCK_END
1223 08:aUserVarSet
1224 $$CHILD_BLOCK_START
1225 10:10:0:3:UserVar
1226 10:6:0.000000:value
1227 $$CHILD_BLOCK_END
1228 08:aUserVarSet
1229 $$CHILD_BLOCK_START
1230 10:10:0:4:UserVar
1231 10:6:0.000000:value
1232 $$CHILD_BLOCK_END
1233 08:aRoomSetWind
1234 $$CHILD_BLOCK_START
1235 10:2:4:Room
1236 10:6:-0.440000:X
1237 10:6:0.821000:Y
1238 10:6:-0.367000:Z
1239 10:6:30.000000:Speed
1240 $$CHILD_BLOCK_END
1241 08:aSetLevelTimer
1242 $$CHILD_BLOCK_START
1243 10:6:0.000000:Time
1244 10:10:0:5:TimerID
1245 $$CHILD_BLOCK_END
1246 08:aMissionSetFlag
1247 $$CHILD_BLOCK_START
1248 10:4:29:FlagNum
1249 10:5:1:State
1250 $$CHILD_BLOCK_END
1251 $$CHILD_BLOCK_END
1252 $$CHILD_BLOCK_END
1253 00:4:EntranceDoorMessage
1254 $$CHILD_BLOCK_START
1255 01:1:0
1256 02:0
1257 03:0
1258 $$CHILD_BLOCK_START
1259 05:2
1260 $$CHILD_BLOCK_START
1261 06:qObjIsPlayerOrPlayerWeapon:Bool
1262 $$CHILD_BLOCK_START
1263 10:1:1:-1:Object
1264 $$CHILD_BLOCK_END
1265 07:1:0
1266 10:5:1:Bool
1267 $$CHILD_BLOCK_END
1268 $$CHILD_BLOCK_END
1269 04:0:0:0
1270 $$CHILD_BLOCK_START
1271 08:aShowHUDMessageObj
1272 $$CHILD_BLOCK_START
1273 10:8:EntranceDoorMessage:Message
1274 10:1:1:-1:PlayerObject
1275 $$CHILD_BLOCK_END
1276 08:aSoundPlay2DObj
1277 $$CHILD_BLOCK_START
1278 10:12:0:Sound
1279 10:1:1:-1:PlayerObject
1280 10:9:1.000000:Volume
1281 $$CHILD_BLOCK_END
1282 $$CHILD_BLOCK_END
1283 $$CHILD_BLOCK_END
1284 00:7:MainRoom1Entered
1285 $$CHILD_BLOCK_START
1286 01:0:0
1287 02:1
1288 03:0
1289 $$CHILD_BLOCK_START
1290 05:2
1291 $$CHILD_BLOCK_START
1292 06:qObjIsPlayer:Bool
1293 $$CHILD_BLOCK_START
1294 10:1:1:-1:Object
1295 $$CHILD_BLOCK_END
1296 07:1:0
1297 10:5:1:Bool
1298 $$CHILD_BLOCK_END
1299 $$CHILD_BLOCK_END
1300 04:0:0:1
1301 $$CHILD_BLOCK_START
1302 08:aUserVarInc
1303 $$CHILD_BLOCK_START
1304 10:10:0:4:UserVar
1305 $$CHILD_BLOCK_END
1306 08:aShowHUDMessageObj
1307 $$CHILD_BLOCK_START
1308 10:8:Area1:Message
1309 10:1:1:-1:PlayerObject
1310 $$CHILD_BLOCK_END
1311 08:aGoalCompleted
1312 $$CHILD_BLOCK_START
1313 10:18:0:0:LevelGoal
1314 10:10:0:1:Completed
1315 $$CHILD_BLOCK_END
1316 $$CHILD_BLOCK_END
1317 $$CHILD_BLOCK_END
1318 00:10:MainRoom3Entered
1319 $$CHILD_BLOCK_START
1320 01:0:1
1321 02:1
1322 03:0
1323 $$CHILD_BLOCK_START
1324 05:2
1325 $$CHILD_BLOCK_START
1326 06:qObjIsPlayer:Bool
1327 $$CHILD_BLOCK_START
1328 10:1:1:-1:Object
1329 $$CHILD_BLOCK_END
1330 07:1:0
1331 10:5:1:Bool
1332 $$CHILD_BLOCK_END
1333 $$CHILD_BLOCK_END
1334 04:0:0:1
1335 $$CHILD_BLOCK_START
1336 08:aUserVarInc
1337 $$CHILD_BLOCK_START
1338 10:10:0:4:UserVar
1339 $$CHILD_BLOCK_END
1340 08:aShowHUDMessageObj
1341 $$CHILD_BLOCK_START
1342 10:8:Area3:Message
1343 10:1:1:-1:PlayerObject
1344 $$CHILD_BLOCK_END
1345 08:aRoomSetWind
1346 $$CHILD_BLOCK_START
1347 10:2:1:Room
1348 10:6:-1.000000:X
1349 10:6:0.000000:Y
1350 10:6:0.000000:Z
1351 10:6:30.000000:Speed
1352 $$CHILD_BLOCK_END
1353 08:aRoomSetWind
1354 $$CHILD_BLOCK_START
1355 10:2:3:Room
1356 10:6:-1.000000:X
1357 10:6:0.000000:Y
1358 10:6:0.000000:Z
1359 10:6:30.000000:Speed
1360 $$CHILD_BLOCK_END
1361 08:aRoomSetWind
1362 $$CHILD_BLOCK_START
1363 10:2:2:Room
1364 10:6:1.000000:X
1365 10:6:0.000000:Y
1366 10:6:0.000000:Z
1367 10:6:30.000000:Speed
1368 $$CHILD_BLOCK_END
1369 08:aRoomSetFaceTexture
1370 $$CHILD_BLOCK_START
1371 10:2:5:Room
1372 10:4:160:FaceNum
1373 10:14:0:Texture
1374 $$CHILD_BLOCK_END
1375 08:aRoomSetFaceTexture
1376 $$CHILD_BLOCK_START
1377 10:2:5:Room
1378 10:4:151:FaceNum
1379 10:14:1:Texture
1380 $$CHILD_BLOCK_END
1381 08:aGoalCompleted
1382 $$CHILD_BLOCK_START
1383 10:18:0:1:LevelGoal
1384 10:10:0:1:Completed
1385 $$CHILD_BLOCK_END
1386 $$CHILD_BLOCK_END
1387 $$CHILD_BLOCK_END
1388 00:9:MainRoom2Entered
1389 $$CHILD_BLOCK_START
1390 01:0:2
1391 02:1
1392 03:0
1393 $$CHILD_BLOCK_START
1394 05:2
1395 $$CHILD_BLOCK_START
1396 06:qObjIsPlayer:Bool
1397 $$CHILD_BLOCK_START
1398 10:1:1:-1:Object
1399 $$CHILD_BLOCK_END
1400 07:1:0
1401 10:5:1:Bool
1402 $$CHILD_BLOCK_END
1403 $$CHILD_BLOCK_END
1404 04:0:0:1
1405 $$CHILD_BLOCK_START
1406 08:aUserVarInc
1407 $$CHILD_BLOCK_START
1408 10:10:0:4:UserVar
1409 $$CHILD_BLOCK_END
1410 08:aShowHUDMessageObj
1411 $$CHILD_BLOCK_START
1412 10:8:Area2:Message
1413 10:1:1:-1:PlayerObject
1414 $$CHILD_BLOCK_END
1415 08:aRoomSetWind
1416 $$CHILD_BLOCK_START
1417 10:2:3:Room
1418 10:6:1.000000:X
1419 10:6:0.000000:Y
1420 10:6:0.000000:Z
1421 10:6:30.000000:Speed
1422 $$CHILD_BLOCK_END
1423 08:aRoomSetWind
1424 $$CHILD_BLOCK_START
1425 10:2:1:Room
1426 10:6:-1.000000:X
1427 10:6:0.000000:Y
1428 10:6:0.000000:Z
1429 10:6:30.000000:Speed
1430 $$CHILD_BLOCK_END
1431 08:aRoomSetWind
1432 $$CHILD_BLOCK_START
1433 10:2:2:Room
1434 10:6:-1.000000:X
1435 10:6:0.000000:Y
1436 10:6:0.000000:Z
1437 10:6:30.000000:Speed
1438 $$CHILD_BLOCK_END
1439 08:aRoomSetFaceTexture
1440 $$CHILD_BLOCK_START
1441 10:2:5:Room
1442 10:4:151:FaceNum
1443 10:14:0:Texture
1444 $$CHILD_BLOCK_END
1445 08:aRoomSetFaceTexture
1446 $$CHILD_BLOCK_START
1447 10:2:5:Room
1448 10:4:142:FaceNum
1449 10:14:1:Texture
1450 $$CHILD_BLOCK_END
1451 08:aGoalCompleted
1452 $$CHILD_BLOCK_START
1453 10:18:0:2:LevelGoal
1454 10:10:0:1:Completed
1455 $$CHILD_BLOCK_END
1456 $$CHILD_BLOCK_END
1457 $$CHILD_BLOCK_END
1458 00:11:AreasVisited
1459 $$CHILD_BLOCK_START
1460 01:2:0
1461 02:5
1462 03:0
1463 $$CHILD_BLOCK_START
1464 05:2
1465 $$CHILD_BLOCK_START
1466 06:qUserVarValueInt:Integer
1467 $$CHILD_BLOCK_START
1468 10:10:0:4:UserVar
1469 $$CHILD_BLOCK_END
1470 07:1:0
1471 10:4:3:Integer
1472 $$CHILD_BLOCK_END
1473 $$CHILD_BLOCK_END
1474 04:0:0:1
1475 $$CHILD_BLOCK_START
1476 08:aGoalCompleted
1477 $$CHILD_BLOCK_START
1478 10:18:0:3:LevelGoal
1479 10:10:0:1:Completed
1480 $$CHILD_BLOCK_END
1481 $$CHILD_BLOCK_END
1482 $$CHILD_BLOCK_END
1483 00:3:OrbLightning
1484 $$CHILD_BLOCK_START
1485 01:2:0
1486 02:6
1487 03:0
1488 $$CHILD_BLOCK_START
1489 05:0
1490 $$CHILD_BLOCK_END
1491 04:0:0:1
1492 $$CHILD_BLOCK_START
1493 08:aLightningCreate
1494 $$CHILD_BLOCK_START
1495 10:1:0:1:Object1
1496 10:1:0:2:Object2
1497 10:6:999999995904.000000:Lifetime
1498 10:6:6.000000:Thickness
1499 10:4:1:NumTiles
1500 10:14:2:Texture
1501 10:6:1.000000:SlideTime
1502 10:4:1:TimesDrawn
1503 10:4:222:Red
1504 10:4:255:Green
1505 10:4:222:Blue
1506 10:5:0:AutoTile
1507 $$CHILD_BLOCK_END
1508 08:aLightningCreate
1509 $$CHILD_BLOCK_START
1510 10:1:0:1:Object1
1511 10:1:0:3:Object2
1512 10:6:999999995904.000000:Lifetime
1513 10:6:6.000000:Thickness
1514 10:4:1:NumTiles
1515 10:14:2:Texture
1516 10:6:1.000000:SlideTime
1517 10:4:1:TimesDrawn
1518 10:4:222:Red
1519 10:4:255:Green
1520 10:4:222:Blue
1521 10:5:0:AutoTile
1522 $$CHILD_BLOCK_END
1523 08:aLightningCreate
1524 $$CHILD_BLOCK_START
1525 10:1:0:1:Object1
1526 10:1:0:4:Object2
1527 10:6:999999995904.000000:Lifetime
1528 10:6:6.000000:Thickness
1529 10:4:1:NumTiles
1530 10:14:2:Texture
1531 10:6:1.000000:SlideTime
1532 10:4:1:TimesDrawn
1533 10:4:222:Red
1534 10:4:255:Green
1535 10:4:222:Blue
1536 10:5:0:AutoTile
1537 $$CHILD_BLOCK_END
1538 08:aLightningCreate
1539 $$CHILD_BLOCK_START
1540 10:1:0:2:Object1
1541 10:1:0:3:Object2
1542 10:6:999999995904.000000:Lifetime
1543 10:6:6.000000:Thickness
1544 10:4:1:NumTiles
1545 10:14:2:Texture
1546 10:6:1.000000:SlideTime
1547 10:4:1:TimesDrawn
1548 10:4:222:Red
1549 10:4:255:Green
1550 10:4:222:Blue
1551 10:5:0:AutoTile
1552 $$CHILD_BLOCK_END
1553 08:aLightningCreate
1554 $$CHILD_BLOCK_START
1555 10:1:0:2:Object1
1556 10:1:0:4:Object2
1557 10:6:999999995904.000000:Lifetime
1558 10:6:6.000000:Thickness
1559 10:4:1:NumTiles
1560 10:14:2:Texture
1561 10:6:1.000000:SlideTime
1562 10:4:1:TimesDrawn
1563 10:4:222:Red
1564 10:4:255:Green
1565 10:4:222:Blue
1566 10:5:0:AutoTile
1567 $$CHILD_BLOCK_END
1568 08:aLightningCreate
1569 $$CHILD_BLOCK_START
1570 10:1:0:2:Object1
1571 10:1:0:5:Object2
1572 10:6:999999995904.000000:Lifetime
1573 10:6:6.000000:Thickness
1574 10:4:1:NumTiles
1575 10:14:2:Texture
1576 10:6:1.000000:SlideTime
1577 10:4:1:TimesDrawn
1578 10:4:222:Red
1579 10:4:255:Green
1580 10:4:222:Blue
1581 10:5:0:AutoTile
1582 $$CHILD_BLOCK_END
1583 08:aLightningCreate
1584 $$CHILD_BLOCK_START
1585 10:1:0:3:Object1
1586 10:1:0:4:Object2
1587 10:6:999999995904.000000:Lifetime
1588 10:6:6.000000:Thickness
1589 10:4:1:NumTiles
1590 10:14:2:Texture
1591 10:6:1.000000:SlideTime
1592 10:4:1:TimesDrawn
1593 10:4:222:Red
1594 10:4:255:Green
1595 10:4:222:Blue
1596 10:5:0:AutoTile
1597 $$CHILD_BLOCK_END
1598 08:aLightningCreate
1599 $$CHILD_BLOCK_START
1600 10:1:0:3:Object1
1601 10:1:0:5:Object2
1602 10:6:999999995904.000000:Lifetime
1603 10:6:6.000000:Thickness
1604 10:4:1:NumTiles
1605 10:14:2:Texture
1606 10:6:1.000000:SlideTime
1607 10:4:1:TimesDrawn
1608 10:4:222:Red
1609 10:4:255:Green
1610 10:4:222:Blue
1611 10:5:0:AutoTile
1612 $$CHILD_BLOCK_END
1613 08:aLightningCreate
1614 $$CHILD_BLOCK_START
1615 10:1:0:3:Object1
1616 10:1:0:1:Object2
1617 10:6:999999995904.000000:Lifetime
1618 10:6:6.000000:Thickness
1619 10:4:1:NumTiles
1620 10:14:2:Texture
1621 10:6:1.000000:SlideTime
1622 10:4:1:TimesDrawn
1623 10:4:222:Red
1624 10:4:255:Green
1625 10:4:222:Blue
1626 10:5:0:AutoTile
1627 $$CHILD_BLOCK_END
1628 08:aLightningCreate
1629 $$CHILD_BLOCK_START
1630 10:1:0:4:Object1
1631 10:1:0:5:Object2
1632 10:6:10000000000.000000:Lifetime
1633 10:6:6.000000:Thickness
1634 10:4:1:NumTiles
1635 10:14:2:Texture
1636 10:6:1.000000:SlideTime
1637 10:4:1:TimesDrawn
1638 10:4:222:Red
1639 10:4:255:Green
1640 10:4:222:Blue
1641 10:5:0:AutoTile
1642 $$CHILD_BLOCK_END
1643 08:aLightningCreate
1644 $$CHILD_BLOCK_START
1645 10:1:0:4:Object1
1646 10:1:0:1:Object2
1647 10:6:10000000000.000000:Lifetime
1648 10:6:6.000000:Thickness
1649 10:4:1:NumTiles
1650 10:14:2:Texture
1651 10:6:1.000000:SlideTime
1652 10:4:1:TimesDrawn
1653 10:4:222:Red
1654 10:4:255:Green
1655 10:4:222:Blue
1656 10:5:0:AutoTile
1657 $$CHILD_BLOCK_END
1658 08:aLightningCreate
1659 $$CHILD_BLOCK_START
1660 10:1:0:4:Object1
1661 10:1:0:2:Object2
1662 10:6:10000000000.000000:Lifetime
1663 10:6:6.000000:Thickness
1664 10:4:1:NumTiles
1665 10:14:2:Texture
1666 10:6:1.000000:SlideTime
1667 10:4:1:TimesDrawn
1668 10:4:222:Red
1669 10:4:255:Green
1670 10:4:222:Blue
1671 10:5:0:AutoTile
1672 $$CHILD_BLOCK_END
1673 08:aLightningCreate
1674 $$CHILD_BLOCK_START
1675 10:1:0:5:Object1
1676 10:1:0:1:Object2
1677 10:6:10000000000.000000:Lifetime
1678 10:6:6.000000:Thickness
1679 10:4:1:NumTiles
1680 10:14:2:Texture
1681 10:6:1.000000:SlideTime
1682 10:4:1:TimesDrawn
1683 10:4:222:Red
1684 10:4:255:Green
1685 10:4:222:Blue
1686 10:5:0:AutoTile
1687 $$CHILD_BLOCK_END
1688 08:aLightningCreate
1689 $$CHILD_BLOCK_START
1690 10:1:0:5:Object1
1691 10:1:0:2:Object2
1692 10:6:10000000000.000000:Lifetime
1693 10:6:6.000000:Thickness
1694 10:4:1:NumTiles
1695 10:14:2:Texture
1696 10:6:1.000000:SlideTime
1697 10:4:1:TimesDrawn
1698 10:4:222:Red
1699 10:4:255:Green
1700 10:4:222:Blue
1701 10:5:0:AutoTile
1702 $$CHILD_BLOCK_END
1703 08:aLightningCreate
1704 $$CHILD_BLOCK_START
1705 10:1:0:5:Object1
1706 10:1:0:3:Object2
1707 10:6:10000000000.000000:Lifetime
1708 10:6:6.000000:Thickness
1709 10:4:1:NumTiles
1710 10:14:2:Texture
1711 10:6:1.000000:SlideTime
1712 10:4:1:TimesDrawn
1713 10:4:222:Red
1714 10:4:255:Green
1715 10:4:222:Blue
1716 10:5:0:AutoTile
1717 $$CHILD_BLOCK_END
1718 $$CHILD_BLOCK_END
1719 $$CHILD_BLOCK_END
1720 00:14:GreenFogScript
1721 $$CHILD_BLOCK_START
1722 01:2:0
1723 02:9
1724 03:0
1725 $$CHILD_BLOCK_START
1726 05:2
1727 $$CHILD_BLOCK_START
1728 10:10:2:0:TimerID
1729 07:1:0
1730 10:10:0:4:TimerID
1731 $$CHILD_BLOCK_END
1732 $$CHILD_BLOCK_END
1733 04:0:0:0
1734 $$CHILD_BLOCK_START
1735 08:aRoomChangeFog
1736 $$CHILD_BLOCK_START
1737 10:2:6:Room
1738 10:6:0.000000:Red
1739 10:6:1.000000:Green
1740 10:6:0.500000:Blue
1741 10:6:800.000000:Depth
1742 10:6:8.000000:Time
1743 $$CHILD_BLOCK_END
1744 08:aSetLevelTimer
1745 $$CHILD_BLOCK_START
1746 10:6:8.000000:Time
1747 10:10:0:5:TimerID
1748 $$CHILD_BLOCK_END
1749 $$CHILD_BLOCK_END
1750 $$CHILD_BLOCK_END
1751 00:15:GreenFogScript2
1752 $$CHILD_BLOCK_START
1753 01:2:0
1754 02:9
1755 03:0
1756 $$CHILD_BLOCK_START
1757 05:2
1758 $$CHILD_BLOCK_START
1759 10:10:2:0:TimerID
1760 07:1:0
1761 10:10:0:5:TimerID
1762 $$CHILD_BLOCK_END
1763 $$CHILD_BLOCK_END
1764 04:0:0:0
1765 $$CHILD_BLOCK_START
1766 08:aRoomChangeFog
1767 $$CHILD_BLOCK_START
1768 10:2:6:Room
1769 10:6:0.000000:Red
1770 10:6:0.600000:Green
1771 10:6:0.300000:Blue
1772 10:6:1100.000000:Depth
1773 10:6:8.000000:Time
1774 $$CHILD_BLOCK_END
1775 08:aSetLevelTimer
1776 $$CHILD_BLOCK_START
1777 10:6:8.000000:Time
1778 10:10:0:4:TimerID
1779 $$CHILD_BLOCK_END
1780 $$CHILD_BLOCK_END
1781 $$CHILD_BLOCK_END
1782 00:16:EndLevelSequence
1783 $$CHILD_BLOCK_START
1784 01:2:0
1785 02:5
1786 03:0
1787 $$CHILD_BLOCK_START
1788 05:2
1789 $$CHILD_BLOCK_START
1790 06:qRoomHasPlayer:Bool
1791 $$CHILD_BLOCK_START
1792 10:2:6:Room
1793 $$CHILD_BLOCK_END
1794 07:1:0
1795 10:5:1:Bool
1796 $$CHILD_BLOCK_END
1797 $$CHILD_BLOCK_END
1798 04:0:0:1
1799 $$CHILD_BLOCK_START
1800 08:aRoomSetWind
1801 $$CHILD_BLOCK_START
1802 10:2:7:Room
1803 10:6:0.000000:X
1804 10:6:-1.000000:Y
1805 10:6:0.000000:Z
1806 10:6:20.000000:Speed
1807 $$CHILD_BLOCK_END
1808 08:aSetLevelTimer
1809 $$CHILD_BLOCK_START
1810 10:6:20.000000:Time
1811 10:10:0:6:TimerID
1812 $$CHILD_BLOCK_END
1813 08:aSetLevelTimer
1814 $$CHILD_BLOCK_START
1815 10:6:19.250000:Time
1816 10:10:0:7:TimerID
1817 $$CHILD_BLOCK_END
1818 08:aShowHUDMessage
1819 $$CHILD_BLOCK_START
1820 10:8:EndLevelMessage:Message
1821 $$CHILD_BLOCK_END
1822 $$CHILD_BLOCK_END
1823 $$CHILD_BLOCK_END
1824 00:19:ShakeCamera
1825 $$CHILD_BLOCK_START
1826 01:2:0
1827 02:9
1828 03:0
1829 $$CHILD_BLOCK_START
1830 05:2
1831 $$CHILD_BLOCK_START
1832 10:10:2:0:TimerID
1833 07:1:0
1834 10:10:0:7:TimerID
1835 $$CHILD_BLOCK_END
1836 $$CHILD_BLOCK_END
1837 04:0:0:1
1838 $$CHILD_BLOCK_START
1839 08:aMiscViewerShake
1840 $$CHILD_BLOCK_START
1841 10:6:40.000000:Amount
1842 $$CHILD_BLOCK_END
1843 08:aSetLevelTimer
1844 $$CHILD_BLOCK_START
1845 10:6:6.000000:Time
1846 10:10:0:8:TimerID
1847 $$CHILD_BLOCK_END
1848 $$CHILD_BLOCK_END
1849 $$CHILD_BLOCK_END
1850 00:0:CloakPlayer
1851 $$CHILD_BLOCK_START
1852 01:2:0
1853 02:9
1854 03:0
1855 $$CHILD_BLOCK_START
1856 05:2
1857 $$CHILD_BLOCK_START
1858 10:10:2:0:TimerID
1859 07:1:0
1860 10:10:0:8:TimerID
1861 $$CHILD_BLOCK_END
1862 $$CHILD_BLOCK_END
1863 04:0:0:1
1864 $$CHILD_BLOCK_START
1865 08:aCloakAllPlayers
1866 $$CHILD_BLOCK_START
1867 10:6:10.000000:Seconds
1868 $$CHILD_BLOCK_END
1869 $$CHILD_BLOCK_END
1870 $$CHILD_BLOCK_END
1871 00:17:EndLevelSequencePart2
1872 $$CHILD_BLOCK_START
1873 01:2:0
1874 02:9
1875 03:0
1876 $$CHILD_BLOCK_START
1877 05:2
1878 $$CHILD_BLOCK_START
1879 10:10:2:0:TimerID
1880 07:1:0
1881 10:10:0:6:TimerID
1882 $$CHILD_BLOCK_END
1883 $$CHILD_BLOCK_END
1884 04:0:0:1
1885 $$CHILD_BLOCK_START
1886 08:aSoundPlayObject
1887 $$CHILD_BLOCK_START
1888 10:12:1:Sound
1889 10:1:0:6:Object
1890 10:9:1.000000:Volume
1891 $$CHILD_BLOCK_END
1892 08:aStartEndlevelSequencePath
1893 $$CHILD_BLOCK_START
1894 10:16:0:CameraPath
1895 10:16:1:PlayerPath
1896 10:6:8.000000:Time
1897 10:8:Nothing:Text
1898 $$CHILD_BLOCK_END
1899 08:aTurnOnSpew
1900 $$CHILD_BLOCK_START
1901 10:1:0:7:Object
1902 10:4:-1:GunNum
1903 10:10:0:7:SpewType
1904 10:6:0.000000:Mass
1905 10:6:0.000000:Drag
1906 10:15:65536:PhysicsFlags
1907 10:5:0:IsRealObject
1908 10:6:1.500000:BlobLifetime
1909 10:6:0.150000:BlobInterval
1910 10:6:30.000000:SpewLife
1911 10:6:4.000000:BlobSize
1912 10:6:20.000000:BlobSpeed
1913 10:5:1:Randomize
1914 10:10:0:-1:SpewHandle
1915 $$CHILD_BLOCK_END
1916 08:aLightningCreate
1917 $$CHILD_BLOCK_START
1918 10:1:0:7:Object1
1919 10:1:0:6:Object2
1920 10:6:999999995904.000000:Lifetime
1921 10:6:6.000000:Thickness
1922 10:4:1:NumTiles
1923 10:14:2:Texture
1924 10:6:1.000000:SlideTime
1925 10:4:1:TimesDrawn
1926 10:4:222:Red
1927 10:4:255:Green
1928 10:4:222:Blue
1929 10:5:0:AutoTile
1930 $$CHILD_BLOCK_END
1931 08:aLightningCreate
1932 $$CHILD_BLOCK_START
1933 10:1:0:1:Object1
1934 10:1:0:6:Object2
1935 10:6:999999995904.000000:Lifetime
1936 10:6:6.000000:Thickness
1937 10:4:1:NumTiles
1938 10:14:2:Texture
1939 10:6:1.000000:SlideTime
1940 10:4:1:TimesDrawn
1941 10:4:222:Red
1942 10:4:255:Green
1943 10:4:222:Blue
1944 10:5:0:AutoTile
1945 $$CHILD_BLOCK_END
1946 08:aLightningCreate
1947 $$CHILD_BLOCK_START
1948 10:1:0:2:Object1
1949 10:1:0:6:Object2
1950 10:6:999999995904.000000:Lifetime
1951 10:6:6.000000:Thickness
1952 10:4:1:NumTiles
1953 10:14:2:Texture
1954 10:6:1.000000:SlideTime
1955 10:4:1:TimesDrawn
1956 10:4:222:Red
1957 10:4:255:Green
1958 10:4:222:Blue
1959 10:5:0:AutoTile
1960 $$CHILD_BLOCK_END
1961 08:aLightningCreate
1962 $$CHILD_BLOCK_START
1963 10:1:0:3:Object1
1964 10:1:0:6:Object2
1965 10:6:999999995904.000000:Lifetime
1966 10:6:6.000000:Thickness
1967 10:4:1:NumTiles
1968 10:14:2:Texture
1969 10:6:1.000000:SlideTime
1970 10:4:1:TimesDrawn
1971 10:4:222:Red
1972 10:4:255:Green
1973 10:4:222:Blue
1974 10:5:0:AutoTile
1975 $$CHILD_BLOCK_END
1976 08:aLightningCreate
1977 $$CHILD_BLOCK_START
1978 10:1:0:4:Object1
1979 10:1:0:6:Object2
1980 10:6:999999995904.000000:Lifetime
1981 10:6:6.000000:Thickness
1982 10:4:1:NumTiles
1983 10:14:2:Texture
1984 10:6:1.000000:SlideTime
1985 10:4:1:TimesDrawn
1986 10:4:222:Red
1987 10:4:255:Green
1988 10:4:222:Blue
1989 10:5:0:AutoTile
1990 $$CHILD_BLOCK_END
1991 08:aLightningCreate
1992 $$CHILD_BLOCK_START
1993 10:1:0:5:Object1
1994 10:1:0:6:Object2
1995 10:6:999999995904.000000:Lifetime
1996 10:6:6.000000:Thickness
1997 10:4:1:NumTiles
1998 10:14:2:Texture
1999 10:6:1.000000:SlideTime
2000 10:4:1:TimesDrawn
2001 10:4:222:Red
2002 10:4:255:Green
2003 10:4:222:Blue
2004 10:5:0:AutoTile
2005 $$CHILD_BLOCK_END
2006 08:aCancelTimer
2007 $$CHILD_BLOCK_START
2008 10:10:0:5:TimerID
2009 $$CHILD_BLOCK_END
2010 08:aCancelTimer
2011 $$CHILD_BLOCK_START
2012 10:10:0:4:TimerID
2013 $$CHILD_BLOCK_END
2014 08:aRoomChangeFog
2015 $$CHILD_BLOCK_START
2016 10:2:6:Room
2017 10:6:0.800000:Red
2018 10:6:1.000000:Green
2019 10:6:0.800000:Blue
2020 10:6:100.000000:Depth
2021 10:6:8.000000:Time
2022 $$CHILD_BLOCK_END
2023 08:aPhysFlags
2024 $$CHILD_BLOCK_START
2025 10:10:0:1:Set/Clear
2026 10:15:60817408:PhysicsFlags
2027 06:qPlayerClosest:Object
2028 $$CHILD_BLOCK_START
2029 10:1:0:7:Object
2030 10:10:0:-1:UserVar
2031 $$CHILD_BLOCK_END
2032 $$CHILD_BLOCK_END
2033 $$CHILD_BLOCK_END
2034 $$CHILD_BLOCK_END
2035 00:2:Music Start
2036 $$CHILD_BLOCK_START
2037 01:2:0
2038 02:6
2039 03:0
2040 $$CHILD_BLOCK_START
2041 05:0
2042 $$CHILD_BLOCK_END
2043 04:0:0:0
2044 $$CHILD_BLOCK_START
2045 08:aMusicSetRegionAll
2046 $$CHILD_BLOCK_START
2047 10:10:0:1:Region
2048 $$CHILD_BLOCK_END
2049 $$CHILD_BLOCK_END
2050 $$CHILD_BLOCK_END
2051 00:8:Music Area 1
2052 $$CHILD_BLOCK_START
2053 01:0:3
2054 02:1
2055 03:0
2056 $$CHILD_BLOCK_START
2057 05:0
2058 $$CHILD_BLOCK_END
2059 04:0:0:0
2060 $$CHILD_BLOCK_START
2061 08:aMusicSetRegion
2062 $$CHILD_BLOCK_START
2063 10:10:0:4:Region
2064 10:1:1:-1:PlayerObject
2065 $$CHILD_BLOCK_END
2066 $$CHILD_BLOCK_END
2067 $$CHILD_BLOCK_END
2068 00:6:Music Area 2
2069 $$CHILD_BLOCK_START
2070 01:0:4
2071 02:1
2072 03:0
2073 $$CHILD_BLOCK_START
2074 05:0
2075 $$CHILD_BLOCK_END
2076 04:0:0:0
2077 $$CHILD_BLOCK_START
2078 08:aMusicSetRegion
2079 $$CHILD_BLOCK_START
2080 10:10:0:3:Region
2081 10:1:1:-1:PlayerObject
2082 $$CHILD_BLOCK_END
2083 $$CHILD_BLOCK_END
2084 $$CHILD_BLOCK_END
2085 00:5:Music Area 3
2086 $$CHILD_BLOCK_START
2087 01:0:5
2088 02:1
2089 03:0
2090 $$CHILD_BLOCK_START
2091 05:0
2092 $$CHILD_BLOCK_END
2093 04:0:0:0
2094 $$CHILD_BLOCK_START
2095 08:aMusicSetRegion
2096 $$CHILD_BLOCK_START
2097 10:10:0:2:Region
2098 10:1:1:-1:PlayerObject
2099 $$CHILD_BLOCK_END
2100 $$CHILD_BLOCK_END
2101 $$CHILD_BLOCK_END
2102 00:12:FinallevelObjectiveCompleted
2103 $$CHILD_BLOCK_START
2104 01:2:0
2105 02:5
2106 03:0
2107 $$CHILD_BLOCK_START
2108 05:2
2109 $$CHILD_BLOCK_START
2110 06:qRoomHasPlayer:Bool
2111 $$CHILD_BLOCK_START
2112 10:2:7:Room
2113 $$CHILD_BLOCK_END
2114 07:1:0
2115 10:5:1:Bool
2116 $$CHILD_BLOCK_END
2117 $$CHILD_BLOCK_END
2118 04:0:0:0
2119 $$CHILD_BLOCK_START
2120 08:aGoalCompleted
2121 $$CHILD_BLOCK_START
2122 10:18:0:3:LevelGoal
2123 10:10:0:1:Completed
2124 $$CHILD_BLOCK_END
2125 $$CHILD_BLOCK_END
2126 $$CHILD_BLOCK_END
2127
2128 $$SCRIPT_BLOCK_END
2129 *********************************************************/