Subversion-Projekte sthq.gbs

Revision

Revision 883 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 883 Revision 889
Zeile 1... Zeile 1...
1
//--------------------------------------------------------------------------------------
1
//--------------------------------------------------------------------------------------
2
//
2
//
3
//  A Gate Two Birds And The Beautiful Sky Level Script File
3
//  A Gate Two Birds And The Beautiful Sky Level Script File
4
//	
4
//	
5
//  Level:		map1
5
//  Level:				map1
6
//  Script By:		Argyle
6
//  Script By:			Argyle
7
//  Geometry By:	Flix
7
//  Geometry By:		Flix
8
//  Created on:		???
8
//  Created on:			???
9
//  Last Edited on:    $Date: 2007-05-09 21:55:47 +0200 (Mi, 09 Mai 2007) $
9
//  Last Edited on:		$Date: 2007-06-15 22:34:28 +0200 (Fr, 15 Jun 2007) $
10
//  Last Edited by:     $Author: lars $
10
//  Last Edited by:		$Author: lars $
11
//
11
//
12
//-------------------------------------------------------------------------------------
12
//-------------------------------------------------------------------------------------
Zeile 13... Zeile 13...
13
 
13
 
14
#include "maps/global_scripts/global_common.scr"
-
 
15
#include "maps/global_scripts/global_debugUtils.scr"
-
 
16
#include "maps/global_scripts/global_math.scr"
-
 
17
#include "maps/global_scripts/global_archetype.scr"
14
#include "maps/global_scripts/global_common.scr"
18
#include "maps/m11/m11l1a_dialog.scr"
15
#include "maps/m11/m11l1a_dialog.scr"
19
#include "maps/m11/m11_groupSpawn.scr"
16
#include "maps/m11/m11_groupSpawn.scr"
20
#include "maps/global_scripts/global_playerLoadout.scr"
-
 
21
#include "maps/m11/m11_beamInAmmo.scr"
-
 
22
#include "maps/global_scripts/global_tricorderbase.scr"
-
 
Zeile 23... Zeile 17...
23
#include "maps/global_scripts/global_tricordermod.scr"
17
#include "maps/global_scripts/global_playerLoadout.scr"
24
 
18
 
25
void main();
19
void main();
26
void spawn_disrupter_klingon( entity entity_to_spawn);
20
void spawn_disrupter_klingon( entity entity_to_spawn);
Zeile 36... Zeile 30...
36
 
30
 
Zeile 37... Zeile 31...
37
float killed_klingons = 0;
31
float killed_klingons = 0;
38
 
32
 
39
void switch_off_ai()
-
 
