Subversion-Projekte sthq.gbs

Revision

Revision 764 | Revision 870 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
571 argyle 1
//--------------------------------------------------------------------------------------
2
//
3
//  EF2 Level Script File
4
//
619 TickNSwist 5
//  Level:		Map5
6
//  Script By:		Nemo22, Cortex, LTiefland, TickNSwisted
650 argyle 7
//  Geometry By:	Nemo22, TickNSwisted, Argyle
571 argyle 8
//  Created on:		07.02.2004
9
//
651 lars 10
//  Last Edited:	02.01.2005
630 lars 11
//  Last Edited by:	LTiefland
571 argyle 12
//
13
//--------------------------------------------------------------------------------------
21 cortex 14
 
15
#include "maps/global_scripts/global_common.scr"
16
#include "maps/global_scripts/global_math.scr"
17
#include "maps/global_scripts/global_acceleratedMovement.scr"
571 argyle 18
#include "maps/global_scripts/global_cinematicFX.scr"
690 argyle 19
#include "maps/global_scripts/global_archetype.scr"
334 lars 20
#include "maps/attackplayer.scr"
21 cortex 21
 
571 argyle 22
void main();
690 argyle 23
void initArchetypes();
571 argyle 24
void init();
25
void first_shot();
650 argyle 26
void finish_introcin();
571 argyle 27
void bay_sec_beamin();
28
void sec_shoot();
29
void shuttle_open();
651 lars 30
void finish_awaycin();
571 argyle 31
void shuttle_away();
32
void shuttle_inside_sparks();
33
void sparks();
34
void redalert();
35
 
36
void shuttlesparks();
37
void bill_ex();
38
 
21 cortex 39
void main()
40
{
690 argyle 41
        initArchetypes();
321 cortex 42
	cam_fadeout( .1, 0, 0, 0, 1, 0 );
43
	$player.notsolid();
44
	$player.hide();
45
	letterbox( .1 );
566 cortex 46
	allowMusicDucking( 0 );
321 cortex 47
	freezeplayer();
48
	cinematic();
571 argyle 49
 
50
	$world.canShakeCamera( 1 );
51
 
652 argyle 52
	init();
650 argyle 53
 
571 argyle 54
	thread first_shot();
682 argyle 55
	soundtrack( "music/m8l2a.mus");
571 argyle 56
}
494 lars 57
 
690 argyle 58
 
59
void initArchetypes()
60
{
61
 
764 lars 62
      thread globalArchetype_Setup( $console_hint1, "mdoor");
63
      thread globalArchetype_Setup( $console_hint2, "sdoor");
690 argyle 64
 
65
}
66
 
