CustomItem {

	name = Red Gem;
	
	model1 = gfx/rw2/diamond.blend.raw;
	
	texture1 = textures/game/redGem.png;
	
	bbMins = -4 -4 -4;
	
	bbMaxs = 4 4 4;
	
	customCarriable = 1;

};

CustomItem {

	name = Orange Gem;
	
	model1 = gfx/rw2/diamond.blend.raw;
	
	texture1 = textures/game/orangeGem.png;
	
	bbMins = -4 -4 -4;
	
	bbMaxs = 4 4 4;
	
	customCarriable = 1;

};


CustomItem {

	name = Yellow Gem;
	
	model1 = gfx/rw2/diamond.blend.raw;
	
	texture1 = textures/game/yellowGem.png;
	
	bbMins = -4 -4 -4;
	
	bbMaxs = 4 4 4;
	
	customCarriable = 1;

};

CustomItem {

	name = Green Gem;
	
	model1 = gfx/rw2/diamond.blend.raw;
	
	texture1 = textures/game/greenGem.png;
	
	bbMins = -4 -4 -4;
	
	bbMaxs = 4 4 4;
	
	customCarriable = 1;

};

CustomItem {

	name = Blue Gem;
	
	model1 = gfx/rw2/diamond.blend.raw;
	
	texture1 = textures/game/blueGem.png;
	
	bbMins = -4 -4 -4;
	
	bbMaxs = 4 4 4;
	
	customCarriable = 1;

};

CustomItem {

	name = Purple Gem;
	
	model1 = gfx/rw2/diamond.blend.raw;
	
	texture1 = textures/game/purpleGem.png;
	
	bbMins = -4 -4 -4;
	
	bbMaxs = 4 4 4;
	
	customCarriable = 1;

};

//============== Main Mission Data =======================

Mission {

	missionName = Ancient Tomb Entrance;

	bsp = data/bsp/ancientTomb1.bsp;
	
	music = music/Dark.s3m;
	
	startCutscene = data/cutscenes/scripts/ancientTomb1Start;
	
	fogColor = 0 0 0;
	fogMin = 1000;
	fogMax = 3000;
	fogDensity = 0.25;
	
	skySphere = textures/game/starsky2.png;
	skySphereSize = 10;
	
	enemyLevel = 3;
	
	enemySpawnList = NME_PISTOL_BLOB|NME_MACHINEGUN_BLOB|NME_SHOTGUN_BLOB|NME_PISTOL_DROID|NME_MACHINEGUN_DROID|NME_GRENADE_BLOB|NME_LIGHT_PLASMA_BLOB;
	spawnSize = 4;
	minSpawnTime = 3000;
	maxSpawnTime = 4500;
	
	exitToMission = AUTO;
	
	supplyCrateList = WEP_UZI|WEP_SHOTGUN|WEP_PLASMA_PISTOL;
};

Objective {

	id = 1;
	priority = OBJ_PRIORITY_PRIMARY;
	description = Locate secret tomb entrance;
	status = OBJ_INCOMPLETE;
	active = 1;

};

Objective {

	id = 2;
	priority = OBJ_PRIORITY_PRIMARY;
	description = Find Red Gem;
	status = OBJ_INCOMPLETE;
	active = 1;

};

Objective {

	id = 3;
	priority = OBJ_PRIORITY_PRIMARY;
	description = Find Orange Gem;
	status = OBJ_INCOMPLETE;
	active = 1;

};

Objective {

	id = 4;
	priority = OBJ_PRIORITY_PRIMARY;
	description = Find Yellow Gem;
	status = OBJ_INCOMPLETE;
	active = 1;

};

Objective {

	id = 5;
	priority = OBJ_PRIORITY_PRIMARY;
	description = Find Green Gem;
	status = OBJ_INCOMPLETE;
	active = 1;

};

Objective {

	id = 6;
	priority = OBJ_PRIORITY_PRIMARY;
	description = Find Blue Gem;
	status = OBJ_INCOMPLETE;
	active = 1;

};

Objective {

	id = 7;
	priority = OBJ_PRIORITY_PRIMARY;
	description = Find Purple Gem;
	status = OBJ_INCOMPLETE;
	active = 1;

};

Objective {

	id = 8;
	priority = OBJ_PRIORITY_PRIMARY;
	description = Open main tomb door;
	status = OBJ_INCOMPLETE;
	active = 1;

};

// ================= Secret Entrance ================


Trigger {

	active = 1;

	type = TRIGGER_TYPE_NONE;
	
	action = TRIGGER_ACTION_UPDATE_OBJECTIVE;
	name = floodedTunnelEntrance;
	objectiveId = 1;

};

// ================= All Gems ================


Trigger {

	active = 1;

	type = TRIGGER_TYPE_ITEM_PICKED_UP;
	
	action = TRIGGER_ACTION_UPDATE_OBJECTIVE;
	name = Red Gem;
	objectiveId = 2;

};

Trigger {

	active = 1;

	type = TRIGGER_TYPE_ITEM_PICKED_UP;
	
	action = TRIGGER_ACTION_UPDATE_OBJECTIVE;
	name = Orange Gem;
	objectiveId = 3;

};

Trigger {

	active = 1;

	type = TRIGGER_TYPE_ITEM_PICKED_UP;
	
	action = TRIGGER_ACTION_UPDATE_OBJECTIVE;
	name = Yellow Gem;
	objectiveId = 4;

};

Trigger {

	active = 1;

	type = TRIGGER_TYPE_ITEM_PICKED_UP;
	
	action = TRIGGER_ACTION_UPDATE_OBJECTIVE;
	name = Green Gem;
	objectiveId = 5;

};

Trigger {

	active = 1;

	type = TRIGGER_TYPE_ITEM_PICKED_UP;
	
	action = TRIGGER_ACTION_UPDATE_OBJECTIVE;
	name = Blue Gem;
	objectiveId = 6;

};

Trigger {

	active = 1;

	type = TRIGGER_TYPE_ITEM_PICKED_UP;
	
	action = TRIGGER_ACTION_UPDATE_OBJECTIVE;
	name = Purple Gem;
	objectiveId = 7;

};

// ================= Tomb Door ================

Trigger {

	active = 1;

	type = TRIGGER_TYPE_NONE;
	
	action = TRIGGER_ACTION_UPDATE_OBJECTIVE;
	name = tombEntrance;
	objectiveId = 8;

};

@END@
