| 506 |
lars |
1 |
// EF2 Level Script File
|
|
|
2 |
// Level gbs_zoo
|
|
|
3 |
// Script by: ltiefland
|
|
|
4 |
// Geometry by: Flix, ltiefland
|
|
|
5 |
// Created on: 2004/08/07
|
| 673 |
lars |
6 |
// Last Updated on: 2005/02/27
|
| 506 |
lars |
7 |
// Last Updated by: ltiefland
|
|
|
8 |
|
| 673 |
lars |
9 |
#include "maps/global_scripts/global_common.scr"
|
|
|
10 |
#include "maps/global_scripts/global_playerLoadout.scr"
|
|
|
11 |
#include "maps/global_scripts/global_debugUtils.scr"
|
|
|
12 |
#include "maps/global_scripts/global_array.scr"
|
|
|
13 |
#include "maps/global_scripts/global_spawnWave.scr"
|
|
|
14 |
#include "maps/global_scripts/global_flyin.scr"
|
|
|
15 |
#include "maps/global_scripts/global_math.scr"
|
|
|
16 |
#include "maps/global_scripts/global_acceleratedMovement.scr"
|
|
|
17 |
#include "maps/global_scripts/global_tricorderBase.scr"
|
|
|
18 |
#include "maps/global_scripts/global_tricorderRoute.scr"
|
|
|
19 |
#include "maps/global_scripts/global_archetype.scr"
|
|
|
20 |
#include "maps/global_scripts/global_cinematicFX.scr"
|
|
|
21 |
#include "maps/m4/m4l2b_dialog.scr"
|
| 506 |
lars |
22 |
|
| 673 |
lars |
23 |
void main();
|
|
|
24 |
|
| 506 |
lars |
25 |
void main()
|
|
|
26 |
{
|
|
|
27 |
//Take away weapons from player!
|
|
|
28 |
//Only tricorder remains in place!
|
|
|
29 |
$player.take ( "models/weapons/worldmodel-compressionrifle.tik" );
|
|
|
30 |
$player.take ( "models/weapons/worldmodel-fieldassaultrifle.tik" );
|
|
|
31 |
$player.take ( "models/weapons/worldmodel-burstrifle.tik" );
|
|
|
32 |
$player.take ( "models/weapons/worldmodel-attrex-rifle.tik" );
|
|
|
33 |
$player.take ( "models/weapons/worldmodel-compressionrifle.tik" );
|
|
|
34 |
$player.take ( "models/weapons/worldmodel-phaser-STX.tik" );
|
| 673 |
lars |
35 |
$seven_office.lock();
|
|
|
36 |
$seven_office_puzzle.nottriggerable();
|
|
|
37 |
$field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
38 |
$field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
| 506 |
lars |
39 |
}
|
| 673 |
lars |
40 |
|
|
|
41 |
void ff_off()
|
|
|
42 |
{
|
|
|
43 |
$field.stoploopsound();
|
|
|
44 |
$field.playsound( "sound/ships/enterprise/ent_forcefield_down.wav", 1, 1, 11111 );
|
|
|
45 |
$field.hide();
|
|
|
46 |
$field_clip.notsolid();
|
|
|
47 |
$seven_office.unlock();
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
void ff_puzzle()
|
|
|
51 |
{
|
|
|
52 |
entity puzzle;
|
|
|
53 |
puzzle = getcurrententity();
|
|
|
54 |
|
|
|
55 |
globalTricorderRoute_Reset();
|
|
|
56 |
globalTricorderRoute_SetSource1Row( 9 );
|
|
|
57 |
globalTricorderRoute_SetDestination1( 3, 9 );
|
|
|
58 |
|
|
|
59 |
//--- begin row definitions
|
|
|
60 |
globalTricorderRoute_BeginDef();
|
|
|
61 |
globalTricorderRoute_SetNextRow( 32, 32, 32, 32, 32, 32, 32, 32, 32 );
|
|
|
62 |
globalTricorderRoute_SetNextRow( 32, 32, 32, 32, 32, 32, 11, 11, 11 );
|
|
|
63 |
globalTricorderRoute_SetNextRow( 32, 32, 32, 32, 32, 19, 7, 10, 7 );
|
|
|
64 |
globalTricorderRoute_SetNextRow( 32, 32, 4, 9, 16, 4, 2, 7, 1 );
|
|
|
65 |
globalTricorderRoute_SetNextRow( 11, 32, 9, 11, 32, 32, 32, 25, 11 );
|
|
|
66 |
globalTricorderRoute_SetNextRow( 9, 22, 4, 9, 3, 2, 22, 21, 32 );
|
|
|
67 |
globalTricorderRoute_SetNextRow( 17, 17, 17, 2, 10, 4, 11, 32, 32 );
|
|
|
68 |
globalTricorderRoute_SetNextRow( 2, 23, 3, 22, 0, 32, 32, 32, 32 );
|
|
|
69 |
globalTricorderRoute_SetNextRow( 8, 4, 2, 9, 8, 32, 32, 32, 32 );
|
|
|
70 |
globalTricorderRoute_SetNextRow( 32, 0, 8, 11, 32, 32, 32, 32, 32 );
|
|
|
71 |
globalTricorderRoute_SetNextRow( 32, 18, 6, 11, 32, 32, 32, 32, 32 );
|
|
|
72 |
|
|
|
73 |
//--- run the puzzle
|
|
|
74 |
globalTricorderRoute_Run( puzzle, 0 );
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
void prepare()
|
|
|
78 |
{
|
|
|
79 |
}
|