571 argyle 67
void init()
68
{
619 TickNSwist 69
 
652 argyle 70
   	//$shuttle_stay.solid();
653 argyle 71
   	$ramp_blocker.notsolid();
652 argyle 72
 
619 TickNSwist 73
	$npcs_off.notsolid();
630 lars 74
	$npcs_off.hide();
619 TickNSwist 75
	$npcs_off.ai_off();
76
 
77
	$world.light_fade( "light_red", 0, 1 );
571 argyle 78
 
79
	$player.give( "models/weapons/worldmodel-tricorder-STX.tik" );
80
 
81
	$atlantic_out_origin.loopsound( "sound/ships/enterprise/ent_exterior_01.wav", 1 ,1024 );
566 cortex 82
 
571 argyle 83
//--Das Shuttle, das wegfliegt:
84
	$shuttle_fly_away_door.bind( $shuttle_origin );
85
	$shuttle_fly_away_ext.bind( $shuttle_origin );
86
	$shuttle_fly_away_door.hide();
87
	$shuttle_fly_away_ext.hide();
88
 
89
//--Kameras laden und spawnen
566 cortex 90
/*	cam.load( "map5_p_illia1" );
91
	cam.load( "map5_shuttle_cam1" );
92
	cam.load( "map5_shuttle_cam1d" );
93
	cam.load( "map5_shuttle_cam2" );
571 argyle 94
	cam.load( "map5_shuttle_cam3" );
95
	cam.load( "map5_shuttle_cam4" );
96
	cam.load( "map5_shuttle_path" );
97
	cam.load( "map5_cam_shuttle" );
98
	cam.load( "map5_jim_beamin" );
99
	cam.load( "map5_atlantic_last_shot" );*/
566 cortex 100
 
101
	spawn( "Camera", "targetname", "cam1");
102
	spawn( "Camera", "targetname", "cam2");
103
	spawn( "Camera", "targetname", "cam3");
104
 
571 argyle 105
//--Illia SetUp
106
//	$illia_shuttle.pushable( 1 );
107
	globalCommon_AiActorUseWeapon( $illia_shuttle, "none" );
108
	$illia_shuttle.ai_off();
109
	$illia_shuttle.pushable( 0 );
110
	$illia_shuttle.hide();
111
	$illia_shuttle.notsolid();
112
 
113
	globalCommon_AiActorUseWeapon( $ceilling_illia, "none" );
114
	$ceilling_illia.ai_off();
115
	$ceilling_illia.pushable( 0 );
116
	$ceilling_illia.hide();
117
	$ceilling_illia.notsolid();
118
 
119
	globalCommon_AiActorUseWeapon( $illia_shuttle_inside, "none" );
120
	$illia_shuttle_inside.ai_off();
121
	$illia_shuttle_inside.anim( "ent-frontchair-gesture1" );
122
	$illia_shuttle_inside.pushable( 0 );
123
 
124
//--Illia_prisoner SetUp
656 argyle 125
	$illia_prisoner.pushable( 0 );
690 argyle 126
	$illia_prisoner.notsolid();
127
	$illia_prisoner.ai_off();
571 argyle 128
	globalCommon_AiActorUseWeapon( $illia_prisoner, "none" );
129
	globalCommon_AiDummy( $illia_prisoner, "" );
630 lars 130
	$illia_prisoner.anim("cin-m8_situp");
571 argyle 131
 
656 argyle 132
//--people in Engineering
571 argyle 133
	$jones0.ai_off();
134
	globalCommon_AiActorUseWeapon( $jones0, "none" );
135
	$shaun0.ai_off();
136
	globalCommon_AiActorUseWeapon( $shaun0, "none" );
137
	$bails0.ai_off();
138
	$bails0.pushable( 0 );
139
	globalCommon_AiActorUseWeapon( $bails0, "none" );
140
 
141
	$jones0.anim( "ent-curvedconsole-gesture" );
142
	$shaun0.anim( "ent-compstation-idle" );
143
	$bails0.anim( "ent-compstation-gesture1" );
144
 
145
//--Moya
146
	$moya.ai_off();
147
 
656 argyle 148
//--Security team setup
571 argyle 149
	$sec_1.ai_off();
150
	$sec_1.pushable( 0 );
151
/*	$sec_1.notsolid();
152
	$sec_1.hide();*/
153
	$sec_1.setgroupid ( 668 );
566 cortex 154
 
652 argyle 155
	//$sec_1.giveactorweapon( "actorweapons/fed-compressionrifle.tik", 1.0 );
156
	//$sec_1.useactorweapon( "CompressionRifle" );
656 argyle 157
//	$sec_1.anim( "idle_weapon_legs" );
158
	$sec_1.anim( "compressionrifle_aim" );
571 argyle 159
 
160
	$sec_2.ai_off();
161
	$sec_2.pushable( 0 );
162
/*	$sec_2.notsolid();
163
	$sec_2.hide();*/
652 argyle 164
	//$sec_2.giveactorweapon( "actorweapons/fed-compressionrifle.tik", 1.0 );
165
	//$sec_2.useactorweapon( "CompressionRifle" );
571 argyle 166
	$sec_2.setgroupid ( 668 );
167
 
168
	$sec_3.ai_off();
169
	$sec_3.pushable( 0 );
170
/*	$sec_3.notsolid();
171
	$sec_3.hide();*/
652 argyle 172
	//$sec_3.giveactorweapon( "actorweapons/fed-compressionrifle.tik", 1.0 );
173
	//$sec_3.useactorweapon( "CompressionRifle" );
571 argyle 174
	$sec_3.anim( "crouch_idle" );
175
	$sec_3.setgroupid ( 668 );
566 cortex 176
 
571 argyle 177
	AIHideGroup(668);
566 cortex 178
 
656 argyle 179
//--misc
571 argyle 180
	$illia_shuttle.blink( 0 );
181
 
182
	$kraftfeld.hide();
183
 
184
	$security.nottriggerable();
185
	$trigger_open.nottriggerable();
186
	$away_trigger.nottriggerable();
187
 
188
	globalCommon_SpawnScriptModel( "vehicle/e-shuttle-ext.tik", "dallas_shuttle1", '-2200 596 60', 0 );
189
	$dallas_shuttle1.scale( .01 );
190
 
191
	globalCommon_SpawnScriptModel( "vehicle/e-shuttle-door.tik", "dallas_shuttle2", '-2200 596 60', 0 );
192
	$dallas_shuttle2.scale( .01 );
193
 
194
	$dallas_shuttle1.bind( $dallas_origin );
195
	$dallas_shuttle2.bind( $dallas_origin );
196
 
197
	$atlantic_a.bind( $atlantic_out_origin );
198
	$atlantic_b.bind( $atlantic_out_origin );
199
 
200
	$shuttle_warp.hide();
201
 
656 argyle 202
	wait( .1 );
571 argyle 203
	$sec_2.anim( "idle_weapon_legs" );
204
 
205
//--Maschinenraumtür
206
	$engdoor3.time( .1 );
207
	wait( .1 );
208
	$engdoor3.moveUp( 170 );
209
 
210
	$movewall.bind( $bay_move_origin );
21 cortex 211
}
212
 
