INHERIT  			"GOL\TURRETVEHICLE.GOL"


# Goal used to cause bomber to drop a load of bombs.
# (Fire off 1 clip of ammo blindly)
# next goal will be GOAL_FOLLOW_PATH if on path, default goal otherwise

NewGoal
Name		GOAL_FOLLOW_PATH
IMASK		0
SMASK		0
NumJobs		3
JOB_SET_FAIL_GOAL					GOAL_FOLLOW_PATH
JOB_FOLLOW_PATH						0
JOB_SET_GOAL						GOAL_FOLLOW_PATH
End  #NewGoal

NewGoal
Name		GOAL_FIRE_SALVO
IMASK		0
SMASK		0
NumJobs		3
JOB_SET_FAIL_GOAL			GOAL_FOLLOW_PATH
JOB_FOLLOW_PATH				0
JOB_SET_GOAL				GOAL_FOLLOW_PATH
End  #NewGoal

NewGoal
Name		GOAL_ALERT_TO_ATTACK
IMASK		bit_COND_LIGHT_DAMAGE
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_FALLING
IMASK		bit_COND_PROCESS_ORDER
SMASK		0
NumJobs     3
JOB_PLAY_SOUND_ONCE			VOCALIZATION__ACTION__SIGHTED_ENEMY_PLAYER
JOB_SPOT_ENEMY				0
JOB_ALERT_TO_ATTACK			0
End  #NewGoal

NewGoal
Name		GOAL_RANGE_ATTACK1
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_ENEMY_DEAD
IMASK		bit_COND_LIGHT_DAMAGE
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_FALLING
IMASK		bit_COND_PROCESS_ORDER
IMASK		bit_COND_NO_AMMO_LOADED
IMASK		bit_COND_CAN_DODGE_ATTACK
IMASK		bit_COND_CAN_MELEE_ATTACK1
IMASK		bit_COND_SOUND_ALARM
IMASK		bit_COND_CUTSCENE
SMASK		0
NumJobs     6
JOB_SET_FAIL_GOAL				GOAL_ALERT_IDLE
JOB_RANGE_ATTACK1				0
JOB_RANGE_ATTACK1				0
JOB_RANGE_ATTACK1				0
JOB_RANGE_ATTACK1				0
JOB_RANGE_ATTACK1				0
End  #NewGoal

NewGoal
Name		GOAL_FIND_LOF
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_ENEMY_DEAD
#IMASK		bit_COND_CAN_ATTACK
IMASK		bit_COND_CAN_RANGE_ATTACK1
IMASK		bit_COND_LIGHT_DAMAGE
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_FALLING
IMASK		bit_COND_PROCESS_ORDER
IMASK		bit_COND_GOAL_DONE
SMASK		0
NumJobs		2
JOB_MOVE_TO_BEST_LOF	0
JOB_FACE_ENEMY_LKP		0
End  #NewGoal


NewGoal
Name		GOAL_CHASE_ENEMY
IMASK		bit_COND_SEE_ENEMY
IMASK		bit_COND_LIGHT_DAMAGE
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_FALLING
IMASK		bit_COND_PROCESS_ORDER
SMASK		0
NumJobs		3
JOB_SET_FAIL_GOAL		GOAL_FIND_LOF
JOB_MOVE_TO_BEST_LOF	0
JOB_SET_GOAL			GOAL_ALERT_FACE
End  #NewGoal


NewGoal
Name		GOAL_OUT_OF_AMMO
IMASK		bit_COND_LIGHT_DAMAGE
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_FALLING
SMASK		0
NumJobs		1
JOB_SET_GOAL				GOAL_RELOAD
End  #NewGoal

NewGoal
Name		GOAL_RELOAD
IMASK		bit_COND_LIGHT_DAMAGE
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_FALLING
IMASK		bit_COND_CAN_MELEE_ATTACK1
SMASK		0
NumJobs		3
JOB_SET_FAIL_GOAL			GOAL_TAKE_COVER_AND_RELOAD
#JOB_HALT					0
JOB_RELOAD					0
#JOB_PLAY_ANIMATION_ONCE		MESHANIM_RELOAD
JOB_SET_GOAL				GOAL_FIND_LOF
End  #NewGoal


NewGoal
Name		GOAL_INVESTIGATE_ENEMY_LKP
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_SEE_ENEMY
IMASK		bit_COND_LIGHT_DAMAGE
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_FALLING
IMASK		bit_COND_PROCESS_ORDER
IMASK		bit_COND_GOAL_DONE
IMASK		bit_COND_HEAR_SOUND
IMASK		bit_COND_HEARD_TEAMMATE
SMASK		bit_SOUND_PLAYER
SMASK		bit_SOUND_COMBAT
NumJobs		6
JOB_HALT					0
JOB_FACE_ENEMY_LKP			0
JOB_WAIT					3
JOB_MOVE_TO_ENEMY_LKP		0
JOB_FACE_ENEMY_LKP			0
JOB_WAIT					2
#// DAVIDE: new audio to add
#JOB_PLAY_SOUND_ONCE				VOCALIZATION__ACTION__NOTHING_THERE
End  #NewGoal

NewGoal
Name		GOAL_ATTACK_FACE
IMASK		bit_COND_SEE_ENEMY
IMASK		bit_COND_LIGHT_DAMAGE
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_FALLING
IMASK		bit_COND_PROCESS_ORDER
SMASK		0
NumJobs		3
JOB_HALT				0
JOB_FACE_ENEMY_ATTACK	0
JOB_SET_GOAL			GOAL_FIND_LOF
End  #NewGoal

NewGoal
Name		GOAL_ALERT_IDLE
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_SEE_ENEMY
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		1
JOB_SET_STATE				AI_STATE_IDLE
End  #NewGoal
