INHERIT  			"GOL\BASEFLESHAI.GOL"

NewGoal
Name		GOAL_FAIL
IMASK		bit_COND_CAN_ATTACK
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_SEE_ENEMY
SMASK		0
NumJobs		3
JOB_BONE_LOCK		BONE_TYPE_TURRET
JOB_BONE_LOCK		BONE_TYPE_CANNON
JOB_SCAN			0
End  #NewGoal


NewGoal
Name		GOAL_IDLE_STAND
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_SEE_ENEMY
IMASK		bit_COND_ACTIVATED
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		9
JOB_BONE_LOCK				BONE_TYPE_TURRET
JOB_BONE_LOCK				BONE_TYPE_CANNON
JOB_PRIMARY_WEAPON_OFF		0
JOB_BONE_UNLOCK				BONE_TYPE_TURRET
JOB_BONE_UNLOCK				BONE_TYPE_CANNON
JOB_SKIP_JOBS				1
JOB_PLAY_ANIMATION_ONCE		MESHANIM_DEACTIVATE
JOB_PLAY_ANIMATION_ONCE		MESHANIM_IDLE
JOB_WAIT					5
End  #NewGoal

NewGoal
Name		GOAL_SPOTTED_ENEMY_WHILE_IDLE
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		8
JOB_IDLE_TO_ALERT			0
JOB_PRIMARY_WEAPON_ON		0
JOB_SKIP_JOBS				4
JOB_PLAY_ANIMATION_ONCE		MESHANIM_ACTIVATE
JOB_PLAY_ANIMATION_ONCE		MESHANIM_BATTLE_IDLE
JOB_BONE_LOCK				BONE_TYPE_TURRET
JOB_BONE_LOCK				BONE_TYPE_CANNON
JOB_SET_GOAL				GOAL_ALERT_IDLE
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		2
JOB_SCAN					0
JOB_SET_STATE				AI_STATE_ALERT
End  #NewGoal

NewGoal
Name		GOAL_ALERT_LOOK
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_SEE_ENEMY
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		1
JOB_SCAN				0
End  #NewGoal

NewGoal
Name		GOAL_RANGE_ATTACK1
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_ENEMY_DEAD
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_NO_AMMO_LOADED
IMASK		bit_COND_GOAL_DONE
SMASK		0
NumJobs		1
JOB_RANGE_ATTACK1	0
End  #NewGoal


NewGoal
Name		GOAL_ALERT_FACE
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_CAN_RANGE_ATTACK1
IMASK		bit_COND_ENEMY_DEAD
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		1
JOB_FACE_ENEMY_LKP	0
End  #NewGoal

NewGoal
Name		GOAL_ALERT_TO_IDLE
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		1
JOB_SET_GOAL		GOAL_ALERT_FACE
End  #NewGoal


NewGoal
Name		GOAL_SLEEP
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		9
JOB_BONE_LOCK				BONE_TYPE_TURRET
JOB_BONE_LOCK				BONE_TYPE_CANNON
JOB_PRIMARY_WEAPON_OFF		0
JOB_BONE_UNLOCK				BONE_TYPE_TURRET
JOB_BONE_UNLOCK				BONE_TYPE_CANNON
JOB_SKIP_JOBS				1
JOB_PLAY_ANIMATION_ONCE		MESHANIM_DEACTIVATE
JOB_PLAY_ANIMATION_ONCE		MESHANIM_IDLE
JOB_WAIT					5
End  #NewGoal

NewGoal
Name		GOAL_INVESTIGATE_ENEMY_LKP
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_SEE_ENEMY
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		2
JOB_SCAN					1
JOB_SET_STATE				AI_STATE_ALERT
End  #NewGoal


NewGoal
Name		GOAL_ATTACK_FACE
IMASK		bit_COND_SEE_ENEMY
IMASK		bit_COND_NEW_ENEMY
IMASK		bit_COND_HEAVY_DAMAGE
SMASK		0
NumJobs		1
JOB_FACE_ENEMY_ATTACK	0
End  #NewGoal


NewGoal
Name		GOAL_OUT_OF_AMMO
#IMASK		bit_COND_LIGHT_DAMAGE
#IMASK		bit_COND_HEAVY_DAMAGE
#IMASK		bit_COND_FALLING
IMASK		0
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		0
SMASK		0
NumJobs		8
JOB_RELOAD					0
JOB_BONE_UNLOCK				BONE_TYPE_TURRET
JOB_BONE_UNLOCK				BONE_TYPE_CANNON
JOB_PLAY_ANIMATION_ONCE		MESHANIM_RELOAD
JOB_PLAY_ANIMATION_ONCE		MESHANIM_BATTLE_IDLE
#JOB_WAIT					2
JOB_BONE_LOCK				BONE_TYPE_TURRET
JOB_BONE_LOCK				BONE_TYPE_CANNON
JOB_SET_GOAL				GOAL_ALERT_FACE
End  #NewGoal

NewGoal
Name		GOAL_DESTROY_TARGET
IMASK		bit_COND_HEAVY_DAMAGE
IMASK		bit_COND_NO_AMMO_LOADED
SMASK		0
NumJobs		7
JOB_PRIMARY_WEAPON_ON		0
JOB_SKIP_JOBS				4
JOB_PLAY_ANIMATION_ONCE		MESHANIM_ACTIVATE
JOB_PLAY_ANIMATION_ONCE		MESHANIM_BATTLE_IDLE
JOB_BONE_LOCK				BONE_TYPE_TURRET
JOB_BONE_LOCK				BONE_TYPE_CANNON
JOB_DESTROY_TARGET			0
End  #NewGoal