571 argyle 213
///////////////////////////////////////////////////////////////////////////////
214
/////////////////////////////////////Intro/////////////////////////////////////
215
///////////////////////////////////////////////////////////////////////////////
321 cortex 216
 
217
 
571 argyle 218
void first_shot()
321 cortex 219
{
650 argyle 220
//--Camera fades in, Illia beams in, walks to console
221
	skipthread ( "finish_introcin" );
566 cortex 222
	$cam1.fov( 60 );
223
	$cam1.follow( $map5_shuttle_cam1d );
224
	$cam1.cut();
225
	wait( .1 );
226
	cuecamera( $cam1 );
656 argyle 227
	wait( .5 );
566 cortex 228
	cam_fadein( 3, 0, 0, 0, 1, 0 );
571 argyle 229
 
566 cortex 230
	wait( 1 );
231
	$illia_shuttle.show();
232
	$illia_shuttle.displayEffect( "TransportIn", "FederationNoAnim" );
233
	wait( 3 );
234
	$illia_shuttle.blink( 1 );
235
	wait( 1 );
236
	$illia_shuttle.headWatchTarget( "illia_look_first", 7 );
237
	wait( 1 );
238
	$illia_shuttle.headWatchTarget( "illia_look_second", 7 );
239
	$cam2.fov( 60 );
240
	$cam2.follow( $map5_shuttle_cam1 );
241
	$cam2.cut();
242
	wait( .1 );
243
	cuecamera( $cam2 );
571 argyle 244
 
566 cortex 245
	wait( 2 );
246
	$illia_shuttle.walkto( "$walk1", "walk" );
247
	wait( .5 );
571 argyle 248
	$illia_shuttle.headWatchTarget( "none", 7 );
566 cortex 249
	waitfor( $illia_shuttle );
250
	$illia_shuttle.walkto( "$walk2", "walk" );
251
	waitfor( $illia_shuttle );
571 argyle 252
	$illia_shuttle.turntoangle( 225 );
566 cortex 253
	waitfor( $illia_shuttle );
254
	$illia_shuttle.anim( "ent-curvedconsole-gesture" );
255
	wait( 2 );
256
	$illia_shuttle.anim( "idle" );
257
	wait( 1 );
258
	$illia_shuttle.playdialog("localization/sound/dialog/map05/illia/damn.mp3", 1, 10000, 0);
259
	waitfordialog( $illia_shuttle );
260
	cam_fadeout( 1.5, 0, 0, 0, 1, 0 );
261
	wait( 2 );
571 argyle 262
 
656 argyle 263
//--Camera cuts to imprisoned Illia
566 cortex 264
	$cam3.fov( 60 );
265
	$cam3.follow( $map5_p_illia1 );
266
	$cam3.cut();
267
	wait( .1 );
268
	cuecamera( $cam3 );
269
	cam_fadein( 1.5, 0, 0, 0, 1, 0 );
571 argyle 270
 
566 cortex 271
	wait( 2 );
272
	$illia_prisoner.playdialog("localization/sound/dialog/map05/illia/ihadto.mp3", 1, 10000, 0);
273
	waitfordialog( $illia_prisoner );
321 cortex 274
	wait( .5 );
630 lars 275
	$illia_prisoner.playdialog("localization/sound/dialog/map05/illia/maincontrol.mp3", 1, 10000, 0);
566 cortex 276
	waitfordialog( $illia_prisoner );
571 argyle 277
//	wait( 1 );
566 cortex 278
	cam_fadeout( 1.5, 0, 0, 0, 1, 0 );
279
	wait( 2 );
280
	cam_fadein( 1.5, 0, 0, 0, 1, 0 );
571 argyle 281
 
656 argyle 282
//--camera is in shuttle, Illia exits
566 cortex 283
	$cam2.fov( 60 );
284
	$cam2.follow( $map5_shuttle_cam2 );
285
	$cam2.cut();
286
	wait( .1 );
287
	cuecamera( $cam2 );
321 cortex 288
 
566 cortex 289
	$illia_shuttle.walkto( "$walk1", "walk" );
290
	waitfor( $illia_shuttle );
291
	$illia_shuttle.walkto( "$w1", "walk" );
292
	wait( 1 );
571 argyle 293
	///////////////////
294
	//1. Tür geht auf//
295
	///////////////////
566 cortex 296
	$shuttle_stay_door1.anim( "opening" );
297
	$shuttle_stay_door1.playsound( "sound/doors/enterprise_door1.wav", 1 ,800 );
298
	waitforanimation( $shuttle_stay_door1, "opening" );
299
	$shuttle_stay_door1.anim( "open_idle" );
300
 
301
//	$shuttle_stay_door1.time( 1 );
302
//	$shuttle_stay_door1.moveWest( 38 );
303
//	$shuttle_stay_door1.moveNorth( 38 );
321 cortex 304
 
566 cortex 305
	waitfor( $illia_shuttle );
306
	$illia_shuttle.walkto( "$w2", "walk" );
307
	waitfor( $illia_shuttle );
308
	$illia_shuttle.walkto( "$w3", "walk" );
571 argyle 309
	//////////////////
310
	//1. Tür geht zu//
311
	//////////////////
690 argyle 312
	//$shuttle_stay_door1.anim( "closing" );
313
	//$shuttle_stay_door1.playsound( "sound/doors/enterprise_door1.wav", 1 ,800 );
314
	//waitforanimation( $shuttle_stay_door1, "closing" );
315
	//$shuttle_stay_door1.anim( "closed" );
571 argyle 316
 
566 cortex 317
//	$shuttle_stay_door1.time( 1 );
571 argyle 318
//	$shuttle_stay_door1.moveEast( 38 );
319
//	$shuttle_stay_door1.moveSouth( 38 );
320
	waitfor( $illia_shuttle );
321
	///////////////////
690 argyle 322
	//2. door opens //
571 argyle 323
	///////////////////
566 cortex 324
	$shuttle_stay_door2.anim( "opening" );
325
	$shuttle_stay_door2.playsound( "sound/doors/enterprise_door1.wav", 1 ,800 );	waitforanimation( $shuttle_stay_door2, "opening" );
326
	$shuttle_stay_door2.anim( "open_idle" );
321 cortex 327
 
566 cortex 328
//	$shuttle_stay_door2.time( 1 );
329
//	$shuttle_stay_door2.moveWest( 44 );
330
//	$shuttle_stay_door2.moveNorth( 44 );
321 cortex 331
 
566 cortex 332
	$illia_shuttle.walkto( "$w4", "walk" );
571 argyle 333
 
334
	$cam3.fov( 60 );
335
	$cam3.follow( $map5_shuttle_cam4 );
336
	$cam3.cut();
337
	wait( .1 );
338
	cuecamera( $cam3 );
339
 
566 cortex 340
	waitfor( $illia_shuttle );
571 argyle 341
	//////////////////
342
	//2. Tür geht zu//
343
	//////////////////
690 argyle 344
	//$shuttle_stay_door2.anim( "closing" );
345
	//$shuttle_stay_door2.playsound( "sound/doors/enterprise_door1.wav", 1 ,800 );
346
	//waitforanimation( $shuttle_stay_door2, "closing" );
347
	//$shuttle_stay_door2.anim( "closed" );
566 cortex 348
 
349
//	$shuttle_stay_door2.time( 1 );
350
//	$shuttle_stay_door2.moveEast( 44 );
351
//	$shuttle_stay_door2.moveSouth( 44 );
352
 
571 argyle 353
	$illia_shuttle.walkto( "$w5", "walk" );
566 cortex 354
	waitfor( $illia_shuttle );
650 argyle 355
 
356
	thread finish_introcin();
357
 
358
}
359
 