40
{
33
void switch_off_ai()
Zeile 41... Zeile 34...
41
 
34
{
42
   $illia_prisoner.ai_off();
35
   $illia_prisoner.ai_off();
43
 
36
 
-
 
37
   $illia_prisoner.removeactorweapon ( "CompressionRifle" );
-
 
38
   $illia_prisoner.anim("cin-m8_situp");
44
   $illia_prisoner.removeactorweapon ( "CompressionRifle" );
39
   $illia.ai_off();
45
   $illia_prisoner.anim("cin-m8_situp");
40
   $illia.removeactorweapon ( "CompressionRifle" );
46
   $illia.ai_off();
41
   $illia.useactorweapon( "Batleth" );
47
   $illia2.ai_off();
42
   $illia2.ai_off();
48
   $moya.ai_off();
43
   $moya.ai_off();
Zeile 87... Zeile 82...
87
   spawn ( "Camera" , "targetname" , "cam3" );
82
   spawn ( "Camera" , "targetname" , "cam3" );
88
   spawn ( "Camera" , "targetname" , "cam4" );
83
   spawn ( "Camera" , "targetname" , "cam4" );
89
   spawn ( "Camera" , "targetname" , "cam5" );
84
   spawn ( "Camera" , "targetname" , "cam5" );
90
   spawn ( "Camera" , "targetname" , "cam6" );
85
   spawn ( "Camera" , "targetname" , "cam6" );
91
   spawn ( "Camera" , "targetname" , "cam7" );
86
   spawn ( "Camera" , "targetname" , "cam7" );
92
 
-
 
93
   wait ( .05 );
-
 
94
   /*cam.load("holo2_gate_cam");
-
 
95
   cam.load("holo2_illia_cam");
-
 
96
   cam.load("holo2_illia_cam2");
-
 
97
   cam.load("holo2_klingon_cam");
-
 
98
   cam.load("holo2_illia_close_cam");
-
 
99
   cam.load("holo2_klingon_close_cam");*/
-
 
100
 
-
 
101
   wait ( .5);
87
   wait (1);
102
   skipthread ( "finish_introcin" );
88
   skipthread ( "finish_introcin" );
103
   freezeplayer();
89
   freezeplayer();
Zeile 104... Zeile 90...
104
 
90
 
Zeile 115... Zeile 101...
115
 
101
 
116
   cam_fadein( 3, 0, 0, 0, 1, 0 );
102
   cam_fadein( 3, 0, 0, 0, 1, 0 );
117
   wait(3);
103
   wait(3);
118
   $illia_prisoner.headwatch( $illia_look_here);
104
   $illia_prisoner.headwatch( $illia_look_here);
119
   wait(1.5);
-
 
120
   //$illia_prisoner.resethead();
-
 
121
 
105
   wait(1.5);
122
   $illia_prisoner.playdialog("localization/sound/dialog/map01/Illia/everythingbegan.mp3", 1, 10000, 0);
106
   $illia_prisoner.playdialog("localization/sound/dialog/map01/Illia/everythingbegan.mp3", 1, 10000, 0);
123
   waitfordialog( $illia_prisoner );
107
   waitfordialog( $illia_prisoner );
124
   wait( 1 );
108
   wait( 1 );
125
   $illia_prisoner.playdialog("localization/sound/dialog/map01/Illia/itwasabout.mp3", 1, 10000, 0);
109
   $illia_prisoner.playdialog("localization/sound/dialog/map01/Illia/itwasabout.mp3", 1, 10000, 0);
126
   waitfordialog( $illia_prisoner );
110
   waitfordialog( $illia_prisoner );
127
   cam_fadeout( 3, 0, 0, 0, 1, 0 );
-
 
128
 
111
   cam_fadeout( 3, 0, 0, 0, 1, 0 );
129
   wait(4);
-
 
130
 
-
 
131
 
-
 
132
 
-
 
133
   //   stuffcmd("showmenu we_proudly_present\n");
-
 
134
 
-
 
135
   // wait(2);
-
 
136
 
-
 
137
   //  stuffcmd ( "popmenu 0\n" );
-
 
138
   // wait(3);
112
   wait(4);
139
   stuffcmd("showmenu gbs\n");
113
   stuffcmd("showmenu gbs\n");
140
   wait(4);
114
   wait(4);
Zeile 141... Zeile -...
141
   stuffcmd ( "popmenu 0\n" );
-
 
142
 
-
 
143
   
-
 
144
 
115
   stuffcmd ( "popmenu 0\n" );
145
 
116
 
146
   show_camera($cam1, $holo2_gate_cam, 3);
117
   show_camera($cam1, $holo2_gate_cam, 3);
147
   wait(.5);
118
   wait(.5);
148
   $world.light_lightstyle( "lightning", "azaz", 1 );
119
   $world.light_lightstyle( "lightning", "azaz", 1 );
149
   $player.playsound( "sound/environment/nature/thunder2.wav", 0, 1.5, 10000 );
120
   $player.playsound( "sound/environment/nature/thunder2.wav", 0, 3, 10000 );
Zeile 150... Zeile -...
150
   show_camera($cam2, $holo2_illia_cam, 3);
-
 
151
   wait(.5);
121
   show_camera($cam2, $holo2_illia_cam, 3);
152
 
122
   wait(.5);
153
   
123
 
154
   show_camera($cam3, $holo2_klingon_cam, 3);
124
   show_camera($cam3, $holo2_klingon_cam, 3);
155
   wait(.5);
125
   wait(.5);
Zeile 183... Zeile 153...
183
   clearletterbox(.1);
153
   clearletterbox(.1);
184
   cam_fadein( 1, 0, 0, 0, 1, 0 );
154
   cam_fadein( 1, 0, 0, 0, 1, 0 );
Zeile 185... Zeile 155...
185
 
155
 
186
   $illia.hide();
156
   $illia.hide();
-
 
157
   $illia.notsolid();
-
 
158
	$player.use("Batleth");
187
   $illia.notsolid();
159
	wait(1.5);//Give the Klingons some time to think
188
   $klingon1.ai_on();
160
	$klingon1.ai_on();
189
   $klingon3.ai_on();
161
	$klingon3.ai_on();
190
   $klingon4.ai_on();
162
	$klingon4.ai_on();
191
   $klingon5.ai_on();
163
	$klingon5.ai_on();
-
 
164
	$klingon6.ai_on();
192
   $klingon6.ai_on();
165
	wait(1);
193
   $klingon1.attack($player);
166
	$klingon1.attack($player);
194
   $klingon3.attack($player);
167
	$klingon3.attack($player);
195
   $klingon4.attack($player);
168
	$klingon4.attack($player);
196
   $klingon5.attack($player);
169
	$klingon5.attack($player);
197
   $klingon6.attack($player);
-
 
198
 
-
 
199
 
-
 
200
 
170
	$klingon6.attack($player);
Zeile 201... Zeile 171...
201
}
171
}
202
 
