| 626 |
lars |
1 |
// EF2 Level Script File
|
|
|
2 |
// Level map6.bsp
|
|
|
3 |
// Script by: ltiefland
|
| 752 |
ticknswist |
4 |
// Geometry by: TRon, Argyle, TickNSwisted
|
| 626 |
lars |
5 |
// Created on: 10.12.2004
|
| 752 |
ticknswist |
6 |
// Last Updated on: 31.07.2005
|
|
|
7 |
// Last Updated by: TickNSwisted
|
| 626 |
lars |
8 |
|
| 745 |
lars |
9 |
void door_k_open();
|
|
|
10 |
float number_weapons_taken;
|
|
|
11 |
void obstacle();
|
|
|
12 |
void intro_cin();
|
|
|
13 |
void skip_intro_cin();
|
|
|
14 |
void setup_world();
|
|
|
15 |
void final_cin();
|
|
|
16 |
void skip_final_cin();
|
|
|
17 |
void levelchange();
|
|
|
18 |
|
| 626 |
lars |
19 |
void main(); // needed by ALL scripts
|
|
|
20 |
|
|
|
21 |
void main()
|
|
|
22 |
{
|
| 752 |
ticknswist |
23 |
//PLAYER WEAPON LOADOUT
|
|
|
24 |
$player.give( "models/weapons/worldmodel-phaser-STX.tik" );
|
|
|
25 |
$player.give( "models/weapons/worldmodel-compressionrifle.tik" );
|
| 745 |
lars |
26 |
setup_world();
|
|
|
27 |
thread intro_cin();
|
| 626 |
lars |
28 |
}
|
| 745 |
lars |
29 |
|
|
|
30 |
void setup_world()
|
|
|
31 |
{
|
|
|
32 |
$illia_prisoner.ai_off();
|
|
|
33 |
$illia_prisoner.anim( "cin-m8_situp" );
|
|
|
34 |
$illia_prisoner.removeactorweapon ( "CompressionRifle" );
|
|
|
35 |
$illia_transporter.ai_off();
|
|
|
36 |
$illia_transporter.hide();
|
|
|
37 |
$illia_bridge.ai_off();
|
|
|
38 |
$illia_bridge.hide();
|
|
|
39 |
$illia_bridge2.ai_off();
|
|
|
40 |
$illia_bridge2.hide();
|
|
|
41 |
$illia_shuttle.ai_off();
|
|
|
42 |
$illia_shuttle.hide();
|
|
|
43 |
$warbird.forcealpha( 1 );
|
|
|
44 |
$warbird.alpha( 0 );
|
|
|
45 |
$warbird.hide();
|
|
|
46 |
$scan_beam1.hide();
|
|
|
47 |
$scan_beam2.hide();
|
|
|
48 |
$scan_beam3.hide();
|
|
|
49 |
$scan_beam4.hide();
|
|
|
50 |
$scan2_beam1.hide();
|
|
|
51 |
$scan2_beam2.hide();
|
|
|
52 |
$scan2_beam3.hide();
|
|
|
53 |
$scan2_beam4.hide();
|
|
|
54 |
$screen_on.hide();
|
|
|
55 |
$screen_off.show();
|
|
|
56 |
number_weapons_taken = 0;
|
|
|
57 |
$weapon1_steam.hide();
|
|
|
58 |
$weapon2_steam.hide();
|
|
|
59 |
$weapon3_steam.hide();
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
void warbird_cin()
|
|
|
63 |
{
|
|
|
64 |
spawn ( "Camera" , "targetname" , "cam2" );
|
|
|
65 |
freezeplayer();
|
|
|
66 |
cinematic();
|
|
|
67 |
//cam_fadein( 1, 0, 0, 0, 1, 0 );
|
|
|
68 |
letterbox ( .1 );
|
|
|
69 |
wait( .05 );
|
|
|
70 |
$cam2.follow( $map6_warbird );
|
|
|
71 |
$cam2.cut();
|
|
|
72 |
wait( .5);
|
|
|
73 |
cuecamera($cam2);
|
|
|
74 |
wait(.5);
|
|
|
75 |
$warbird.playsound( "sound/cloak.wav", 0, 4, 20000 );
|
|
|
76 |
$warbird.fadein( 2, 1 );
|
|
|
77 |
$warbird.show();
|
|
|
78 |
wait(4);
|
|
|
79 |
noncinematic();
|
|
|
80 |
releaseplayer();
|
|
|
81 |
cueplayer ();
|
|
|
82 |
clearletterbox(.1);
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
void intro_cin()
|
|
|
86 |
{
|
|
|
87 |
spawn ( "Camera" , "targetname" , "cam1" );
|
|
|
88 |
$illia_shuttle.show();
|
|
|
89 |
$illia_shuttle.anim("cin-m7-end-sydney");
|
|
|
90 |
freezeplayer();
|
|
|
91 |
cinematic();
|
|
|
92 |
//cam_fadein( 1, 0, 0, 0, 1, 0 );
|
|
|
93 |
letterbox ( .1 );
|
|
|
94 |
skipthread("skip_intro_cin");
|
|
|
95 |
wait( .05 );
|
|
|
96 |
$cam1.follow( $map6_planet );
|
|
|
97 |
$cam1.cut();
|
|
|
98 |
wait( .5);
|
|
|
99 |
cuecamera($cam1);
|
|
|
100 |
$shuttle.bind( $shuttle_origin );
|
|
|
101 |
$shuttle_door.bind( $shuttle_origin );
|
|
|
102 |
$shuttle.time(10);
|
|
|
103 |
wait(.1);
|
|
|
104 |
$shuttle_origin.followpath( $shuttle_path, "normalangles" );
|
|
|
105 |
|
|
|
106 |
wait(3);
|
| 749 |
lars |
107 |
stuffcmd( "showmenu antioch_system\n" );
|
| 745 |
lars |
108 |
wait(3);
|
|
|
109 |
stuffcmd ( "popmenu 0\n" );
|
|
|
110 |
wait(5);
|
|
|
111 |
$cam1.follow($map6_prisoner);
|
|
|
112 |
$cam1.cut();
|
|
|
113 |
wait(.5);
|
|
|
114 |
cuecamera($cam1);
|
| 749 |
lars |
115 |
$illia_prisoner.playdialog("localization/sound/dialog/map06/illia/uneventful.mp3",1,10000,0);
|
|
|
116 |
waitfordialog($illia_prisoner);
|
|
|
117 |
$illia_prisoner.playdialog("localization/sound/dialog/map06/illia/surprise.mp3",1,10000,0);
|
|
|
118 |
waitfordialog($illia_prisoner);
|
| 745 |
lars |
119 |
$illia_prisoner.playdialog("localization/sound/dialog/map06/illia/notrace.mp3",1,10000,0);
|
|
|
120 |
waitfordialog($illia_prisoner);
|
|
|
121 |
$illia_prisoner.playdialog("localization/sound/dialog/map06/illia/ruins.mp3",1,10000,0);
|
|
|
122 |
waitfordialog($illia_prisoner);
|
|
|
123 |
$illia_prisoner.playdialog("localization/sound/dialog/map06/illia/begin.mp3",1,10000,0);
|
|
|
124 |
waitfordialog($illia_prisoner);
|
|
|
125 |
wait(2);
|
|
|
126 |
$cam1.follow($antioch_cam3);
|
|
|
127 |
$cam1.cut();
|
|
|
128 |
wait(.5);
|
|
|
129 |
cuecamera($cam1);
|
|
|
130 |
$illia_shuttle.DisplayEffect( "TransportOut", "Federation" );
|
|
|
131 |
wait(2);
|
|
|
132 |
thread skip_intro_cin();
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
void skip_intro_cin()
|
|
|
136 |
{
|
|
|
137 |
cam_fadeout( .5, 0, 0, 0, 1, 0 );
|
|
|
138 |
killthread ( "intro_cin" );
|
|
|
139 |
wait ( .5 );
|
|
|
140 |
noncinematic();
|
|
|
141 |
releaseplayer();
|
|
|
142 |
cueplayer ();
|
|
|
143 |
clearletterbox(.1);
|
|
|
144 |
cam_fadein( 1, 0, 0, 0, 1, 0 );
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
void final_cin()
|
|
|
148 |
{
|
|
|
149 |
spawn ( "Camera" , "targetname" , "cam3" );
|
|
|
150 |
spawn ( "Camera" , "targetname" , "cam4" );
|
|
|
151 |
spawn ( "Camera" , "targetname" , "cam5" );
|
|
|
152 |
freezeplayer();
|
|
|
153 |
cinematic();
|
|
|
154 |
//cam_fadein( 1, 0, 0, 0, 1, 0 );
|
|
|
155 |
letterbox ( .1 );
|
|
|
156 |
skipthread("skip_final_cin");
|
|
|
157 |
$illia_transporter.show();
|
|
|
158 |
wait( .05 );
|
|
|
159 |
$cam3.follow( $map6_transporter );
|
|
|
160 |
$cam3.cut();
|
|
|
161 |
$cam4.follow( $map6_bridge );
|
|
|
162 |
$cam4.cut();
|
|
|
163 |
wait( .5);
|
|
|
164 |
cuecamera($cam3);
|
|
|
165 |
|
|
|
166 |
wait(1);
|
|
|
167 |
$illia_transporter.DisplayEffect( "TransportOut", "Federation" );
|
|
|
168 |
wait(2);
|
|
|
169 |
|
|
|
170 |
cuecamera($cam4);
|
|
|
171 |
|
|
|
172 |
$illia_bridge.DisplayEffect( "TransportIn", "Federation" );
|
|
|
173 |
wait(2);
|
|
|
174 |
$illia_bridge.show();
|
|
|
175 |
|
|
|
176 |
$illia_bridge.headWatchTarget( "illia_look_first", 7 );
|
|
|
177 |
wait( 1 );
|
|
|
178 |
$illia_bridge.headWatchTarget( "illia_look_second", 7 );
|
|
|
179 |
|
|
|
180 |
wait(2);
|
|
|
181 |
|
|
|
182 |
$cam5.follow( $map6_prisoner );
|
|
|
183 |
$illia_bridge.hide();
|
|
|
184 |
$illia_bridge.notsolid();
|
|
|
185 |
$cam5.cut();
|
|
|
186 |
cuecamera($cam5);
|
|
|
187 |
$illia_prisoner.playdialog("localization/sound/dialog/map06/illia/ihadmydoubts.mp3",1,10000,0);
|
|
|
188 |
waitfordialog($illia_prisoner);
|
|
|
189 |
wait(.5);
|
|
|
190 |
|
| 746 |
lars |
191 |
$cam4.follow($map7_illia_cam1);
|
| 745 |
lars |
192 |
$cum4.cut();
|
|
|
193 |
wait(.5);
|
|
|
194 |
cuecamera($cam4);
|
|
|
195 |
//wait(5);
|
|
|
196 |
$illia_bridge2.show();
|
|
|
197 |
$illia_bridge2.anim( "cin-m7-end-sydney" );
|
|
|
198 |
$illia_bridge2.playdialog("localization/sound/dialog/map06/illia/proof.mp3",1,10000,0);
|
|
|
199 |
waitfordialog($illia_bridge2);
|
|
|
200 |
wait(3);
|
|
|
201 |
|
|
|
202 |
thread skip_final_cin();
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
void skip_final_cin()
|
|
|
206 |
{
|
|
|
207 |
killthread("final_cin");
|
|
|
208 |
noncinematic();
|
|
|
209 |
releaseplayer();
|
|
|
210 |
cueplayer ();
|
|
|
211 |
clearletterbox(.1);
|
|
|
212 |
levelchange();
|
|
|
213 |
}
|
|
|
214 |
|
|
|
215 |
|
|
|
216 |
void transporter_platform()
|
|
|
217 |
{
|
|
|
218 |
thread final_cin();
|
|
|
219 |
}
|
|
|
220 |
|
|
|
221 |
void levelchange()
|
|
|
222 |
{
|
|
|
223 |
stuffcmd("map map7");
|
|
|
224 |
}
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
void door_k_open()
|
|
|
228 |
{
|
|
|
229 |
|
|
|
230 |
$scan_beam1.playsound("sound/weapons/romtricorder/tricord_scan.wav");
|
|
|
231 |
$scan_beam1.show();
|
|
|
232 |
$scan2_beam1.show();
|
|
|
233 |
wait(.3);
|
|
|
234 |
$scan_beam1.hide();
|
|
|
235 |
$scan2_beam1.hide();
|
|
|
236 |
$scan_beam2.show();
|
|
|
237 |
$scan2_beam2.show();
|
|
|
238 |
wait(.3);
|
|
|
239 |
$scan_beam2.hide();
|
|
|
240 |
$scan2_beam2.hide();
|
|
|
241 |
$scan_beam3.show();
|
|
|
242 |
$scan2_beam3.show();
|
|
|
243 |
wait(.3);
|
|
|
244 |
$scan_beam3.hide();
|
|
|
245 |
$scan2_beam3.hide();
|
|
|
246 |
$scan_beam4.show();
|
|
|
247 |
$scan2_beam4.show();
|
|
|
248 |
wait(.3);
|
|
|
249 |
$scan_beam4.hide();
|
|
|
250 |
$scan2_beam4.hide();
|
|
|
251 |
wait(.3);
|
|
|
252 |
$scan_beam1.playsound("/sound/identification.wav");
|
|
|
253 |
|
|
|
254 |
wait(1.5);
|
|
|
255 |
|
|
|
256 |
$door_k_top.time(1.5);
|
|
|
257 |
$door_k_left.time(1.5);
|
|
|
258 |
$door_k_right.time(1.5);
|
|
|
259 |
$door_k_lower.time(1.5);
|
|
|
260 |
|
|
|
261 |
$door_k_top.moveUp( 72 );
|
|
|
262 |
$door_k_left.moveWest( 50 );
|
|
|
263 |
$door_k_right.moveEast( 50 );
|
|
|
264 |
$door_k_lower.moveDown( 50 );
|
|
|
265 |
$door_k_lower.playsound( "sound/doors/kling_shipdoor.wav");
|
|
|
266 |
|
|
|
267 |
wait(4);
|
|
|
268 |
$weapon1.time(2);
|
|
|
269 |
$weapon2.time(2);
|
|
|
270 |
$weapon3.time(2);
|
|
|
271 |
|
|
|
272 |
$weapon1.rotateZup( -100 );
|
|
|
273 |
$weapon1_steam.show();
|
|
|
274 |
$weapon1.playsound( "sound/environment/machine/lift2.wav");
|
|
|
275 |
wait(.5);
|
|
|
276 |
|
|
|
277 |
$weapon1_steam.hide();
|
|
|
278 |
$weapon2_steam.show();
|
|
|
279 |
$weapon2.rotateZup( -100 );
|
|
|
280 |
$weapon2.playsound( "sound/environment/machine/lift2.wav");
|
|
|
281 |
wait(.5);
|
|
|
282 |
|
|
|
283 |
$weapon2_steam.hide();
|
|
|
284 |
$weapon3_steam.show();
|
|
|
285 |
$weapon3.rotateZup( -100 );
|
|
|
286 |
$weapon3.playsound( "sound/environment/machine/lift2.wav");
|
|
|
287 |
|
|
|
288 |
wait(.5);
|
|
|
289 |
$weapon3_steam.hide();
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
void weapon_taken()
|
|
|
293 |
{
|
|
|
294 |
number_weapons_taken++;
|
|
|
295 |
if (number_weapons_taken == 3)
|
|
|
296 |
{
|
|
|
297 |
wait(2);
|
|
|
298 |
$transporter_door_left.time(1.5);
|
|
|
299 |
$transporter_door_right.time(1.5);
|
|
|
300 |
$transporter_door_left.moveWest(80);
|
|
|
301 |
$transporter_door_right.moveEast(80);
|
|
|
302 |
$transporter_door_right.playsound( "sound/doors/sfa_regdoor.wav");
|
|
|
303 |
}
|
|
|
304 |
}
|
|
|
305 |
|
|
|
306 |
void transporter_room_entered()
|
|
|
307 |
{
|
|
|
308 |
$screen_off.hide();
|
|
|
309 |
$screen_on.show();
|
|
|
310 |
$stevens.playdialog("localization/sound/dialog/map06/stevens/goodday.mp3",1,10000,0);
|
|
|
311 |
waitfordialog($stevens);
|
|
|
312 |
$stevens.playdialog("localization/sound/dialog/map06/stevens/recorded.mp3",1,10000,0);
|
|
|
313 |
waitfordialog($stevens);
|
|
|
314 |
$stevens.playdialog("localization/sound/dialog/map06/stevens/ihope.mp3",1,10000,0);
|
|
|
315 |
waitfordialog($stevens);
|
|
|
316 |
warbird_cin();
|
|
|
317 |
$stevens.playdialog("localization/sound/dialog/map06/stevens/wehave.mp3",1,10000,0);
|
|
|
318 |
waitfordialog($stevens);
|
|
|
319 |
$stevens.playdialog("localization/sound/dialog/map06/stevens/insteadof.mp3",1,10000,0);
|
|
|
320 |
waitfordialog($stevens);
|
|
|
321 |
$stevens.playdialog("localization/sound/dialog/map06/stevens/enterprise.mp3",1,10000,0);
|
|
|
322 |
waitfordialog($stevens);
|
|
|
323 |
//$stevens.playdialog("localization/sound/dialog/map06/stevens/exomorphs.mp3",1,10000,0);
|
|
|
324 |
//waitfordialog($stevens);
|
|
|
325 |
//$stevens.playdialog("localization/sound/dialog/map06/stevens/iamsure.mp3",1,10000,0);
|
|
|
326 |
//waitfordialog($stevens);
|
|
|
327 |
|
|
|
328 |
$screen_on.hide();
|
|
|
329 |
$screen_off.show();
|
|
|
330 |
|
|
|
331 |
wait(1);
|
|
|
332 |
obstacle();
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
void obstacle()
|
|
|
336 |
{
|
|
|
337 |
float move_val = 140;
|
|
|
338 |
float delay_val = .3;
|
|
|
339 |
|
|
|
340 |
$screen_off.show();
|
|
|
341 |
$screen_on.hide();
|
|
|
342 |
|
|
|
343 |
$obstacle1.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
344 |
$obstacle1.moveDown(move_val);
|
|
|
345 |
$down_obstacle1.moveUp(move_val);
|
|
|
346 |
wait(delay_val);
|
|
|
347 |
|
|
|
348 |
$obstacle2.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
349 |
$obstacle2.moveDown(move_val);
|
|
|
350 |
$down_obstacle2.moveUp(move_val);
|
|
|
351 |
wait(delay_val);
|
|
|
352 |
|
|
|
353 |
$obstacle3.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
354 |
$obstacle3.moveDown(move_val);
|
|
|
355 |
$down_obstacle3.moveUp(move_val);
|
|
|
356 |
wait(delay_val);
|
|
|
357 |
|
|
|
358 |
$obstacle4.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
359 |
$obstacle4.moveDown(move_val);
|
|
|
360 |
$down_obstacle4.moveUp(move_val);
|
|
|
361 |
wait(delay_val);
|
|
|
362 |
|
|
|
363 |
$obstacle5.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
364 |
$obstacle5.moveDown(move_val);
|
|
|
365 |
$down_obstacle5.moveUp(move_val);
|
|
|
366 |
wait(delay_val);
|
|
|
367 |
|
|
|
368 |
$obstacle6.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
369 |
$obstacle6.moveDown(move_val);
|
|
|
370 |
$down_obstacle6.moveUp(move_val);
|
|
|
371 |
wait(delay_val);
|
|
|
372 |
|
|
|
373 |
$obstacle7.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
374 |
$obstacle7.moveDown(move_val);
|
|
|
375 |
$down_obstacle7.moveUp(move_val);
|
|
|
376 |
wait(delay_val);
|
|
|
377 |
|
|
|
378 |
$obstacle8.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
379 |
$obstacle8.moveDown(move_val);
|
|
|
380 |
$down_obstacle8.moveUp(move_val);
|
|
|
381 |
wait(delay_val);
|
|
|
382 |
|
|
|
383 |
$obstacle9.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
384 |
$obstacle9.moveDown(move_val);
|
|
|
385 |
$down_obstacle9.moveUp(move_val);
|
|
|
386 |
wait(delay_val);
|
|
|
387 |
|
|
|
388 |
$obstacle10.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
389 |
$obstacle10.moveDown(move_val);
|
|
|
390 |
$down_obstacle10.moveUp(move_val);
|
|
|
391 |
wait(delay_val);
|
|
|
392 |
|
|
|
393 |
$obstacle11.playsound( "sound/environment/machine/mech_move1.wav");
|
|
|
394 |
$obstacle11.moveDown(move_val);
|
| 752 |
ticknswist |
395 |
}
|