360
 
361
void finish_introcin()
362
{
363
 
690 argyle 364
   	$ramp_blocker.solid();
365
	$illia_shuttle.warpto( "$w5" );
650 argyle 366
	killthread("first_shot");
566 cortex 367
	$illia_shuttle.hide();
571 argyle 368
//--Cinematic beenden
566 cortex 369
	clearletterbox( 0.1 );
370
	noncinematic();
321 cortex 371
	$player.solid();
372
	$player.show();
373
	releaseplayer();
374
	cueplayer();
652 argyle 375
	//sec_shoot();
321 cortex 376
 
21 cortex 377
}
690 argyle 378
////////////////////////////////////////////////////////////////////////////
379
///////////After the player has maniplulated the main console///////////////
380
/////player has to jump of the railing /////////////////////////////////////
381
////////////////////////////////////////////////////////////////////////////
21 cortex 382
 
571 argyle 383
void bay_sec_beamin()
21 cortex 384
{
651 lars 385
	skipthread ( "finish_beamincin" );
571 argyle 386
	$player.notsolid();
387
	$player.hide();
388
	letterbox( .1 );
389
	freezeplayer();
390
	cinematic();
391
	$ceilling_illia.turntoangle( 180 );
392
 
393
	$ceilling_illia.show();
394
	$cam1.fov( 60 );
395
	$cam1.follow( $map5_shuttle_door_close );
396
	$cam1.cut();
397
	wait( .1 );
398
	cuecamera( $cam1 );
399
 
400
	wait( 1 );
401
	//--Shuttle sschließt die Türen
653 argyle 402
   	$ramp_blocker.solid();
571 argyle 403
	$shuttle_stay_door.anim( "closing" );
404
	waitforanimation( $shuttle_stay_door, "closing" );
405
	$shuttle_stay_door.anim( "closed" );
406
	wait( 1 );
407
	$kraftfeld.show();
682 argyle 408
	$kraftfeld.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
409
	$kraftfeld.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
571 argyle 410
	triggerentity( $kraftfeld_sound );
411
	wait( .4 );
21 cortex 412
 
571 argyle 413
	$rechte_door.time( 5.2 );
414
	wait( .1 );
415
	$rechte_door.moveUp( 300 );
416
	$rechte_door.loopsound( "sound/doors/airlock_open01.wav", 1 ,1024 );
417
 
418
	wait( 5.2 );
419
	$rechte_door.stoploopsound();
420
	$rechte_door.playsound( "sound/doors/airlock_close01.wav", 10 ,1 ,1024 );
21 cortex 421
 
571 argyle 422
	wait( 3.8 );
423
 
424
/*	$sec_1.solid();
425
	$sec_2.solid();
426
	$sec_3.solid();
427
	wait(1);*/
428
 
429
 
430
	$cam2.fov( 60 );
431
	$cam2.follow( $map5_jim_beamin );
432
	$cam2.cut();
433
	wait( .1 );
434
	cuecamera( $cam2 );
435
 
436
	$ceilling_illia.playdialog("localization/sound/dialog/map05/illia/goodbye.mp3", 1, 10000, 0);
437
	waitfordialog( $ceilling_illia );
438
 
439
	wait( 2 );
440
/*	$sec_1.displayEffect( "TransportIn", "FederationNoAnim" );
441
	$sec_2.displayEffect( "TransportIn", "FederationNoAnim" );
442
	$sec_3.displayEffect( "TransportIn", "FederationNoAnim" );
443
	wait( 2 );*/
444
 
445
	AIShowGroup (668, "Federation");
656 argyle 446
	$sec_1.headWatchTarget("player",7);
447
	$sec_2.headWatchTarget("player",7);
448
	$sec_3.headWatchTarget("player",7);
449
	$sec_1.ai_off();
450
	$sec_2.ai_off();
451
	$sec_3.ai_off();
452
	$sec_1.anim( "compressionrifle_aim" );
453
	$sec_2.anim( "compressionrifle_aim" );
454
	$sec_3.anim( "compressionrifle_aim" );
571 argyle 455
 
690 argyle 456
	$sec_2.playdialog( "localization/sound/dialog/map05/lee/donotmove.mp3", 1, 10000, 0);
571 argyle 457
	waitfordialog( $sec_2 );
458
	$ceilling_illia.turntoangle( 270 );
459
	wait( .5 );
690 argyle 460
	$sec_2.playdialog( "localization/sound/dialog/map05/lee/gameover.mp3", 1, 10000, 0);
571 argyle 461
	waitfordialog( $sec_2 );
656 argyle 462
	wait( 1 );
571 argyle 463
	$ceilling_illia.hide();
464
 
656 argyle 465
	//--End cinematic
682 argyle 466
        forcemusic( "action" );
571 argyle 467
	clearletterbox( 0.1 );
468
	noncinematic();
469
	$player.solid();
470
	$player.show();
471
	releaseplayer();
472
	cueplayer();
473
	$player.playerviewangles( '0 270 0' );
474
 
475
//	$security_beam.nottriggerable();
476
	$security.triggerable();
321 cortex 477
}
478
 