172
 
-
 
173
void start_holocin()
203
void start_holocin()
174
{
Zeile 204... Zeile 175...
204
{
175
  $illi2.useactorweapon( "none" );
205
   $illi2.useactorweapon( "CompressionRifle" );
176
  // $illi2.useactorweapon( "CompressionRifle" );
206
 
177
 
207
   cinematic();
178
   cinematic();
208
   cam_fadeout( 1, 0, 0, 0, 1, 0 );
179
   cam_fadeout( 1, 0, 0, 0, 1, 0 );
209
   spawn ( "Camera" , "targetname" , "holo_cam1" );
180
   spawn ( "Camera" , "targetname" , "holo_cam1" );
210
   spawn ( "Camera" , "targetname" , "holo_cam2" );
181
   spawn ( "Camera" , "targetname" , "holo_cam2" );
211
   spawn ( "Camera" , "targetname" , "holo_cam3" );
-
 
212
   spawn ( "Camera" , "targetname" , "holo_cam4" );
-
 
213
   wait ( .05 );
-
 
214
 
-
 
215
   /*
-
 
216
   cam.load("holo2_moya_cam2");
-
 
217
   cam.load("holo2_illia2_cam");
-
 
218
   cam.load("holo2_illia2_cam3");
-
 
219
   cam.load("holo2_moya_cam");
-
 
220
    */
-
 
221
 
-
 
222
   //Move holodeck door into holodeck
182
   spawn ( "Camera" , "targetname" , "holo_cam3" );
223
 
183
   spawn ( "Camera" , "targetname" , "holo_cam4" );
Zeile 224... Zeile 184...
224
   wait ( 1);
184
   wait(1.5);
225
   letterbox(.1);
185
   letterbox(.1);
Zeile 226... Zeile 186...
226
   $holodeck_terminal.origin($terminal_new_origin.getOrigin());
186
   $holodeck_terminal.origin($terminal_new_origin.getOrigin());
227
 
-
 
228
   skipthread ( "finish_holocin" );
-
 
229
   freezeplayer();
-
 
230
   
187
 
231
   $moya.origin($moya_new_origin.getOrigin());
188
   skipthread ( "finish_holocin" );
Zeile 232... Zeile 189...
232
 
189
   freezeplayer();
233
   //switch_off_ai();
190
   
234
 
191
   $moya.origin($moya_new_origin.getOrigin());
235
   cam_fadeout( 1, 0, 0, 0, 1, 0 );
-
 
236
   wait(2);
192
   cam_fadeout( 1, 0, 0, 0, 1, 0 );
237
   
193
   wait(2);
238
   $holo_cam2.follow($holo2_illia2_cam);
194
   
-
 
195
   $holo_cam2.follow($holo2_illia2_cam);
239
   $death_klingon.show();
196
   $death_klingon.show();
240
   $illia2.show();
197
   $illia2.show();
241
   //$illia2.maxheadyaw(180);
-
 
242
   $illia2.headwatch( $death_klingon );
198
   $illia2.headwatch( $death_klingon );
243
   $death_klingon.animateonce("long_death");
-
 
244
   wait(.1);
-
 
245
   cuecamera( $holo_cam2 );
199
   $death_klingon.animateonce("long_death");
246
   cam_fadein( 1, 0, 0, 0, 1, 0 );
200
   wait(.1);
247
   //$illi2.anim("compressionrifle_putaway");
201
   forcemusic( "none" );
Zeile 248... Zeile 202...
248
   wait(5.5);
202
   cuecamera( $holo_cam2 );
Zeile 258... Zeile 212...
258
   wait(.1);
212
   wait(.1);
259
   cuecamera( $holo_cam1 );
213
   cuecamera( $holo_cam1 );
260
   wait(1);
214
   wait(1);
261
   $death_klingon.remove();
215
   $death_klingon.remove();
Zeile 262... Zeile -...
262
   
-
 
263
   //$moya2.walkto("$holodeck_nav1", "walk",0,-1);
216
   
264
   $moya2.walkto("$holodeck_nav1", "walk");
-
 
265
   //waitfor($moya);
-
 
266
   //$moya2.lookat($player);
217
   $moya2.walkto("$holodeck_nav1", "walk");
267
   wait(3);
-
 
268
   //$holo_cam3.follow($holo2_illia2_cam);
-
 
269
   //cuecamera( $holo_cam3 );
218
   wait(3);
270
   cuecamera( $holo_cam2 );
219
   cuecamera( $holo_cam2 );
271
   $illia2.playsound("sound/ships/enterprise/holo_door_open.wav",1,1,500);
220
   $moya.playsound("sound/ships/enterprise/holo_door_open.wav",1,2,500);
272
   $illia2.lookat( $moya);
-
 
273
   //$illia2.walkto("$battle_nav1", "walk",0,-1);
-
 
274
   //$illia2.resethead();
-
 
-
 
221
   $illia2.lookat( $moya);
275
   //$illi2.useactorweapon( "none" );
222
   
276
   wait(3);
-
 
277
 
223
   wait(3);
278
   thread finish_holocin();
-
 
279
 
-
 
280
 
224
   thread finish_holocin();
Zeile 281... Zeile 225...
281
}
225
}
Zeile 300... Zeile 244...
300
 
