//-- Failure Conditions --
//-- Seen by guard or security camera, shot at, or open
//-- the door to John Brightling's office before the security system is turned off.
//------------------------

// Kill any guard: Condition 0
TERRORIST_CASUALTY_COUNT
  	THRESHOLD ANY
  	KILLED_BY_TEAM 1
  	RESULT FAILURE

// Team Member seen by guard: Condition 1
HUMAN_CLASS_CONDITION TEAM_MEMBERS
	DESCRIPTION	VC_GEN_DONT_BE_SEEN
	HAS_BEEN_SEEN 1
	NUMBER ANY
	RESULT	FAILURE

// Alarm to end mission: Condition 2
OBJECT_CONDITION
	OBJECT	alarm
	GOAL_TYPE	NOT_GOAL
	RESULT		FAILURE

// Door to Brightling's office: Condition 3
OBJECT_CONDITION
	OBJECT	door01_70
	GOAL_TYPE	NOT_GOAL
	RESULT		FAILURE

// Door to Brightling's office: Condition 4
OBJECT_CONDITION
	OBJECT	door02_70
	GOAL_TYPE	NOT_GOAL
	RESULT		FAILURE


//-- Success Conditions --
//-- Turn off security system and download computer files
//------------------------

// Condition 5
OBJECT_CONDITION
	OBJECT	security_console
	DESCRIPTION	VC_GEN_DISABLE_CONSOLE
	GOAL_TYPE	PRIMARY_GOAL
	RESULT		NO_RESULT

// When the security system is turned off it disables the alarm and door failure conditions.
DISABLES 5 2
DISABLES 5 3
DISABLES 5 4

// Download computer files : Condition 6
OBJECT_CONDITION
	OBJECT	computer
	DESCRIPTION	VC_GEN_DOWNLOAD_FILES
	GOAL_TYPE	PRIMARY_GOAL
	RESULT		PARTIAL_SUCCESS

// Return to extraction zone: Condition 7
HUMAN_CLASS_CONDITION TEAM_MEMBERS
	DESCRIPTION	VC_GEN_REACH_EXTRACTION_ZONE
	GOAL_TYPE 	PRIMARY_GOAL
 	HAS_REACHED_EXTRACTION_ZONE 1
	NUMBER		ALL
  	RESULT 		PARTIAL_SUCCESS