571 argyle 479
void sec_shoot()
21 cortex 480
{
571 argyle 481
//	centerprint("Sicherheit fängt an zu schießen!");
482
 
483
	$sec_1.turntoangle( 180 );
484
	$sec_2.walkto( "$secnode1", "run" );
485
	$sec_3.walkto( "$secnode2", "run" );
486
	waitfor( $sec_3 );
487
	$sec_1.anim( "idle_weapon_legs" );
488
	$sec_2.turntoangle( 180 );
489
	$sec_3.walkto( "$secnode3", "run" );
490
	waitfor( $sec_3 );
491
	$sec_3.turntoangle( 180 );
492
	waitfor( $sec_3 );
493
	$sec_3.anim( "idle_weapon_legs" );
494
	wait( .7 );
495
	$sec_2.anim( "idle_weapon_legs" );
496
/*	$sec_1.attackplayer();
497
	$sec_2.attackplayer();
498
	$sec_3.attackplayer();*/
499
 
500
//	AIShowGroup(668, "Federation");
21 cortex 501
 
571 argyle 502
	CommandToGroup ( 668 , "groupactortype" , "enemy" , "");
503
	CommandToGroup ( 668 , "visiondistance" , "40000" , "" );
504
	CommandToGroup ( 668 , "fov" , "360" , "" );
505
	CommandToGroup ( 668 , "attack" , "$player" , "" );
21 cortex 506
 
571 argyle 507
	$sec_1.ai_on();
508
	$sec_2.ai_on();
509
	$sec_3.ai_on();
21 cortex 510
 
571 argyle 511
	$trigger_open.triggerable();
512
	$security.nottriggerable();
21 cortex 513
 
514
}
515
 