244
 
Zeile 301... Zeile 245...
301
}
245
}
302
 
246
 
303
void change_map()
247
void change_map()
304
{
248
{
305
   	$illia2.playdialog("localization/sound/dialog/map01/illia/endprogram.mp3",1,10000,0);
249
   	$illia2.playdialog("localization/sound/dialog/map01/illia/endprogram.mp3",3,10000,0);
306
   	waitfordialog($illia2);
250
   	waitfordialog($illia2);
307
   	cam_fadeout( 1, 0, 0, 0, 1, 0 );
251
   	cam_fadeout( 1, 0, 0, 0, 1, 0 );
308
   	wait( 1 );
252
   	wait( 1 );
309
	stuffcmd("map map2 \n");
253
	stuffcmd("map map2\n");
310
}
254
}
311
void inc_death_toll()
255
void inc_death_toll()
312
{
256
{
Zeile 336... Zeile 280...
336
	e = entity_to_spawn.spawnnow();
280
	e = entity_to_spawn.spawnnow();
337
	wait( 0.05 );
281
	wait( 0.05 );
338
	e.ai_off();
282
	e.ai_off();
Zeile 339... Zeile 283...
339
 
283
 
340
	if (!doesEntityExist( e)) { inc_death_toll(); }
-
 
341
	//e.attackplayer();
284
	if (!doesEntityExist( e)) { inc_death_toll(); }
Zeile 342... Zeile 285...
342
	e.killthread("inc_death_toll");
285
	e.killthread("inc_death_toll");
343
 
286
 
344
	wait(1);
287
	wait(1);
345
	e.ai_on();
-
 
346
	e.attack( $player );
-
 
347
	//e.hurt(10);
288
	e.ai_on();
Zeile 348... Zeile 289...
348
 
289
	e.attack( $player );
349
}
290
}
Zeile 390... Zeile 331...
390
   globalLoadout_GiveWeapon( WEAPON_PHASER_STX );
331
   globalLoadout_GiveWeapon( WEAPON_PHASER_STX );
391
   globalLoadout_GiveWeapon( WEAPON_COMPRESSION_RIFLE );
332
   globalLoadout_GiveWeapon( WEAPON_COMPRESSION_RIFLE );
392
   globalLoadout_GiveWeapon( WEAPON_ASSAULT_SHOTGUN );
333
   globalLoadout_GiveWeapon( WEAPON_ASSAULT_SHOTGUN );
393
   $player.give( "models/weapons/worldmodel-batleth.tik" );
334
   $player.give( "models/weapons/worldmodel-batleth.tik" );
Zeile 394... Zeile 335...
394
 
335
 
395
   $player.use( "batleth" );
-
 
396
   
336
   //$player.use( "batleth" ); use later when cin thread ends, there it is incl. now
Zeile 397... Zeile 337...
397
   soundtrack( "music/m9l1a-klingon_base.mus" );
337
   soundtrack( "music/m9l1a-klingon_base.mus" );
Zeile 398... Zeile 338...
398
 
338
 
Zeile 462... Zeile 402...
462
   thread spawn_melee_klingon($wave5klingon1);
402
   thread spawn_melee_klingon($wave5klingon1);
463
   thread spawn_melee_klingon($wave5klingon2);
403
   thread spawn_melee_klingon($wave5klingon2);
464
   thread spawn_melee_klingon($wave5klingon3);
404
   thread spawn_melee_klingon($wave5klingon3);
465
   while ( killed_klingons < 7 ) { wait(.5); }
405
   while ( killed_klingons < 7 ) { wait(.5); }
Zeile 466... Zeile -...
466
 
-
 
467
 
-
 
468
 
406
 
469
   wait(2);
-
 
470
 
407
   wait(2);
471
   change_map();
-
 
472
 
-
 
473
 
408
   change_map();