Debian Codegraph @

scripts/HalfPipe.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: HalfPipe5.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"cxx . . $ `<file>/scripts/osiris_import.h`/
30 #include "osiris_common.h"cxx . . $ `<file>/scripts/osiris_common.h`/
31 #include "DallasFuncs.cpp"cxx . . $ `<file>/scripts/DallasFuncs.cpp`/
32
33 #include "module.h"cxx . . $ `<file>/lib/module.h`/
34
35 #ifdef __cpluspluscxx . . $ `<built-in>:467:9`!
36 extern "C" {
37 #endif
38 DLLEXPORTcxx . . $ `lib/module.h:114:9`! char STDCALLcxx . . $ `lib/module.h:88:11`! InitializeDLL(tOSIRISModuleInitcxx . . $ tOSIRISModuleInit# *func_list);
39 DLLEXPORTcxx . . $ `lib/module.h:114:9`! void STDCALLcxx . . $ `lib/module.h:88:11`! ShutdownDLL(void);
40 DLLEXPORTcxx . . $ `lib/module.h:114:9`! int STDCALLcxx . . $ `lib/module.h:88:11`! GetGOScriptID(const char *name, uint8_tcxx . . $ uint8_t# is_door);
41 DLLEXPORTcxx . . $ `lib/module.h:114:9`! void STDCALLPTRcxx . . $ `lib/module.h:90:10`! CreateInstance(int id);
42 DLLEXPORTcxx . . $ `lib/module.h:114:9`! void STDCALLcxx . . $ `lib/module.h:88:11`! DestroyInstance(int id, void *ptr);
43 DLLEXPORTcxx . . $ `lib/module.h:114:9`! int16_t STDCALLcxx . . $ `lib/module.h:88:11`! CallInstanceEvent(int id, void *ptr, int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data);
44 DLLEXPORTcxx . . $ `lib/module.h:114:9`! int STDCALLcxx . . $ `lib/module.h:88:11`! GetTriggerScriptID(int trigger_room, int trigger_face);
45 DLLEXPORTcxx . . $ `lib/module.h:114:9`! int STDCALLcxx . . $ `lib/module.h:88:11`! GetCOScriptList(int **list, int **id_list);
46 DLLEXPORTcxx . . $ `lib/module.h:114:9`! int STDCALLcxx . . $ `lib/module.h:88:11`! SaveRestoreState(void *file_ptr, uint8_tcxx . . $ uint8_t# saving_state);
47 #ifdef __cpluspluscxx . . $ `<built-in>:467:9`!
48 }
49 #endif
50
51 // =================
52 // Script ID Numbers
53 // =================
54 #define ID_LEVEL_0000cxx . . $ `scripts/HalfPipe.cpp:54:9`! 0x000
55
56 #define ID_TRIGGER_0003cxx . . $ `scripts/HalfPipe.cpp:56:9`! 0x001
57 #define ID_TRIGGER_0002cxx . . $ `scripts/HalfPipe.cpp:57:9`! 0x002
58 #define ID_TRIGGER_0001cxx . . $ `scripts/HalfPipe.cpp:58:9`! 0x003
59 #define ID_TRIGGER_0000cxx . . $ `scripts/HalfPipe.cpp:59:9`! 0x004
60
61 // ========================
62 // Script Class Definitions
63 // ========================
64
65 class BaseScriptcxx . . $ BaseScript# {
66 public:
67 BaseScriptcxx . . $ BaseScript#BaseScript(49f6e7a06ebc5aa8).();
68 ~cxx . . $ BaseScript#`~BaseScript`(ced63f7c635d850d).BaseScriptcxx . . $ BaseScript#();
69 virtual int16_t CallEventcxx . . $ BaseScript#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data);
70 };
71
72 class LevelScript_0000cxx . . $ LevelScript_0000# : public BaseScriptcxx . . $ BaseScript# {
73 public:
74 int16_t CallEventcxx . . $ LevelScript_0000#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data);
75 };
76
77 class TriggerScript_0003cxx . . $ TriggerScript_0003# : public BaseScriptcxx . . $ BaseScript# {
78 public:
79 int16_t CallEventcxx . . $ TriggerScript_0003#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data);
80 };
81
82 class TriggerScript_0002cxx . . $ TriggerScript_0002# : public BaseScriptcxx . . $ BaseScript# {
83 public:
84 int16_t CallEventcxx . . $ TriggerScript_0002#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data);
85 };
86
87 class TriggerScript_0001cxx . . $ TriggerScript_0001# : public BaseScriptcxx . . $ BaseScript# {
88 public:
89 int16_t CallEventcxx . . $ TriggerScript_0001#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data);
90 };
91
92 class TriggerScript_0000cxx . . $ TriggerScript_0000# : public BaseScriptcxx . . $ BaseScript# {
93 public:
94 int16_t CallEventcxx . . $ TriggerScript_0000#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data);
95 };
96
97 // ======================
98 // Global Action Counters
99 // ======================
100
101 #define MAX_ACTION_CTR_VALUEcxx . . $ `scripts/HalfPipe.cpp:101:9`! 100000
102
103 int ScriptActionCtr_000cxx . . $ ScriptActionCtr_000. = 0;
104 int ScriptActionCtr_004cxx . . $ ScriptActionCtr_004. = 0;
105 int ScriptActionCtr_003cxx . . $ ScriptActionCtr_003. = 0;
106 int ScriptActionCtr_002cxx . . $ ScriptActionCtr_002. = 0;
107 int ScriptActionCtr_001cxx . . $ ScriptActionCtr_001. = 0;
108
109 // ========================================
110 // Function to Clear Global Action Counters
111 // ========================================
112 void ClearGlobalActionCtrscxx . . $ ClearGlobalActionCtrs(49f6e7a06ebc5aa8).(void) {
113 ScriptActionCtr_000cxx . . $ ScriptActionCtr_000. = 0;
114 ScriptActionCtr_004cxx . . $ ScriptActionCtr_004. = 0;
115 ScriptActionCtr_003cxx . . $ ScriptActionCtr_003. = 0;
116 ScriptActionCtr_002cxx . . $ ScriptActionCtr_002. = 0;
117 ScriptActionCtr_001cxx . . $ ScriptActionCtr_001. = 0;
118 }
119
120 // ========================================
121 // Function to Save Global Action Counters
122 // ========================================
123 void SaveGlobalActionCtrscxx . . $ SaveGlobalActionCtrs(5d22bdacc48458e8).(void *file_ptr) {
124 File_WriteIntcxx . . $ File_WriteInt.(ScriptActionCtr_000cxx . . $ ScriptActionCtr_000., file_ptr);
125 File_WriteIntcxx . . $ File_WriteInt.(ScriptActionCtr_004cxx . . $ ScriptActionCtr_004., file_ptr);
126 File_WriteIntcxx . . $ File_WriteInt.(ScriptActionCtr_003cxx . . $ ScriptActionCtr_003., file_ptr);
127 File_WriteIntcxx . . $ File_WriteInt.(ScriptActionCtr_002cxx . . $ ScriptActionCtr_002., file_ptr);
128 File_WriteIntcxx . . $ File_WriteInt.(ScriptActionCtr_001cxx . . $ ScriptActionCtr_001., file_ptr);
129 }
130
131 // ===========================================
132 // Function to Restore Global Action Counters
133 // ===========================================
134 void RestoreGlobalActionCtrscxx . . $ RestoreGlobalActionCtrs(5d22bdacc48458e8).(void *file_ptr) {
135 ScriptActionCtr_000cxx . . $ ScriptActionCtr_000. = File_ReadIntcxx . . $ File_ReadInt.(file_ptr);
136 ScriptActionCtr_004cxx . . $ ScriptActionCtr_004. = File_ReadIntcxx . . $ File_ReadInt.(file_ptr);
137 ScriptActionCtr_003cxx . . $ ScriptActionCtr_003. = File_ReadIntcxx . . $ File_ReadInt.(file_ptr);
138 ScriptActionCtr_002cxx . . $ ScriptActionCtr_002. = File_ReadIntcxx . . $ File_ReadInt.(file_ptr);
139 ScriptActionCtr_001cxx . . $ ScriptActionCtr_001. = File_ReadIntcxx . . $ File_ReadInt.(file_ptr);
140 }
141
142 // ===============================================================
143 // Start of Custom Script Block - DO NOT EDIT ANYTHING BEFORE THIS
144 // ===============================================================
145 /**{CUSTOM_SCRIPT_BLOCK_START}** DO NOT EDIT! **/
146
147 // Enter your custom script code here
148
149 /**{CUSTOM_SCRIPT_BLOCK_END}**** DO NOT EDIT! **/
150 // ============================================================
151 // End of Custom Script Block - DO NOT EDIT ANYTHING AFTER THIS
152 // ============================================================
153
154 // =================
155 // Message File Data
156 // =================
157
158 #define MAX_SCRIPT_MESSAGEScxx . . $ `scripts/HalfPipe.cpp:158:9`! 256
159 #define MAX_MSG_FILEBUF_LENcxx . . $ `scripts/HalfPipe.cpp:159:9`! 1024
160 #define NO_MESSAGE_STRINGcxx . . $ `scripts/HalfPipe.cpp:160:9`! "*Message Not Found*"
161 #define INV_MSGNAME_STRINGcxx . . $ `scripts/HalfPipe.cpp:161:9`! "*Message Name Invalid*"
162 #define WHITESPACE_CHARScxx . . $ `scripts/HalfPipe.cpp:162:9`! " \t\r\n"
163
164 // Structure for storing a script message
165 struct tScriptMessagecxx . . $ tScriptMessage# {
166 char *namecxx . . $ tScriptMessage#name.; // the name of the message
167 char *messagecxx . . $ tScriptMessage#message.; // the actual message text
168 };
169
170 // Global storage for level script messages
171 tScriptMessagecxx . . $ tScriptMessage# *message_listcxx . . $ message_list.[MAX_SCRIPT_MESSAGEScxx . . $ `scripts/HalfPipe.cpp:158:9`!];
172 int num_messagescxx . . $ num_messages.;
173
174 // ======================
175 // Message File Functions
176 // ======================
177
178 // Initializes the Message List
179 void InitMessageListcxx . . $ InitMessageList(49f6e7a06ebc5aa8).(void) {
180 for (int j = 0; j < MAX_SCRIPT_MESSAGEScxx . . $ `scripts/HalfPipe.cpp:158:9`!; j++)
181 message_listcxx . . $ message_list.[j] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
182 num_messagescxx . . $ num_messages. = 0;
183 }
184
185 // Clear the Message List
186 void ClearMessageListcxx . . $ ClearMessageList(49f6e7a06ebc5aa8).(void) {
187 for (int j = 0; j < num_messagescxx . . $ num_messages.; j++) {
188 freecxx . . $ free(bd21765a0afc8e3c).(message_listcxx . . $ message_list.[j]->namecxx . . $ tScriptMessage#name.);
189 freecxx . . $ free(bd21765a0afc8e3c).(message_listcxx . . $ message_list.[j]->messagecxx . . $ tScriptMessage#message.);
190 freecxx . . $ free(bd21765a0afc8e3c).(message_listcxx . . $ message_list.[j]);
191 message_listcxx . . $ message_list.[j] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
192 }
193 num_messagescxx . . $ num_messages. = 0;
194 }
195
196 // Adds a message to the list
197 int AddMessageToListcxx . . $ AddMessageToList(e99f026884c896d5).(char *name, char *msg) {
198 int pos;
199
200 // Make sure there is room in the list
201 if (num_messagescxx . . $ num_messages. >= MAX_SCRIPT_MESSAGEScxx . . $ `scripts/HalfPipe.cpp:158:9`!)
202 return false;
203
204 // Allocate memory for this message entry
205 pos = num_messagescxx . . $ num_messages.;
206 message_listcxx . . $ message_list.[pos] = (tScriptMessagecxx . . $ tScriptMessage# *)malloccxx . . $ malloc(9f008b2a9698428b).(sizeof(tScriptMessagecxx . . $ tScriptMessage#));
207 if (message_listcxx . . $ message_list.[pos] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
208 return false;
209
210 // Allocate memory for the message name
211 message_listcxx . . $ message_list.[pos]->namecxx . . $ tScriptMessage#name. = (char *)malloccxx . . $ malloc(9f008b2a9698428b).(strlen(name) + 1);
212 if (message_listcxx . . $ message_list.[pos]->namecxx . . $ tScriptMessage#name. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
213 freecxx . . $ free(bd21765a0afc8e3c).(message_listcxx . . $ message_list.[pos]);
214 return false;
215 }
216 strcpy(message_listcxx . . $ message_list.[pos]->namecxx . . $ tScriptMessage#name., name);
217
218 // Allocate memory for the message name
219 message_listcxx . . $ message_list.[pos]->messagecxx . . $ tScriptMessage#message. = (char *)malloccxx . . $ malloc(9f008b2a9698428b).(strlen(msg) + 1);
220 if (message_listcxx . . $ message_list.[pos]->messagecxx . . $ tScriptMessage#message. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
221 freecxx . . $ free(bd21765a0afc8e3c).(message_listcxx . . $ message_list.[pos]->namecxx . . $ tScriptMessage#name.);
222 freecxx . . $ free(bd21765a0afc8e3c).(message_listcxx . . $ message_list.[pos]);
223 return false;
224 }
225 strcpy(message_listcxx . . $ message_list.[pos]->messagecxx . . $ tScriptMessage#message., msg);
226 num_messagescxx . . $ num_messages.++;
227
228 return true;
229 }
230
231 // Removes any whitespace padding from the end of a string
232 void RemoveTrailingWhitespacecxx . . $ RemoveTrailingWhitespace(fda57c8427c60377).(char *s) {
233 int last_char_pos;
234
235 last_char_pos = strlen(s) - 1;
236 while (last_char_pos >= 0 && isspace(s[last_char_pos])) {
237 s[last_char_pos] = '\0';
238 last_char_pos--;
239 }
240 }
241
242 // Returns a pointer to the first non-whitespace char in given string
243 char *SkipInitialWhitespacecxx . . $ SkipInitialWhitespace(7a9722d75b371431).(char *s) {
244 while ((*s) != '\0' && isspace(*s))
245 s++;
246
247 return (s);
248 }
249
250 // Read in the Messages
251 int ReadMessageFilecxx . . $ ReadMessageFile(5c4306d8553b3696).(const char *filename) {
252 void *infile;
253 char filebuffer[MAX_MSG_FILEBUF_LENcxx . . $ `scripts/HalfPipe.cpp:159:9`! + 1];
254 char *line, *msg_start;
255 int line_num;
256 bool next_msgid_found;
257
258 // Try to open the file for loading
259 infile = File_Opencxx . . $ File_Open.(filename, "rt");
260 if (!infile)
261 return false;
262
263 line_num = 0;
264 next_msgid_found = true;
265
266 // Clear the message list
267 ClearMessageListcxx . . $ ClearMessageList(49f6e7a06ebc5aa8).();
268
269 // Read in and parse each line of the file
270 while (!File_eofcxx . . $ File_eof.(infile)) {
271
272 // Clear the buffer
273 strcpy(filebuffer, "");
274
275 // Read in a line from the file
276 File_ReadStringcxx . . $ File_ReadString.(filebuffer, MAX_MSG_FILEBUF_LENcxx . . $ `scripts/HalfPipe.cpp:159:9`!, infile);
277 line_num++;
278
279 // Remove whitespace padding at start and end of line
280 RemoveTrailingWhitespacecxx . . $ RemoveTrailingWhitespace(fda57c8427c60377).(filebuffer);
281 line = SkipInitialWhitespacecxx . . $ SkipInitialWhitespace(7a9722d75b371431).(filebuffer);
282
283 // If line is a comment, or empty, discard it
284 if (strlen(line) == 0 || strncmp(line, "//", 2) == 0)
285 continue;
286
287 if (!next_msgid_found) { // Parse out the last message ID number
288
289 // Grab the first keyword, make sure it's valid
290 line = strtok(line, WHITESPACE_CHARScxx . . $ `scripts/HalfPipe.cpp:162:9`!);
291 if (line == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
292 continue;
293
294 // Grab the second keyword, and assign it as the next message ID
295 line = strtok(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, WHITESPACE_CHARScxx . . $ `scripts/HalfPipe.cpp:162:9`!);
296 if (line == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
297 continue;
298
299 next_msgid_found = true;
300 } else { // Parse line as a message line
301
302 // Find the start of message, and mark it
303 msg_start = strchr(line, '=');
304 if (msg_start == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
305 continue;
306 msg_start[0] = '\0';
307 msg_start++;
308
309 // Add the message to the list
310 AddMessageToListcxx . . $ AddMessageToList(e99f026884c896d5).(line, msg_start);
311 }
312 }
313 File_Closecxx . . $ File_Close.(infile);
314
315 return true;
316 }
317
318 // Find a message
319 const char *GetMessagecxx . . $ GetMessage(fb58d2e09a2a1ce6).(const char *name) {
320 // Make sure given name is valid
321 if (name == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
322 return INV_MSGNAME_STRINGcxx . . $ `scripts/HalfPipe.cpp:161:9`!;
323
324 // Search message list for name
325 for (int j = 0; j < num_messagescxx . . $ num_messages.; j++)
326 if (strcmp(message_listcxx . . $ message_list.[j]->namecxx . . $ tScriptMessage#name., name) == 0)
327 return (message_listcxx . . $ message_list.[j]->messagecxx . . $ tScriptMessage#message.);
328
329 // Couldn't find it
330 return NO_MESSAGE_STRINGcxx . . $ `scripts/HalfPipe.cpp:160:9`!;
331 }
332
333 //======================
334 // Name List Arrays
335 //======================
336
337 #define NUM_DOOR_NAMEScxx . . $ `scripts/HalfPipe.cpp:337:9`! 0
338 const char **Door_namescxx . . $ Door_names. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
339 int *Door_handlescxx . . $ Door_handles. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
340
341 #define NUM_OBJECT_NAMEScxx . . $ `scripts/HalfPipe.cpp:341:9`! 0
342 const char **Object_namescxx . . $ Object_names. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
343 int *Object_handlescxx . . $ Object_handles. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
344
345 #define NUM_ROOM_NAMEScxx . . $ `scripts/HalfPipe.cpp:345:9`! 4
346 const char *Room_namescxx . . $ Room_names.[NUM_ROOM_NAMEScxx . . $ `scripts/HalfPipe.cpp:345:9`!] = {"BlueIn", "BlueOut", "RedOut", "RedIn"};
347 int Room_indexescxx . . $ Room_indexes.[NUM_ROOM_NAMEScxx . . $ `scripts/HalfPipe.cpp:345:9`!];
348
349 #define NUM_TRIGGER_NAMEScxx . . $ `scripts/HalfPipe.cpp:349:9`! 4
350 const char *Trigger_namescxx . . $ Trigger_names.[NUM_TRIGGER_NAMEScxx . . $ `scripts/HalfPipe.cpp:349:9`!] = {"BlueOut", "BlueIn", "RedOut", "RedIn"};
351 int Trigger_indexescxx . . $ Trigger_indexes.[NUM_TRIGGER_NAMEScxx . . $ `scripts/HalfPipe.cpp:349:9`!];
352 int Trigger_facescxx . . $ Trigger_faces.[NUM_TRIGGER_NAMEScxx . . $ `scripts/HalfPipe.cpp:349:9`!];
353 int Trigger_roomscxx . . $ Trigger_rooms.[NUM_TRIGGER_NAMEScxx . . $ `scripts/HalfPipe.cpp:349:9`!];
354
355 #define NUM_SOUND_NAMEScxx . . $ `scripts/HalfPipe.cpp:355:9`! 1
356 const char *Sound_namescxx . . $ Sound_names.[NUM_SOUND_NAMEScxx . . $ `scripts/HalfPipe.cpp:355:9`!] = {"LevSecAccelRelease"};
357 int Sound_indexescxx . . $ Sound_indexes.[NUM_SOUND_NAMEScxx . . $ `scripts/HalfPipe.cpp:355:9`!];
358
359 #define NUM_TEXTURE_NAMEScxx . . $ `scripts/HalfPipe.cpp:359:9`! 0
360 const char **Texture_namescxx . . $ Texture_names. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
361 int *Texture_indexescxx . . $ Texture_indexes. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
362
363 #define NUM_PATH_NAMEScxx . . $ `scripts/HalfPipe.cpp:363:9`! 0
364 const char **Path_namescxx . . $ Path_names. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
365 int *Path_indexescxx . . $ Path_indexes. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
366
367 #define NUM_MATCEN_NAMEScxx . . $ `scripts/HalfPipe.cpp:367:9`! 0
368 const char **Matcen_namescxx . . $ Matcen_names. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
369 int *Matcen_indexescxx . . $ Matcen_indexes. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
370
371 #define NUM_GOAL_NAMEScxx . . $ `scripts/HalfPipe.cpp:371:9`! 0
372 const char **Goal_namescxx . . $ Goal_names. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
373 int *Goal_indexescxx . . $ Goal_indexes. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
374
375 #define NUM_MESSAGE_NAMEScxx . . $ `scripts/HalfPipe.cpp:375:9`! 0
376 const char **Message_namescxx . . $ Message_names. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
377 const char **Message_stringscxx . . $ Message_strings. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
378
379 // ===============
380 // InitializeDLL()
381 // ===============
382 char STDCALLcxx . . $ `lib/module.h:88:11`! InitializeDLLcxx . . $ InitializeDLL(f9aae224659b2173).(tOSIRISModuleInitcxx . . $ tOSIRISModuleInit# *func_list) {
383 osicommon_Initializecxx . . $ osicommon_Initialize(5a9437a4d944b175).((tOSIRISModuleInitcxx . . $ tOSIRISModuleInit# *)func_list);
384 if (func_list->game_checksumcxx . . $ tOSIRISModuleInit#game_checksum. != CHECKSUMcxx . . $ `<built-in>:476:9`!) {
385 mprintfcxx . . $ mprintf.(0, "Game-Checksum FAIL!!! (%ul!=%ul)\n", func_list->game_checksumcxx . . $ tOSIRISModuleInit#game_checksum., CHECKSUMcxx . . $ `<built-in>:476:9`!);
386 mprintfcxx . . $ mprintf.(0, "RECOMPILE YOUR SCRIPTS!!!\n");
387 return 0;
388 }
389
390 ClearGlobalActionCtrscxx . . $ ClearGlobalActionCtrs(49f6e7a06ebc5aa8).();
391 dfInitcxx . . $ dfInit(49f6e7a06ebc5aa8).();
392 InitMessageListcxx . . $ InitMessageList(49f6e7a06ebc5aa8).();
393
394 // Build the filename of the message file
395 char filename[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! + 32];
396 int lang_type;
397 if (func_list->script_identifiercxx . . $ tOSIRISModuleInit#script_identifier. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
398 _splitpathcxx . . $ _splitpath(f70bbbea1d7ce513).(func_list->script_identifiercxx . . $ tOSIRISModuleInit#script_identifier., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, filename, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
399 lang_type = Game_GetLanguagecxx . . $ Game_GetLanguage.();
400 if (lang_type == LANGUAGE_FRENCHcxx . . $ `scripts/osiris_common.h:416:9`!)
401 strcat(filename, "_FRN");
402 else if (lang_type == LANGUAGE_GERMANcxx . . $ `scripts/osiris_common.h:413:9`!)
403 strcat(filename, "_GER");
404 else if (lang_type == LANGUAGE_ITALIANcxx . . $ `scripts/osiris_common.h:415:9`!)
405 strcat(filename, "_ITN");
406 else if (lang_type == LANGUAGE_SPANISHcxx . . $ `scripts/osiris_common.h:414:9`!)
407 strcat(filename, "_SPN");
408 strcat(filename, ".msg");
409 } else {
410 strcpy(filename, "HalfPipe5.msg");
411 lang_type = LANGUAGE_ENGLISHcxx . . $ `scripts/osiris_common.h:412:9`!;
412 }
413 if (!ReadMessageFilecxx . . $ ReadMessageFile(5c4306d8553b3696).(filename)) {
414 mprintfcxx . . $ mprintf.(0, "ERROR: Could not load message file - %s\n", filename);
415 }
416
417 int j;
418
419 // Do Door Index lookups
420 for (j = 0; j < NUM_DOOR_NAMEScxx . . $ `scripts/HalfPipe.cpp:337:9`!; j++)
421 Door_handlescxx . . $ Door_handles.[j] = Scrpt_FindDoorNamecxx . . $ Scrpt_FindDoorName.(Door_namescxx . . $ Door_names.[j]);
422
423 // Do Object Index lookups
424 for (j = 0; j < NUM_OBJECT_NAMEScxx . . $ `scripts/HalfPipe.cpp:341:9`!; j++)
425 Object_handlescxx . . $ Object_handles.[j] = Scrpt_FindObjectNamecxx . . $ Scrpt_FindObjectName.(Object_namescxx . . $ Object_names.[j]);
426
427 // Do Room Index lookups
428 for (j = 0; j < NUM_ROOM_NAMEScxx . . $ `scripts/HalfPipe.cpp:345:9`!; j++)
429 Room_indexescxx . . $ Room_indexes.[j] = Scrpt_FindRoomNamecxx . . $ Scrpt_FindRoomName.(Room_namescxx . . $ Room_names.[j]);
430
431 // Do Trigger Index lookups
432 for (j = 0; j < NUM_TRIGGER_NAMEScxx . . $ `scripts/HalfPipe.cpp:349:9`!; j++) {
433 Trigger_indexescxx . . $ Trigger_indexes.[j] = Scrpt_FindTriggerNamecxx . . $ Scrpt_FindTriggerName.(Trigger_namescxx . . $ Trigger_names.[j]);
434 Trigger_facescxx . . $ Trigger_faces.[j] = Scrpt_GetTriggerFacecxx . . $ Scrpt_GetTriggerFace.(Trigger_indexescxx . . $ Trigger_indexes.[j]);
435 Trigger_roomscxx . . $ Trigger_rooms.[j] = Scrpt_GetTriggerRoomcxx . . $ Scrpt_GetTriggerRoom.(Trigger_indexescxx . . $ Trigger_indexes.[j]);
436 }
437
438 // Do Sound Index lookups
439 for (j = 0; j < NUM_SOUND_NAMEScxx . . $ `scripts/HalfPipe.cpp:355:9`!; j++)
440 Sound_indexescxx . . $ Sound_indexes.[j] = Scrpt_FindSoundNamecxx . . $ Scrpt_FindSoundName.(Sound_namescxx . . $ Sound_names.[j]);
441
442 // Do Texture Index lookups
443 for (j = 0; j < NUM_TEXTURE_NAMEScxx . . $ `scripts/HalfPipe.cpp:359:9`!; j++)
444 Texture_indexescxx . . $ Texture_indexes.[j] = Scrpt_FindTextureNamecxx . . $ Scrpt_FindTextureName.(Texture_namescxx . . $ Texture_names.[j]);
445
446 // Do Path Index lookups
447 for (j = 0; j < NUM_PATH_NAMEScxx . . $ `scripts/HalfPipe.cpp:363:9`!; j++)
448 Path_indexescxx . . $ Path_indexes.[j] = Scrpt_FindPathNamecxx . . $ Scrpt_FindPathName.(Path_namescxx . . $ Path_names.[j]);
449
450 // Do Matcen Index lookups
451 for (j = 0; j < NUM_MATCEN_NAMEScxx . . $ `scripts/HalfPipe.cpp:367:9`!; j++)
452 Matcen_indexescxx . . $ Matcen_indexes.[j] = Scrpt_FindMatcenNamecxx . . $ Scrpt_FindMatcenName.(Matcen_namescxx . . $ Matcen_names.[j]);
453
454 // Do Goal Index lookups
455 for (j = 0; j < NUM_GOAL_NAMEScxx . . $ `scripts/HalfPipe.cpp:371:9`!; j++)
456 Goal_indexescxx . . $ Goal_indexes.[j] = Scrpt_FindLevelGoalNamecxx . . $ Scrpt_FindLevelGoalName.(Goal_namescxx . . $ Goal_names.[j]);
457
458 // Do Message Name lookups
459 for (j = 0; j < NUM_MESSAGE_NAMEScxx . . $ `scripts/HalfPipe.cpp:375:9`!; j++)
460 Message_stringscxx . . $ Message_strings.[j] = GetMessagecxx . . $ GetMessage(fb58d2e09a2a1ce6).(Message_namescxx . . $ Message_names.[j]);
461
462 return 1;
463 }
464
465 // =============
466 // ShutdownDLL()
467 // =============
468 void STDCALLcxx . . $ `lib/module.h:88:11`! ShutdownDLLcxx . . $ ShutdownDLL(49f6e7a06ebc5aa8).(void) { ClearMessageListcxx . . $ ClearMessageList(49f6e7a06ebc5aa8).(); }
469
470 // ===============
471 // GetGOScriptID()
472 // ===============
473 int STDCALLcxx . . $ `lib/module.h:88:11`! GetGOScriptIDcxx . . $ GetGOScriptID(a2648ab7e2ef960e).(const char *name, uint8_tcxx . . $ uint8_t# isdoor) { return -1; }
474
475 // ================
476 // CreateInstance()
477 // ================
478 void STDCALLPTRcxx . . $ `lib/module.h:90:10`! CreateInstancecxx . . $ CreateInstance(d1680a912d714170).(int id) {
479 switch (id) {
480 case ID_LEVEL_0000cxx . . $ `scripts/HalfPipe.cpp:54:9`!:
481 return new LevelScript_0000cxx . . $ LevelScript_0000#;
482 break;
483 case ID_TRIGGER_0003cxx . . $ `scripts/HalfPipe.cpp:56:9`!:
484 return new TriggerScript_0003cxx . . $ TriggerScript_0003#;
485 break;
486 case ID_TRIGGER_0002cxx . . $ `scripts/HalfPipe.cpp:57:9`!:
487 return new TriggerScript_0002cxx . . $ TriggerScript_0002#;
488 break;
489 case ID_TRIGGER_0001cxx . . $ `scripts/HalfPipe.cpp:58:9`!:
490 return new TriggerScript_0001cxx . . $ TriggerScript_0001#;
491 break;
492 case ID_TRIGGER_0000cxx . . $ `scripts/HalfPipe.cpp:59:9`!:
493 return new TriggerScript_0000cxx . . $ TriggerScript_0000#;
494 break;
495 default:
496 mprintfcxx . . $ mprintf.(0, "SCRIPT: Illegal ID (%d)\n", id);
497 break;
498 }
499 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
500 }
501
502 // =================
503 // DestroyInstance()
504 // =================
505 void STDCALLcxx . . $ `lib/module.h:88:11`! DestroyInstancecxx . . $ DestroyInstance(6ca3d68f5c5f0975).(int id, void *ptr) {
506 switch (id) {
507 case ID_LEVEL_0000cxx . . $ `scripts/HalfPipe.cpp:54:9`!:
508 delete ((LevelScript_0000cxx . . $ LevelScript_0000# *)ptr);
509 break;
510 case ID_TRIGGER_0003cxx . . $ `scripts/HalfPipe.cpp:56:9`!:
511 delete ((TriggerScript_0003cxx . . $ TriggerScript_0003# *)ptr);
512 break;
513 case ID_TRIGGER_0002cxx . . $ `scripts/HalfPipe.cpp:57:9`!:
514 delete ((TriggerScript_0002cxx . . $ TriggerScript_0002# *)ptr);
515 break;
516 case ID_TRIGGER_0001cxx . . $ `scripts/HalfPipe.cpp:58:9`!:
517 delete ((TriggerScript_0001cxx . . $ TriggerScript_0001# *)ptr);
518 break;
519 case ID_TRIGGER_0000cxx . . $ `scripts/HalfPipe.cpp:59:9`!:
520 delete ((TriggerScript_0000cxx . . $ TriggerScript_0000# *)ptr);
521 break;
522 default:
523 mprintfcxx . . $ mprintf.(0, "SCRIPT: Illegal ID (%d)\n", id);
524 break;
525 }
526 }
527
528 // ===================
529 // CallInstanceEvent()
530 // ===================
531 int16_t STDCALLcxx . . $ `lib/module.h:88:11`! CallInstanceEventcxx . . $ CallInstanceEvent(79be2a5a01598f29).(int id, void *ptr, int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data) {
532 switch (id) {
533 case ID_LEVEL_0000cxx . . $ `scripts/HalfPipe.cpp:54:9`!:
534 case ID_TRIGGER_0003cxx . . $ `scripts/HalfPipe.cpp:56:9`!:
535 case ID_TRIGGER_0002cxx . . $ `scripts/HalfPipe.cpp:57:9`!:
536 case ID_TRIGGER_0001cxx . . $ `scripts/HalfPipe.cpp:58:9`!:
537 case ID_TRIGGER_0000cxx . . $ `scripts/HalfPipe.cpp:59:9`!:
538 return ((BaseScriptcxx . . $ BaseScript# *)ptr)->CallEventcxx . . $ BaseScript#CallEvent(585a6502c7945bab).(event, data);
539 break;
540 default:
541 mprintfcxx . . $ mprintf.(0, "SCRIPT: Illegal ID (%d)\n", id);
542 break;
543 }
544 return CONTINUE_CHAINcxx . . $ `scripts/osiris_common.h:357:9`! | CONTINUE_DEFAULTcxx . . $ `scripts/osiris_common.h:358:9`!;
545 }
546
547 // ==================
548 // SaveRestoreState()
549 // ==================
550 int STDCALLcxx . . $ `lib/module.h:88:11`! SaveRestoreStatecxx . . $ SaveRestoreState(5276b51c10b71c09).(void *file_ptr, uint8_tcxx . . $ uint8_t# saving_state) { return 0; }
551
552 // ====================
553 // GetTriggerScriptID()
554 // ====================
555 int STDCALLcxx . . $ `lib/module.h:88:11`! GetTriggerScriptIDcxx . . $ GetTriggerScriptID(9b79fb6aee4c0440).(int trigger_room, int trigger_face) {
556 if (trigger_room == Trigger_roomscxx . . $ Trigger_rooms.[0] && trigger_face == Trigger_facescxx . . $ Trigger_faces.[0])
557 return ID_TRIGGER_0003cxx . . $ `scripts/HalfPipe.cpp:56:9`!;
558
559 if (trigger_room == Trigger_roomscxx . . $ Trigger_rooms.[1] && trigger_face == Trigger_facescxx . . $ Trigger_faces.[1])
560 return ID_TRIGGER_0002cxx . . $ `scripts/HalfPipe.cpp:57:9`!;
561
562 if (trigger_room == Trigger_roomscxx . . $ Trigger_rooms.[2] && trigger_face == Trigger_facescxx . . $ Trigger_faces.[2])
563 return ID_TRIGGER_0001cxx . . $ `scripts/HalfPipe.cpp:58:9`!;
564
565 if (trigger_room == Trigger_roomscxx . . $ Trigger_rooms.[3] && trigger_face == Trigger_facescxx . . $ Trigger_faces.[3])
566 return ID_TRIGGER_0000cxx . . $ `scripts/HalfPipe.cpp:59:9`!;
567
568 return -1;
569 }
570
571 // =================
572 // GetCOScriptList()
573 // =================
574 int STDCALLcxx . . $ `lib/module.h:88:11`! GetCOScriptListcxx . . $ GetCOScriptList(4454eefbcea844d6).(int **list, int **id_list) {
575 static int *cust_handle_list = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
576 static int *cust_id_list = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
577
578 *list = cust_handle_list;
579 *id_list = cust_id_list;
580
581 return 0;
582 }
583
584 //=======================
585 // Script Implementation
586 //=======================
587
588 BaseScriptcxx . . $ BaseScript#::BaseScriptcxx . . $ BaseScript#BaseScript(49f6e7a06ebc5aa8).() {}
589
590 BaseScriptcxx . . $ BaseScript#::~cxx . . $ BaseScript#`~BaseScript`(ced63f7c635d850d).BaseScriptcxx . . $ BaseScript#() {}
591
592 int16_t BaseScriptcxx . . $ BaseScript#::CallEventcxx . . $ BaseScript#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data) {
593 mprintfcxx . . $ mprintf.(0, "BaseScript::CallEvent()\n");
594 return CONTINUE_CHAINcxx . . $ `scripts/osiris_common.h:357:9`! | CONTINUE_DEFAULTcxx . . $ `scripts/osiris_common.h:358:9`!;
595 }
596
597 int16_t LevelScript_0000cxx . . $ LevelScript_0000#::CallEventcxx . . $ LevelScript_0000#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data) {
598 switch (event) {
599 case EVT_SAVESTATEcxx . . $ `scripts/osiris_common.h:376:9`!: {
600 tOSIRISEVTSAVESTATEcxx . . $ tOSIRISEVTSAVESTATE# *event_data = &data->evt_savestatecxx . . $ tOSIRISEventInfo#$anonymous_type_1#evt_savestate.;
601
602 SaveGlobalActionCtrscxx . . $ SaveGlobalActionCtrs(5d22bdacc48458e8).(event_data->fileptrcxx . . $ tOSIRISEVTSAVESTATE#fileptr.);
603 dfSavecxx . . $ dfSave(5d22bdacc48458e8).(event_data->fileptrcxx . . $ tOSIRISEVTSAVESTATE#fileptr.);
604 } break;
605 case EVT_RESTORESTATEcxx . . $ `scripts/osiris_common.h:377:9`!: {
606 tOSIRISEVTRESTORESTATEcxx . . $ tOSIRISEVTRESTORESTATE# *event_data = &data->evt_restorestatecxx . . $ tOSIRISEventInfo#$anonymous_type_1#evt_restorestate.;
607
608 RestoreGlobalActionCtrscxx . . $ RestoreGlobalActionCtrs(5d22bdacc48458e8).(event_data->fileptrcxx . . $ tOSIRISEVTRESTORESTATE#fileptr.);
609 dfRestorecxx . . $ dfRestore(5d22bdacc48458e8).(event_data->fileptrcxx . . $ tOSIRISEVTRESTORESTATE#fileptr.);
610 } break;
611 case EVT_LEVELSTARTcxx . . $ `scripts/osiris_common.h:373:9`!: {
612 tOSIRISEVTLEVELSTARTcxx . . $ tOSIRISEVTLEVELSTART# *event_data = &data->evt_levelstartcxx . . $ tOSIRISEventInfo#$anonymous_type_1#evt_levelstart.;
613
614 ClearGlobalActionCtrscxx . . $ ClearGlobalActionCtrs(49f6e7a06ebc5aa8).();
615 dfInitcxx . . $ dfInit(49f6e7a06ebc5aa8).();
616
617 // Script 000: WindStart
618 if (1) {
619 aRoomSetWindcxx . . $ aRoomSetWind(c31bc224e645f73e).(Room_indexescxx . . $ Room_indexes.[0], 0.000000f, 0.000000f, -20.000000f, 1.500000f);
620 aRoomSetWindcxx . . $ aRoomSetWind(c31bc224e645f73e).(Room_indexescxx . . $ Room_indexes.[1], 0.000000f, 0.000000f, 20.000000f, 1.500000f);
621 aRoomSetWindcxx . . $ aRoomSetWind(c31bc224e645f73e).(Room_indexescxx . . $ Room_indexes.[2], 0.000000f, 0.000000f, -20.000000f, 1.500000f);
622 aRoomSetWindcxx . . $ aRoomSetWind(c31bc224e645f73e).(Room_indexescxx . . $ Room_indexes.[3], 0.000000f, 0.000000f, 20.000000f, 1.500000f);
623
624 // Increment the script action counter
625 if (ScriptActionCtr_000cxx . . $ ScriptActionCtr_000. < MAX_ACTION_CTR_VALUEcxx . . $ `scripts/HalfPipe.cpp:101:9`!)
626 ScriptActionCtr_000cxx . . $ ScriptActionCtr_000.++;
627 }
628 } break;
629 }
630 return CONTINUE_CHAINcxx . . $ `scripts/osiris_common.h:357:9`! | CONTINUE_DEFAULTcxx . . $ `scripts/osiris_common.h:358:9`!;
631 }
632
633 int16_t TriggerScript_0003cxx . . $ TriggerScript_0003#::CallEventcxx . . $ TriggerScript_0003#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data) {
634 switch (event) {
635 case EVT_COLLIDEcxx . . $ `scripts/osiris_common.h:366:9`!: {
636 tOSIRISEVTCOLLIDEcxx . . $ tOSIRISEVTCOLLIDE# *event_data = &data->evt_collidecxx . . $ tOSIRISEventInfo#$anonymous_type_1#evt_collide.;
637
638 // Script 004: BlueOut
639 if (1) {
640 aMiscShakeAreacxx . . $ aMiscShakeArea(3b3943b4e4191a93).(event_data->it_handlecxx . . $ tOSIRISEVTCOLLIDE#it_handle., 50.000000f, 40.000000f);
641 aSoundPlayObjectcxx . . $ aSoundPlayObject(c2f439e40e2f19ed).(Sound_indexescxx . . $ Sound_indexes.[0], event_data->it_handlecxx . . $ tOSIRISEVTCOLLIDE#it_handle., 1.000000f);
642
643 // Increment the script action counter
644 if (ScriptActionCtr_004cxx . . $ ScriptActionCtr_004. < MAX_ACTION_CTR_VALUEcxx . . $ `scripts/HalfPipe.cpp:101:9`!)
645 ScriptActionCtr_004cxx . . $ ScriptActionCtr_004.++;
646 }
647 } break;
648 }
649 return CONTINUE_CHAINcxx . . $ `scripts/osiris_common.h:357:9`! | CONTINUE_DEFAULTcxx . . $ `scripts/osiris_common.h:358:9`!;
650 }
651
652 int16_t TriggerScript_0002cxx . . $ TriggerScript_0002#::CallEventcxx . . $ TriggerScript_0002#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data) {
653 switch (event) {
654 case EVT_COLLIDEcxx . . $ `scripts/osiris_common.h:366:9`!: {
655 tOSIRISEVTCOLLIDEcxx . . $ tOSIRISEVTCOLLIDE# *event_data = &data->evt_collidecxx . . $ tOSIRISEventInfo#$anonymous_type_1#evt_collide.;
656
657 // Script 003: BlueIn
658 if (1) {
659 aMiscShakeAreacxx . . $ aMiscShakeArea(3b3943b4e4191a93).(event_data->it_handlecxx . . $ tOSIRISEVTCOLLIDE#it_handle., 50.000000f, 40.000000f);
660 aSoundPlayObjectcxx . . $ aSoundPlayObject(c2f439e40e2f19ed).(Sound_indexescxx . . $ Sound_indexes.[0], event_data->it_handlecxx . . $ tOSIRISEVTCOLLIDE#it_handle., 1.000000f);
661
662 // Increment the script action counter
663 if (ScriptActionCtr_003cxx . . $ ScriptActionCtr_003. < MAX_ACTION_CTR_VALUEcxx . . $ `scripts/HalfPipe.cpp:101:9`!)
664 ScriptActionCtr_003cxx . . $ ScriptActionCtr_003.++;
665 }
666 } break;
667 }
668 return CONTINUE_CHAINcxx . . $ `scripts/osiris_common.h:357:9`! | CONTINUE_DEFAULTcxx . . $ `scripts/osiris_common.h:358:9`!;
669 }
670
671 int16_t TriggerScript_0001cxx . . $ TriggerScript_0001#::CallEventcxx . . $ TriggerScript_0001#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data) {
672 switch (event) {
673 case EVT_COLLIDEcxx . . $ `scripts/osiris_common.h:366:9`!: {
674 tOSIRISEVTCOLLIDEcxx . . $ tOSIRISEVTCOLLIDE# *event_data = &data->evt_collidecxx . . $ tOSIRISEventInfo#$anonymous_type_1#evt_collide.;
675
676 // Script 002: RedOut
677 if (1) {
678 aMiscShakeAreacxx . . $ aMiscShakeArea(3b3943b4e4191a93).(event_data->it_handlecxx . . $ tOSIRISEVTCOLLIDE#it_handle., 50.000000f, 40.000000f);
679 aSoundPlayObjectcxx . . $ aSoundPlayObject(c2f439e40e2f19ed).(Sound_indexescxx . . $ Sound_indexes.[0], event_data->it_handlecxx . . $ tOSIRISEVTCOLLIDE#it_handle., 1.000000f);
680
681 // Increment the script action counter
682 if (ScriptActionCtr_002cxx . . $ ScriptActionCtr_002. < MAX_ACTION_CTR_VALUEcxx . . $ `scripts/HalfPipe.cpp:101:9`!)
683 ScriptActionCtr_002cxx . . $ ScriptActionCtr_002.++;
684 }
685 } break;
686 }
687 return CONTINUE_CHAINcxx . . $ `scripts/osiris_common.h:357:9`! | CONTINUE_DEFAULTcxx . . $ `scripts/osiris_common.h:358:9`!;
688 }
689
690 int16_t TriggerScript_0000cxx . . $ TriggerScript_0000#::CallEventcxx . . $ TriggerScript_0000#CallEvent(585a6502c7945bab).(int event, tOSIRISEventInfocxx . . $ tOSIRISEventInfo# *data) {
691 switch (event) {
692 case EVT_COLLIDEcxx . . $ `scripts/osiris_common.h:366:9`!: {
693 tOSIRISEVTCOLLIDEcxx . . $ tOSIRISEVTCOLLIDE# *event_data = &data->evt_collidecxx . . $ tOSIRISEventInfo#$anonymous_type_1#evt_collide.;
694
695 // Script 001: RedIn
696 if (1) {
697 aMiscShakeAreacxx . . $ aMiscShakeArea(3b3943b4e4191a93).(event_data->it_handlecxx . . $ tOSIRISEVTCOLLIDE#it_handle., 50.000000f, 40.000000f);
698 aSoundPlayObjectcxx . . $ aSoundPlayObject(c2f439e40e2f19ed).(Sound_indexescxx . . $ Sound_indexes.[0], event_data->it_handlecxx . . $ tOSIRISEVTCOLLIDE#it_handle., 1.000000f);
699
700 // Increment the script action counter
701 if (ScriptActionCtr_001cxx . . $ ScriptActionCtr_001. < MAX_ACTION_CTR_VALUEcxx . . $ `scripts/HalfPipe.cpp:101:9`!)
702 ScriptActionCtr_001cxx . . $ ScriptActionCtr_001.++;
703 }
704 } break;
705 }
706 return CONTINUE_CHAINcxx . . $ `scripts/osiris_common.h:357:9`! | CONTINUE_DEFAULTcxx . . $ `scripts/osiris_common.h:358:9`!;
707 }
708
709 /*********************************************************
710 Script Save Block: DO NOT TOUCH ANYTHING IN THIS BLOCK!!!
711 **********************************************************
712 $$SCRIPT_BLOCK_START
713
714 VERSION 3
715 NEXT_ID 5
716
717 // UserType value blocks
718 $$UTYPE_VALS_START UserVar
719 $$UTYPE_VALS_END
720
721 $$UTYPE_VALS_START UserFlag
722 $$UTYPE_VALS_END
723
724 $$UTYPE_VALS_START SpewHandle
725 $$UTYPE_VALS_END
726
727 $$UTYPE_VALS_START TimerID
728 $$UTYPE_VALS_END
729
730 $$UTYPE_VALS_START SavedObjectSlot
731 $$UTYPE_VALS_END
732
733 $$UTYPE_VALS_START GoalID
734 $$UTYPE_VALS_END
735
736
737 // Name Lists
738 $$DOOR_LIST_START
739 $$DOOR_LIST_END
740
741 $$OBJECT_LIST_START
742 $$OBJECT_LIST_END
743
744 $$ROOM_LIST_START
745 BlueIn
746 BlueOut
747 RedOut
748 RedIn
749 $$ROOM_LIST_END
750
751 $$TRIGGER_LIST_START
752 BlueOut
753 BlueIn
754 RedOut
755 RedIn
756 $$TRIGGER_LIST_END
757
758 $$SOUND_LIST_START
759 LevSecAccelRelease
760 $$SOUND_LIST_END
761
762 $$TEXTURE_LIST_START
763 $$TEXTURE_LIST_END
764
765 $$SPECNAME_LIST_START
766 $$SPECNAME_LIST_END
767
768 $$PATH_LIST_START
769 $$PATH_LIST_END
770
771 $$MATCEN_LIST_START
772 $$MATCEN_LIST_END
773
774 $$GOAL_LIST_START
775 $$GOAL_LIST_END
776
777 $$STRM_AUDIO_LIST_START
778 $$STRM_AUDIO_LIST_END
779
780
781 // Script Tree Dump
782 00:0:WindStart
783 $$CHILD_BLOCK_START
784 01:2:0
785 02:6
786 03:0
787 $$CHILD_BLOCK_START
788 05:0
789 $$CHILD_BLOCK_END
790 04:0:0:0
791 $$CHILD_BLOCK_START
792 08:aRoomSetWind
793 $$CHILD_BLOCK_START
794 10:2:0:Room
795 10:6:0.000000:X
796 10:6:0.000000:Y
797 10:6:-20.000000:Z
798 10:6:1.500000:Speed
799 $$CHILD_BLOCK_END
800 08:aRoomSetWind
801 $$CHILD_BLOCK_START
802 10:2:1:Room
803 10:6:0.000000:X
804 10:6:0.000000:Y
805 10:6:20.000000:Z
806 10:6:1.500000:Speed
807 $$CHILD_BLOCK_END
808 08:aRoomSetWind
809 $$CHILD_BLOCK_START
810 10:2:2:Room
811 10:6:0.000000:X
812 10:6:0.000000:Y
813 10:6:-20.000000:Z
814 10:6:1.500000:Speed
815 $$CHILD_BLOCK_END
816 08:aRoomSetWind
817 $$CHILD_BLOCK_START
818 10:2:3:Room
819 10:6:0.000000:X
820 10:6:0.000000:Y
821 10:6:20.000000:Z
822 10:6:1.500000:Speed
823 $$CHILD_BLOCK_END
824 $$CHILD_BLOCK_END
825 $$CHILD_BLOCK_END
826 00:4:BlueOut
827 $$CHILD_BLOCK_START
828 01:0:0
829 02:1
830 03:0
831 $$CHILD_BLOCK_START
832 05:0
833 $$CHILD_BLOCK_END
834 04:0:0:0
835 $$CHILD_BLOCK_START
836 08:aMiscShakeArea
837 $$CHILD_BLOCK_START
838 10:1:1:-1:Object
839 10:6:50.000000:Amount
840 10:6:40.000000:Dist
841 $$CHILD_BLOCK_END
842 08:aSoundPlayObject
843 $$CHILD_BLOCK_START
844 10:12:0:Sound
845 10:1:1:-1:Object
846 10:9:1.000000:Volume
847 $$CHILD_BLOCK_END
848 08:DO NOTHING
849 $$CHILD_BLOCK_END
850 $$CHILD_BLOCK_END
851 00:3:BlueIn
852 $$CHILD_BLOCK_START
853 01:0:1
854 02:1
855 03:0
856 $$CHILD_BLOCK_START
857 05:0
858 $$CHILD_BLOCK_END
859 04:0:0:0
860 $$CHILD_BLOCK_START
861 08:aMiscShakeArea
862 $$CHILD_BLOCK_START
863 10:1:1:-1:Object
864 10:6:50.000000:Amount
865 10:6:40.000000:Dist
866 $$CHILD_BLOCK_END
867 08:aSoundPlayObject
868 $$CHILD_BLOCK_START
869 10:12:0:Sound
870 10:1:1:-1:Object
871 10:9:1.000000:Volume
872 $$CHILD_BLOCK_END
873 08:DO NOTHING
874 $$CHILD_BLOCK_END
875 $$CHILD_BLOCK_END
876 00:2:RedOut
877 $$CHILD_BLOCK_START
878 01:0:2
879 02:1
880 03:0
881 $$CHILD_BLOCK_START
882 05:0
883 $$CHILD_BLOCK_END
884 04:0:0:0
885 $$CHILD_BLOCK_START
886 08:aMiscShakeArea
887 $$CHILD_BLOCK_START
888 10:1:1:-1:Object
889 10:6:50.000000:Amount
890 10:6:40.000000:Dist
891 $$CHILD_BLOCK_END
892 08:aSoundPlayObject
893 $$CHILD_BLOCK_START
894 10:12:0:Sound
895 10:1:1:-1:Object
896 10:9:1.000000:Volume
897 $$CHILD_BLOCK_END
898 08:DO NOTHING
899 $$CHILD_BLOCK_END
900 $$CHILD_BLOCK_END
901 00:1:RedIn
902 $$CHILD_BLOCK_START
903 01:0:3
904 02:1
905 03:0
906 $$CHILD_BLOCK_START
907 05:0
908 $$CHILD_BLOCK_END
909 04:0:0:0
910 $$CHILD_BLOCK_START
911 08:aMiscShakeArea
912 $$CHILD_BLOCK_START
913 10:1:1:-1:Object
914 10:6:50.000000:Amount
915 10:6:40.000000:Dist
916 $$CHILD_BLOCK_END
917 08:aSoundPlayObject
918 $$CHILD_BLOCK_START
919 10:12:0:Sound
920 10:1:1:-1:Object
921 10:9:1.000000:Volume
922 $$CHILD_BLOCK_END
923 08:DO NOTHING
924 $$CHILD_BLOCK_END
925 $$CHILD_BLOCK_END
926
927 $$SCRIPT_BLOCK_END
928 *********************************************************/