571 argyle 516
void shuttle_open()
21 cortex 517
{
653 argyle 518
   	$ramp_blocker.notsolid();
571 argyle 519
	$shuttle_stay_door.anim( "opening" );
520
	waitforanimation( $shuttle_stay_door, "opening" );
521
	$shuttle_stay_door.anim( "open_idle" );
522
 
523
	$away_trigger.triggerable();
524
	$trigger_open.nottriggerable();
21 cortex 525
}
526
 
571 argyle 527
void shuttle_away()
21 cortex 528
{
656 argyle 529
//--Begin cinematic!
651 lars 530
	skipthread ( "finish_awaycin" );
571 argyle 531
	$player.notsolid();
532
	$player.hide();
321 cortex 533
	letterbox( .1 );
534
	freezeplayer();
535
	cinematic();
571 argyle 536
 
537
	$illia_shuttle.show();
538
	$cam1.fov( 60 );
539
	$cam1.follow( $away_cam1, $illia_shuttle );
540
	$cam1.cut();
541
	wait( .1 );
542
	cuecamera( $cam1 );
543
 
544
	$illia_shuttle.walkto( "$w4", "run" );
545
	waitfor( $illia_shuttle );
546
 
547
	$shuttle_stay_door.anim( "closing" );
548
	waitforanimation( $shuttle_stay_door, "closing" );
549
	$shuttle_stay_door.anim( "closed" );
550
 
551
	$illia_shuttle.hide();
552
 
553
	$shuttle_stay_door2.hide();
554
	$shuttle_stay_door1.hide();
555
	$shuttle_stay_door.hide();
556
	$shuttle_stay.hide();
557
	$shuttle_fly_away_door.show();
558
	$shuttle_fly_away_ext.show();
559
 
560
	$cam2.fov( 60 );
561
	$cam2.follow( $door_open_cam1 );
562
	$cam2.cut();
563
	wait( .1 );
564
	cuecamera( $cam2 );
565
 
566
	$shuttle_origin.followpath($shuttle_path);
567
	wait( 4.5 );
568
	$shuttle_origin.playsound( "sound/vehicles/shuttlecraft/shuttle_takeoff.wav", 0, 4 );
690 argyle 569
	wait( 16 );
571 argyle 570
	$rechte_door.time( 5.2 );
571
	$rechte_door.moveDown( 300 );
572
	$rechte_door.loopsound( "sound/doors/airlock_open01.wav", 1 ,1024 );
690 argyle 573
	wait( 2);
571 argyle 574
 
575
	wait( 4 );
576
 
577
	$cam2.fov( 20 );
578
	$cam2.follow( $map5_cam_shuttle );
579
	$cam2.cut();
580
	wait( .1 );
581
	cuecamera( $cam2 );
582
	$sky_ship.hide();
583
 
584
	wait( 1.2 );
585
	$rechte_door.stoploopsound();
586
	$rechte_door.playsound( "sound/doors/airlock_close01.wav", 10 ,.5 ,1024 );
587
	wait( .3 );
588
	$dallas_origin.followpath( $map5_shuttle_path );
690 argyle 589
	//wait( 6.5 );
590
	wait( 4 );
571 argyle 591
 
592
	$atlantic_out_origin.followpath( $atlantic_out_path );
593
 
594
	$cam3.fov( 55 );
595
	$cam3.follow( $atlantic_out_cam1, $atlantic_out_origin );
596
	$cam3.cut();
597
	wait( .1 );
598
	cuecamera( $cam3 );
599
	$kraftfeld.hide();
600
 
601
	wait( 8 );
602
 
603
	$cam1.fov( 55 );
604
	$cam1.follow( $atlantic_out_cam2, $atlantic_out_origin );
605
	$cam1.cut();
606
	wait( .1 );
607
	cuecamera( $cam1 );
608
	wait( 17 );
609
	/////////////////////////
656 argyle 610
	//Moya in engineering//
571 argyle 611
	/////////////////////////
612
	$cam3.fov( 75 );
613
	$cam3.follow( $engine_cam1 );
614
	$cam3.cut();
615
	wait( .1 );
616
	cuecamera( $cam3 );
617
 
618
	wait( 1 );
619
	thread sparks();
690 argyle 620
	wait(.1);
621
        $world.playsound( "sound/explo_large_01.wav",3,1,10000);
622
	triggerentity( $big_boom_engineering );
623
	wait(.1);
624
 
571 argyle 625
	$player.earthquake( 2.2, 1 );
626
 
627
	triggerentity( $eng_explosion );
628
	wait( 2 );
629
	thread redalert();
630
	$engdoor3.time( 6 );
631
	wait( .1 );
632
	$engdoor3.moveDown( 170 );
633
	wait( 1 );
21 cortex 634
 
571 argyle 635
	$moya.anim( "tap_comm" );//communicator
636
	waitforanimation( $moya, "tap_comm" );
637
	$moya.anim( "idle" );
654 lars 638
	wait(1);
639
	$moya.playdialog( "localization/sound/dialog/map05/moya/bridge.mp3", 1, 10000, 0);
571 argyle 640
	waitfordialog( $moya );
641
	$moya.playdialog( "localization/sound/dialog/map05/moya/warpcore.mp3", 1, 10000, 0);
642
	waitfordialog( $moya );
643
	wait( .4 );
644
	$moya.playdialog( "localization/sound/dialog/map05/moya/deadinspace.mp3", 1, 10000, 0);
645
	waitfordialog( $moya );
646
	wait( 2 );
647
	triggerentity( $big_boom_engineering );
648
	thread bill_ex();
649
	wait( 2.5 );
650
	killthread( "sparks" );
651
	$cam2.fov( 90 );
652
	$cam2.follow( $map5_atlantic_last_shot );
653
	$cam2.cut();
654
	wait( .1 );
655
	cuecamera( $cam2 );
656
	wait( 2 );
657
	cam_fadeout( 10, 0, 0, 0, 1, 0 );
658
	wait( 4 );
659
//	stuffcmd( "showmenu continued\n" );
660
//	wait( 4 );
661
//	stuffcmd ( "popmenu 0\n" );
662
 
663
	wait( 4 );
651 lars 664
	finish_awaycin();
665
}
321 cortex 666
 
