2005-04-19 19:53:18 +00:00
|
|
|
{
|
2005-06-08 10:22:59 +00:00
|
|
|
"ATTACK_SHIP" = {
|
|
|
|
"ATTACKED" = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
ENTER = (performAttack);
|
|
|
|
EXIT = ();
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
"TARGET_DESTROYED" = ("setStateTo: LOOK_FOR_TARGETS");
|
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP");
|
|
|
|
"TARGET_LOST" = ("setStateTo: LOOK_FOR_TARGETS");
|
|
|
|
UPDATE = (scanForNonThargoid, "pauseAI: 15.0");
|
|
|
|
};
|
|
|
|
"LOOK_FOR_TARGETS" = {
|
|
|
|
"ATTACKED" = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP");
|
|
|
|
"NOTHING_FOUND" = ("setStateTo: HEAD_FOR_PLANET");
|
|
|
|
ENTER = ("setSpeedTo: 0.0", performTumble, scanForNonThargoid, "pauseAI: 5.0");
|
|
|
|
EXIT = ();
|
|
|
|
UPDATE = (scanForNonThargoid, "pauseAI: 5.0");
|
|
|
|
};
|
|
|
|
"HEAD_FOR_PLANET" = {
|
|
|
|
ENTER = (setCourseToPlanet, "setDesiredRangeTo: 80000.0", checkCourseToDestination);
|
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
2006-06-23 16:10:55 +00:00
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2005-06-08 10:22:59 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: LOOK_FOR_TARGETS");
|
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP");
|
|
|
|
EXIT = ();
|
2006-06-23 16:10:55 +00:00
|
|
|
UPDATE = (setCourseToPlanet, "setDesiredRangeTo: 80000.0", checkCourseToDestination, scanForNonThargoid, "pauseAI: 10.0");
|
2005-06-08 10:22:59 +00:00
|
|
|
};
|
|
|
|
GLOBAL = {ENTER = ("setStateTo: LOOK_FOR_TARGETS"); EXIT = (); UPDATE = (); };
|
2005-04-19 19:53:18 +00:00
|
|
|
}
|