Subversion-Projekte sthq.colony7

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
62 chriss 1
//Colony-7-level-script-by-chrissstrahl/////////////////////////////////////////
2
void main();
3
void sound_DoorLocked();
4
void sound_DoorRing();
5
 
6
 
7
////////////////////////////////////////////////////////////////////////////////
8
// Include Cinamtic for this level
9
////////////////////////////////////////////////////////////////////////////////
10
#include "maps/c7_cinematic/c7-1_1_cin.scr"
11
 
12
 
13
void main()
14
////////////////////////////////////////////////////////////////////////////////
15
// MAIN thread, gets executed on level start
16
////////////////////////////////////////////////////////////////////////////////
17
{
18
//--- Wait for the player to spawn
19
	waitforplayer();
20
//--- give the player a weapon
21
	$player.give("wapons/worldmodel-phaser.tik");
22
	$player.give("wapons/worldmodel-tricorder.tik");
23
//-- Start Intro Cinematic
24
	thread cinamtic_intro();
25
}
26
 
27
 
28
void sound_DoorLocked()
29
////////////////////////////////////////////////////////////////////////////////
30
// Door locked sound
31
////////////////////////////////////////////////////////////////////////////////
32
{
33
//--- Grab trigger which did call this thread
34
	entity eTrigger;
35
	eTrigger = getCurrentEntity();
36
//--- See if the triger in the variable does even exist
37
	if(doesEntityExist(eTrigger))
38
	{
39
		eTrigger.playsound("sound/doors/door_locked.wav",0,1,128);//snd,chan,vol,dist
40
	}
41
}
42
 
43
 
44
 
45
void sound_DoorRing()
46
////////////////////////////////////////////////////////////////////////////////
47
// Door ring sound
48
////////////////////////////////////////////////////////////////////////////////
49
{
50
//--- Grab trigger which did call this thread
51
	entity eTrigger;
52
	eTrigger = getCurrentEntity();
53
//--- See if the triger in the variable does even exist
54
	if(doesEntityExist(eTrigger))
55
	{
56
		eTrigger.playsound("sound/environment/computer/lcars_door.wav",0,1,128);//snd,chan,vol,dist
57
	}
58
}
59