651 lars 667
void finish_awaycin()
668
{
656 argyle 669
//--end cinematic
571 argyle 670
	clearletterbox( 0.1 );
321 cortex 671
	noncinematic();
571 argyle 672
	$player.solid();
673
	$player.show();
321 cortex 674
	releaseplayer();
675
	cueplayer();
571 argyle 676
 
677
	stuffcmd ("map map6");
321 cortex 678
 
571 argyle 679
	cam_fadein( 1.5, 0, 0, 0, 1, 0 );
21 cortex 680
}
681
 
571 argyle 682
//////////////////////////
656 argyle 683
//Explosions and sparks//
571 argyle 684
//////////////////////////
685
void shuttle_inside_sparks()
21 cortex 686
{
571 argyle 687
	$movewall.time( 15 );
688
	$sky_ship.time( 2.9 );
689
	wait( .1 );
690
	$movewall.moveEast( 1600 );
691
	$sky_ship.moveEast( 3 );
692
	$cam1.fov( 90 );
693
	$cam1.follow( $shuttle_inside_cam1 );
694
	$cam1.cut();
695
	wait( .1 );
696
	cuecamera( $cam1 );
697
	$player.earthquake( 1.2, 1 );
698
	triggerentity( $shuttle_inside_spark1 );
699
	triggerentity( $shuttle_inside_spark1_s );
700
	wait( .3 );
701
	triggerentity( $shuttle_inside_spark3 );
702
	triggerentity( $shuttle_inside_spark3_s );
703
	wait( .2 );
704
	triggerentity( $shuttle_inside_spark2 );
705
	triggerentity( $shuttle_inside_spark2_s );
706
	wait( .3 );
707
	triggerentity( $shuttle_inside_spark1 );
708
	triggerentity( $shuttle_inside_spark1_s );
709
	triggerentity( $shuttle_inside_spark3 );
710
	$sky_ship.time( .1 );
711
	wait( 2 );
712
	$sky_ship.moveWest( 3 );
713
	cuecamera( $cam2 );
21 cortex 714
 
571 argyle 715
}
21 cortex 716
 
