//-- Failure Conditions --
//------------------------


// Failure Condition : Condition 0
OBJECT_CONDITION
  OBJECT		elevatorshaft
  GOAL_TYPE		NOT_GOAL
  RESULT		FAILURE

//-- Success Conditions --
//------------------------

// Get access codes : Condition 1
OBJECT_CONDITION
	OBJECT	mainbar
	DESCRIPTION	VC_G4_ACCESSCODES
	GOAL_TYPE	PRIMARY_GOAL
	RESULT		PARTIAL_SUCCESS

// security monitor : Condition 2
OBJECT_CONDITION
	OBJECT	monitor1
	DESCRIPTION	VC_G4_SECURITY
	GOAL_TYPE	PRIMARY_GOAL
	RESULT		PARTIAL_SUCCESS

// security monitor : Condition 3
OBJECT_CONDITION
	OBJECT	monitor2
	GOAL_TYPE	PRIMARY_GOAL
	RESULT		PARTIAL_SUCCESS

// security monitor : Condition 4
OBJECT_CONDITION
	OBJECT	monitor3
	GOAL_TYPE	PRIMARY_GOAL
	RESULT		PARTIAL_SUCCESS

// Kill Tolan: 	Condition 5
SPECIFIC_HUMAN_CONDITION
  DESCRIPTION		VC_G4_KILL_STBOSS
  GOAL_TYPE 		PRIMARY_GOAL
  ACTOR			BigbossST
  HAS_BEEN_KILLED 	1
  RESULT 		PARTIAL_SUCCESS

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

// Elevator : Condition 7
OBJECT_CONDITION
	OBJECT	elevator
	DESCRIPTION	VC_G4_ELEVATOR
	GOAL_TYPE	PRIMARY_GOAL
	RESULT		PARTIAL_SUCCESS

// When the elevator is turned off you can enter door 150 (condition:0)
DISABLES 7 0

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

// Condition 9:	Hostage Dies
HUMAN_CLASS_CONDITION HOSTAGES
	HAS_BEEN_KILLED	1
	NUMBER		1
	RESULT		FAILURE

// Condition 10: Death Limit
HUMAN_CLASS_CONDITION TERRORISTS
	HAS_BEEN_KILLED 1
	NUMBER		8
	GOAL_TYPE	NOT_GOAL
	RESULT		FAILURE