2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
|
|
|
ENTER = ("setSpeedFactorTo: 0.25", "setStateTo: FLY_HOME");
|
|
|
|
};
|
2009-07-24 19:51:37 +00:00
|
|
|
"FLY_HOME" = {
|
2005-06-08 10:22:59 +00:00
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
2009-07-24 19:51:37 +00:00
|
|
|
"WAYPOINT_SET" = ("setStateTo: GO_TO_WAYPOINT");
|
2009-08-03 17:11:24 +00:00
|
|
|
"APPROACHING_SURFACE" = ("setSpeedFactorTo: 0.3", "setStateTo: APPROACH");
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setSpeedFactorTo: 0.7", "setStateTo: APPROACH");
|
2009-07-24 19:51:37 +00:00
|
|
|
"AEGIS_LEAVING_DOCKING_RANGE" = ("setStateTo: APPROACH");
|
2009-08-06 20:24:25 +00:00
|
|
|
"LAUNCHED OKAY" = ("setStateTo: CLEAR_STATION");
|
2009-07-24 19:51:37 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, broadcastDistressMessage);
|
|
|
|
"INCOMING_MISSILE" = (fireECM);
|
2009-08-03 17:11:24 +00:00
|
|
|
UPDATE = (setCourseToPlanet, "setDesiredRangeTo: 300.0", checkCourseToDestination, "pauseAI: 10.0");
|
2009-07-24 19:51:37 +00:00
|
|
|
};
|
|
|
|
"GO_TO_WAYPOINT" = {
|
|
|
|
ENTER = ("setDesiredRangeTo: 50.0", checkCourseToDestination);
|
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 0.8", performFlyToRangeFromDestination);
|
|
|
|
"WAYPOINT_SET" = ("setDesiredRangeTo: 50.0", checkCourseToDestination);
|
2009-08-03 17:11:24 +00:00
|
|
|
"APPROACHING_SURFACE" = ("setSpeedFactorTo: 0.3", "setStateTo: APPROACH");
|
2009-07-24 19:51:37 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: FLY_HOME");
|
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, broadcastDistressMessage);
|
|
|
|
"AEGIS_LEAVING_DOCKING_RANGE" = ("setStateTo: APPROACH");
|
|
|
|
"INCOMING_MISSILE" = (fireECM);
|
|
|
|
UPDATE = ("pauseAI: 10.0");
|
|
|
|
};
|
2009-08-06 20:24:25 +00:00
|
|
|
"CLEAR_STATION" = {
|
|
|
|
ENTER = (getWitchspaceEntryCoordinates, setDestinationFromCoordinates, "setDesiredRangeTo: 100.0",
|
|
|
|
"setSpeedFactorTo: 0.75", performFlyToRangeFromDestination, "pauseAI: 15");
|
|
|
|
UPDATE = ("setStateTo: FLY_HOME", "pauseAI: 5.0");
|
|
|
|
};
|
2009-07-24 19:51:37 +00:00
|
|
|
"APPROACH" = {
|
2009-08-03 17:11:24 +00:00
|
|
|
ENTER = (setCourseToPlanet, "setDesiredRangeTo: 100.0", performFlyToRangeFromDestination);
|
|
|
|
"APPROACHING_SURFACE" = ("setSpeedFactorTo: 0.3", performFlyToRangeFromDestination);
|
2009-07-24 19:51:37 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setSpeedFactorTo: 0.2", "setStateTo: LANDING");
|
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, broadcastDistressMessage);
|
|
|
|
"INCOMING_MISSILE" = (fireECM, "setSpeedFactorTo: 1.0");
|
|
|
|
};
|
|
|
|
"LANDING" = {
|
2009-08-03 17:11:24 +00:00
|
|
|
ENTER = ("setSpeedFactorTo: 0.0", setTakeOffFromPlanet, performFaceDestination, "pauseAI: 4.0");
|
2009-07-24 19:51:37 +00:00
|
|
|
"FACING_DESTINATION" = (landOnPlanet);
|
|
|
|
};
|
|
|
|
}
|