| 676 |
argyle |
1 |
#include "maps/global_scripts/global_archetype.scr"
|
|
|
2 |
#include "maps/global_scripts/global_common.scr"
|
|
|
3 |
#include "maps/global_scripts/global_playerLoadout.scr"
|
|
|
4 |
#include "maps/global_scripts/global_debugUtils.scr"
|
|
|
5 |
#include "maps/global_scripts/global_array.scr"
|
|
|
6 |
#include "maps/global_scripts/global_math.scr"
|
|
|
7 |
#include "maps/global_scripts/global_acceleratedMovement.scr"
|
|
|
8 |
#include "maps/attackplayer.scr"
|
|
|
9 |
|
|
|
10 |
void jeff_door_open();
|
|
|
11 |
void jeff_door_close();
|
|
|
12 |
void ff1();
|
|
|
13 |
void ff2();
|
|
|
14 |
void ff3();
|
|
|
15 |
void switch_open();
|
|
|
16 |
void lever_move();
|
|
|
17 |
void alexia_walk();
|
|
|
18 |
void door_field_active();
|
| 677 |
argyle |
19 |
void spotted();
|
|
|
20 |
//void spotted_action();
|
| 676 |
argyle |
21 |
void trap_activation();
|
|
|
22 |
void north();
|
|
|
23 |
void east();
|
|
|
24 |
void south();
|
|
|
25 |
void west();
|
|
|
26 |
void neil_find();
|
|
|
27 |
void sarah_find();
|
|
|
28 |
void levelchange();
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
//-----------------------------MAP3EX ORIGINAL SCRIPT------------------------------------------------------------
|
|
|
32 |
|
|
|
33 |
void jeff_door_open()
|
|
|
34 |
{
|
|
|
35 |
$latch.time( 0.2 );
|
|
|
36 |
$latch.movedown(4);
|
|
|
37 |
$latch.playsound( "sound/environment/metal/panel_close1.wav" );
|
|
|
38 |
wait(1);
|
|
|
39 |
$latch.bind( $jeff_door_origin );
|
|
|
40 |
$jeff_door.bind( $jeff_door_origin );
|
|
|
41 |
$jeff_door_origin.time( 2.5 );
|
|
|
42 |
$jeff_door_origin.playsound( "sound/doors/drull_smldoor_01.wav" );
|
|
|
43 |
$jeff_door_origin.rotateto( '0 90 0' );
|
|
|
44 |
waitfor( $jeff_door_origin );
|
|
|
45 |
$jeff_door_origin.playsound( "sound/doors/drull_smldoor_stop_01.wav" );
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
void jeff_door_close()
|
|
|
49 |
{
|
|
|
50 |
$latch.bind( $jeff_door_origin );
|
|
|
51 |
$jeff_door.bind( $jeff_door_origin );
|
|
|
52 |
$jeff_door_origin.time( 2.5 );
|
|
|
53 |
$jeff_door_origin.playsound( "sound/doors/drull_smldoor_01.wav" );
|
|
|
54 |
$jeff_door_origin.rotateto( '0 0 0' );
|
|
|
55 |
waitfor( $jeff_door_origin );
|
|
|
56 |
$jeff_door_origin.playsound( "sound/doors/drull_smldoor_stop_01.wav" );
|
|
|
57 |
wait(1);
|
|
|
58 |
$latch.time( 0.2 );
|
|
|
59 |
$latch.moveup(4);
|
|
|
60 |
$latch.playsound( "sound/environment/metal/panel_close1.wav" );
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
void ff1()
|
|
|
65 |
{
|
|
|
66 |
$cor_ff1.show();
|
| 822 |
lars |
67 |
$cor_ff1.solid();
|
| 676 |
argyle |
68 |
$cor_ff1.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
69 |
$cor_ff1.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
70 |
$ff2_trig.triggerable();
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
void ff2()
|
|
|
74 |
{
|
|
|
75 |
$cor_ff2.show();
|
| 822 |
lars |
76 |
$cor_ff2.solid();
|
| 676 |
argyle |
77 |
$cor_ff2.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
78 |
$cor_ff2.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
void ff3()
|
|
|
82 |
{
|
|
|
83 |
$cor_ff3.show();
|
| 822 |
lars |
84 |
$cor_ff3.solid();
|
| 676 |
argyle |
85 |
$cor_ff3.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
86 |
$cor_ff3.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
87 |
$ff2_trig.triggerable();
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
void switch_open()
|
|
|
91 |
{
|
|
|
92 |
$lever_door.movewest(1);
|
|
|
93 |
wait(0.1);
|
|
|
94 |
$lever_door.movenorth(35);
|
|
|
95 |
$lever_door.time(2);
|
|
|
96 |
$lever_door.playsound( "sound/ships/forever/for_gravpanel.wav", 1, 1, 11111 );
|
|
|
97 |
waitfor( $lever_door );
|
|
|
98 |
$lever_door.playsound( "sound/ships/forever/for_gravpanelstop.wav", 1, 1, 11111 );
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
void lever_move()
|
|
|
102 |
{
|
|
|
103 |
$lever_one.time(0.2);
|
|
|
104 |
$lever_one.movedown(15);
|
|
|
105 |
$player.playsound( "sound/environment/metal/panel_close1.wav");
|
|
|
106 |
wait(0.2);
|
|
|
107 |
$player.playsound("sound/environment/computer/lcars_yes.wav");
|
|
|
108 |
$alexia.notsolid();
|
|
|
109 |
$alexia.hide();
|
|
|
110 |
$alexia1.solid();
|
|
|
111 |
$alexia1.show();
|
|
|
112 |
$door_field.hide();
|
| 822 |
lars |
113 |
$door_field.notsolid();
|
| 676 |
argyle |
114 |
$door_field.stoploopsound();
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
void alexia_walk()
|
|
|
118 |
{
|
|
|
119 |
$alexia.walkto( "$alexia_nav1", "walk" );
|
|
|
120 |
waitfor( $alexia );
|
|
|
121 |
$alexia.walkto( "alexia_nav2", "walk" );
|
|
|
122 |
waitfor( $alexia );
|
|
|
123 |
$alexia.walkto( "$alexia_nav3", "walk" );
|
|
|
124 |
waitfor( $alexia );
|
|
|
125 |
$alexia.hide();
|
|
|
126 |
$alexia.notsolid();
|
|
|
127 |
$alexia1.show();
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
void door_field_active()
|
|
|
131 |
{
|
|
|
132 |
$door_field.show();
|
| 822 |
lars |
133 |
$door_field.solid();
|
| 676 |
argyle |
134 |
$door_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
135 |
$door_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
| 764 |
lars |
136 |
$lever.triggerable();
|
| 676 |
argyle |
137 |
}
|
|
|
138 |
|
| 677 |
argyle |
139 |
void spotted()
|
| 676 |
argyle |
140 |
{
|
| 822 |
lars |
141 |
//$office_field.solid();
|
| 677 |
argyle |
142 |
//$spotted_trigger2.nottriggerable();
|
|
|
143 |
//$spotted_trigger3.nottriggerable();
|
|
|
144 |
//$spotted_trigger4.nottriggerable();
|
| 676 |
argyle |
145 |
$emma.removeactorweapon( "EnterpriseDatapad" );
|
|
|
146 |
$emma.anim( "idle" );
|
|
|
147 |
$emma.turntoangle( 160 );
|
|
|
148 |
$emma.headwatchtarget( "player" , 7 );
|
|
|
149 |
|
|
|
150 |
wait(0.5);
|
|
|
151 |
|
|
|
152 |
$emma.anim( "tap_comm" );
|
|
|
153 |
waitforanimation( $emma, "tap_comm" );
|
|
|
154 |
$player.playsound( "sound/misc/player/communicatorbeep.wav", 1, 1, 11111 );
|
|
|
155 |
$emma.anim( "idle" );
|
|
|
156 |
$alexia1.anim( "idle" );
|
|
|
157 |
wait(0.2);
|
|
|
158 |
$alexia1.turntoangle( 60 );
|
|
|
159 |
$alexia1.headwatchtarget( "player" , 7 );
|
|
|
160 |
$comp_screen.hide();
|
|
|
161 |
$office_door.lock();
|
|
|
162 |
$sick_door.lock();
|
| 677 |
argyle |
163 |
//$office_field.show();
|
| 676 |
argyle |
164 |
$office_field2.show();
|
| 677 |
argyle |
165 |
//$office_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
| 676 |
argyle |
166 |
$office_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
167 |
wait(0.3);
|
| 677 |
argyle |
168 |
//$office_door_field.show();
|
| 822 |
lars |
169 |
//$office_door_field.solid();
|
| 677 |
argyle |
170 |
//$office_door_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
171 |
//$office_door_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
| 676 |
argyle |
172 |
wait(0.3);
|
| 677 |
argyle |
173 |
//$sick_door_field.show();
|
| 822 |
lars |
174 |
//$sick_door_field.solid();
|
| 677 |
argyle |
175 |
//$sick_door_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
176 |
//$sick_door_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
| 676 |
argyle |
177 |
|
| 677 |
argyle |
178 |
//AIShowGroup ( 668, "Federation" );
|
| 676 |
argyle |
179 |
//$security3.ai_on();
|
|
|
180 |
//$security4.ai_on();
|
| 677 |
argyle |
181 |
//CommandToGroup ( 668 , "groupactortype" , "enemy" , "");
|
|
|
182 |
//CommandToGroup ( 668 , "visiondistance" , "4000" , "" );
|
|
|
183 |
//CommandToGroup ( 668 , "fov" , "360" , "" );
|
|
|
184 |
//CommandToGroup ( 668 , "attack" , "$player" , "" );
|
| 676 |
argyle |
185 |
}
|
|
|
186 |
|
| 677 |
argyle |
187 |
|
|
|
188 |
void spotted_action()
|
|
|
189 |
{
|
|
|
190 |
}
|
|
|
191 |
|
| 676 |
argyle |
192 |
void trap_activation()
|
|
|
193 |
{
|
|
|
194 |
$west_trigger.triggerable();
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
void north()
|
|
|
198 |
{
|
|
|
199 |
$north_field.show();
|
| 822 |
lars |
200 |
$north_field.solid();
|
| 676 |
argyle |
201 |
$north_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
202 |
$north_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
203 |
|
|
|
204 |
$sarah_find_trig.nottriggerable();
|
|
|
205 |
$neil_find_trig.nottriggerable();
|
|
|
206 |
$east_trigger.triggerable();
|
|
|
207 |
$south_trigger.triggerable();
|
|
|
208 |
}
|
|
|
209 |
|
|
|
210 |
void east()
|
|
|
211 |
{
|
|
|
212 |
$east_field.show();
|
| 822 |
lars |
213 |
$east_field.solid();
|
| 676 |
argyle |
214 |
$east_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
215 |
}
|
|
|
216 |
|
|
|
217 |
void south()
|
|
|
218 |
{
|
|
|
219 |
$south_field.show();
|
| 822 |
lars |
220 |
$south_field.solid();
|
| 676 |
argyle |
221 |
$south_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
222 |
$south_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
223 |
}
|
|
|
224 |
|
|
|
225 |
void west()
|
|
|
226 |
{
|
|
|
227 |
$west_field.show();
|
| 822 |
lars |
228 |
$west_field.solid();
|
| 676 |
argyle |
229 |
$west_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
230 |
$west_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
231 |
|
|
|
232 |
$sarah_find_trig.nottriggerable();
|
|
|
233 |
$neil_find_trig.nottriggerable();
|
|
|
234 |
$east_trigger.triggerable();
|
|
|
235 |
$south_trigger.triggerable();
|
|
|
236 |
}
|
|
|
237 |
|
|
|
238 |
void neil_find()
|
|
|
239 |
{
|
|
|
240 |
$neil.solid();
|
|
|
241 |
$neil.show();
|
|
|
242 |
|
|
|
243 |
$neil.walkto( "$neil_nav1", "walk" );
|
|
|
244 |
waitfor( $neil );
|
|
|
245 |
$neil.walkto( "$neil_nav2", "walk" );
|
|
|
246 |
waitfor( $neil );
|
|
|
247 |
$neil.walkto( "$neil_nav3", "walk" );
|
|
|
248 |
waitfor( $neil );
|
|
|
249 |
$neil.headwatchtarget( "player" , 7 );
|
|
|
250 |
$neil.anim( "tap_comm" );
|
|
|
251 |
waitforanimation( $neil, "tap_comm" );
|
|
|
252 |
$neil.playsound( "sound/misc/player/communicatorbeep.wav", 1, 1, 11111 );
|
|
|
253 |
$neil.anim( "idle" );
|
|
|
254 |
|
|
|
255 |
$east_field.show();
|
| 822 |
lars |
256 |
$east_field.solid();
|
| 676 |
argyle |
257 |
$east_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
258 |
$east_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
259 |
|
|
|
260 |
$sarah_find_trig.nottriggerable();
|
|
|
261 |
$south_trigger.triggerable();
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
void sarah_find()
|
|
|
265 |
{
|
|
|
266 |
$sarah.solid();
|
|
|
267 |
$sarah.show();
|
|
|
268 |
|
|
|
269 |
$sarah.walkto( "$sarah_nav1", "walk" );
|
|
|
270 |
waitfor( $sarah );
|
|
|
271 |
$sarah.walkto( "$sarah_nav2", "walk" );
|
|
|
272 |
$sarah.headwatchtarget( "player" , 7 );
|
|
|
273 |
$sarah.anim( "tap_comm" );
|
|
|
274 |
waitforanimation( $sarah, "tap_comm" );
|
|
|
275 |
$sarah.playsound( "sound/misc/player/communicatorbeep.wav", 1, 1, 11111 );
|
|
|
276 |
$sarah.anim( "idle" );
|
|
|
277 |
|
|
|
278 |
$south_field.show();
|
| 822 |
lars |
279 |
$south_field.solid();
|
| 676 |
argyle |
280 |
$south_field.playsound( "sound/ships/borg/borg_forcefield_on.wav", 1, 1, 11111 );
|
|
|
281 |
$south_field.loopsound( "sound/ships/enterprise/ent_forcefield.wav", .7, 30 );
|
|
|
282 |
|
|
|
283 |
$neil_find_trig.nottriggerable();
|
|
|
284 |
$east_trigger.triggerable();
|
|
|
285 |
}
|
|
|
286 |
|
|
|
287 |
void levelchange()
|
|
|
288 |
{
|
|
|
289 |
stuffcmd("map map4 \n");
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
|
|
|
293 |
void main()
|
|
|
294 |
{
|
|
|
295 |
|
|
|
296 |
//-----------------------MAP3EX ORIGINAL SCRIPT--------------------------------
|
|
|
297 |
$cor_ff1.hide();
|
|
|
298 |
$cor_ff2.hide();
|
|
|
299 |
$cor_ff3.hide();
|
| 822 |
lars |
300 |
$cor_ff1.notsolid();
|
|
|
301 |
$cor_ff2.notsolid();
|
|
|
302 |
$cor_ff3.notsolid();
|
| 676 |
argyle |
303 |
$ff2_trig.nottriggerable();
|
| 822 |
lars |
304 |
//$office_door_field.notsolid();
|
|
|
305 |
//$office_field.notsolid();
|
|
|
306 |
//$office_field.hide();
|
|
|
307 |
$office_field2.hide();
|
|
|
308 |
$sick_door_field.notsolid();
|
|
|
309 |
$sick_door_field.hide();
|
| 677 |
argyle |
310 |
//$office_door_field.hide();
|
|
|
311 |
//$office_field.hide();
|
| 676 |
argyle |
312 |
$office_field2.hide();
|
|
|
313 |
$sick_door_field.hide();
|
|
|
314 |
$door_field.hide();
|
| 822 |
lars |
315 |
$door_field.hide();
|
|
|
316 |
$door_field.notsolid();
|
| 676 |
argyle |
317 |
$lever.nottriggerable();
|
|
|
318 |
//--------------------------------------------------
|
|
|
319 |
$alexia.ai_off();
|
|
|
320 |
$alexia.anim( "idle" );
|
|
|
321 |
$alexia.removeactorweapon( "CompressionRifle" );
|
|
|
322 |
$alexia.useactorweapon( "none" );
|
|
|
323 |
$alexia.pushable( 0 );
|
|
|
324 |
|
|
|
325 |
$emma.ai_off();
|
|
|
326 |
$emma.anim( "idle" );
|
|
|
327 |
$emma.removeactorweapon( "CompressionRifle" );
|
|
|
328 |
$emma.useactorweapon( "none" );
|
|
|
329 |
$emma.pushable( 0 );
|
|
|
330 |
$emma.useactorweapon( "EnterpriseDatapad" );
|
|
|
331 |
$emma.anim( "ent-datapad-use" );
|
|
|
332 |
|
|
|
333 |
$alexia1.ai_off();
|
|
|
334 |
$alexia1.anim( "ent-table-gesture2" );
|
|
|
335 |
$alexia1.removeactorweapon( "CompressionRifle" );
|
|
|
336 |
$alexia1.useactorweapon( "none" );
|
|
|
337 |
$alexia1.pushable( 0 );
|
|
|
338 |
$alexia1.notsolid();
|
|
|
339 |
$alexia1.hide();
|
|
|
340 |
|
|
|
341 |
$neil.ai_off();
|
|
|
342 |
$neil.anim( "idle" );
|
|
|
343 |
$neil.removeactorweapon( "CompressionRifle" );
|
|
|
344 |
$neil.useactorweapon( "none" );
|
|
|
345 |
$neil.pushable( 0 );
|
|
|
346 |
$neil.hide();
|
|
|
347 |
$neil.notsolid();
|
|
|
348 |
|
|
|
349 |
$sarah.ai_off();
|
|
|
350 |
$sarah.anim( "idle" );
|
|
|
351 |
$sarah.removeactorweapon( "CompressionRifle" );
|
|
|
352 |
$sarah.useactorweapon( "none" );
|
|
|
353 |
$sarah.pushable( 0 );
|
|
|
354 |
$sarah.hide();
|
|
|
355 |
$sarah.notsolid();
|
|
|
356 |
|
|
|
357 |
//-------------------------------------------------
|
|
|
358 |
$security3.setgroupid ( 668 );
|
|
|
359 |
$security3.pushable( 0 );
|
|
|
360 |
$security3.giveactorweapon( "actorweapons/fed-compressionrifle.tik", 1.0 );
|
|
|
361 |
$security3.useactorweapon( "CompressionRifle" );
|
|
|
362 |
|
|
|
363 |
$security4.setgroupid ( 668 );
|
|
|
364 |
$security4.pushable( 0 );
|
|
|
365 |
$security4.giveactorweapon( "actorweapons/fed-compressionrifle.tik", 1.0 );
|
|
|
366 |
$security4.useactorweapon( "CompressionRifle" );
|
|
|
367 |
|
|
|
368 |
AIHideGroup ( 666 );
|
|
|
369 |
//-------------------------------------------------
|
|
|
370 |
$east_trigger.nottriggerable();
|
|
|
371 |
$south_trigger.nottriggerable();
|
|
|
372 |
$west_trigger.nottriggerable();
|
|
|
373 |
|
|
|
374 |
$north_field.hide();
|
| 822 |
lars |
375 |
$north_field.notsolid();
|
| 676 |
argyle |
376 |
|
|
|
377 |
$east_field.hide();
|
| 822 |
lars |
378 |
$east_field.notsolid();
|
| 676 |
argyle |
379 |
|
|
|
380 |
$south_field.hide();
|
| 822 |
lars |
381 |
$south_field.notsolid();
|
| 676 |
argyle |
382 |
|
|
|
383 |
$west_field.hide();
|
| 822 |
lars |
384 |
$west_field.notsolid();
|
| 676 |
argyle |
385 |
|
| 680 |
argyle |
386 |
|
|
|
387 |
//Archetypes
|
|
|
388 |
thread globalArchetype_Setup( $hint_lever, "hint_lever");
|
|
|
389 |
|
| 676 |
argyle |
390 |
}
|