571 argyle 717
void sparks()
718
{
719
	triggerentity( $sparks1 );
720
	$sparks1.playsound( "sound/impact/explosion/explo_shuttleint.wav" );
721
	wait( 1.1 );
722
	triggerentity( $sparks3 );
723
	$sparks3.playsound( "sound/impact/explosion/explo_shuttleint.wav" );
724
	wait( 2 );
725
	triggerentity( $sparks2 );
726
	$sparks2.playsound( "sound/impact/explosion/explo_shuttleint.wav" );
727
	wait( 1 );
728
	triggerentity( $sparks1 );
729
	$sparks1.playsound( "sound/impact/explosion/explo_shuttleint.wav" );
730
	triggerentity( $sparks3 );
731
	$sparks3.playsound( "sound/impact/explosion/explo_shuttleint.wav" );
732
	wait( 2 );
733
	thread sparks();
21 cortex 734
}
735
 
571 argyle 736
void redalert()
21 cortex 737
{
571 argyle 738
	$world.light_fade( "light_red", .65, .4 );
739
	triggerentity( $redalert_sound );
740
	wait( 1.5 );
741
	$world.light_fade( "light_red", .1, .8 );
742
	wait( 1 );
743
	thread redalert();
744
}
21 cortex 745
 
571 argyle 746
void shuttlesparks()
747
{
748
	$player.earthquake( .8, 2 );
749
	triggerentity( $shuttle_sparks );
750
	triggerentity( $fly_away_sparks_s );
751
	wait( .4 );
752
	triggerentity( $shuttle_sparks );
753
	triggerentity( $fly_away_sparks_s );
754
	wait( .4 );
755
	triggerentity( $shuttle_sparks );
756
	triggerentity( $fly_away_sparks_s );
757
	wait( .6 );
758
	triggerentity( $shuttle_sparks );
759
	triggerentity( $fly_away_sparks_s );
760
	wait( .1 );
761
	thread shuttle_inside_sparks();
762
}
21 cortex 763
 
571 argyle 764
void shuttle_goto_warp()
765
{
766
	$shuttle_warp.show();
767
	$shuttle_warp.followpath( $path_gowarp );
768
	wait( 2.6 );
769
	$shuttle_warp.playsound( "sound/ships/enterprise/ent_enter_warp.wav", 10 ,1 ,1024 );
770
	wait( 3.7 );
21 cortex 771
 
571 argyle 772
	$spawnWarpFlash.scale( .2 );
773
	$spawnWarpFlash.modelname( "models/fx/fx-warpflash-federation.tik" );
774
	$spawnWarpFlash.origin( $shuttle_warp.getOrigin() );
775
	wait( .05 );
21 cortex 776
 
571 argyle 777
	triggerEntity( $spawnWarpFlash );
778
	$shuttle_warp.hide();
779
}
321 cortex 780
 
571 argyle 781
void bill_ex()
782
{
783
	$bails0.turntoangle( 135 );
784
	wait( .1 );
785
	$bails0.anim( "cin-m6l0-engineering-bill" );
324 lars 786
}