2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
|
|
|
ENTER = ("setStateTo: HEAD_FOR_PLANET");
|
|
|
|
};
|
2009-07-08 16:20:10 +00:00
|
|
|
"HEAD_FOR_PLANET" =
|
2008-08-03 15:44:57 +00:00
|
|
|
{
|
2009-07-08 16:20:10 +00:00
|
|
|
ENTER = (setCourseToPlanet, "setDesiredRangeTo: 30000.0", "setSpeedFactorTo: 0.35", checkCourseToDestination);
|
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 0.65", performFlyToRangeFromDestination);
|
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2009-07-11 18:51:23 +00:00
|
|
|
"AEGIS_CLOSE_TO_MAIN_PLANET" = ("setStateTo: GO_TO_STATION");
|
|
|
|
"CLOSE_TO_SECONDARY_PLANET" = ("setStateTo: GO_TO_SUB_STATION");
|
2009-07-08 16:20:10 +00:00
|
|
|
"AEGIS_IN_DOCKING_RANGE" = (dockEscorts, "setStateTo: GO_TO_STATION");
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: GO_TO_STATION");
|
2009-07-09 19:56:15 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
|
|
|
"INCOMING_MISSILE" = ("setAITo: traderInterceptAI.plist", "setStateTo: INCOMING_MISSILE", "randomPauseAI: 0.5 2.0");
|
|
|
|
ATTACKED = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2009-09-03 19:44:45 +00:00
|
|
|
RESTARTED = (checkAegis);
|
2009-07-08 16:20:10 +00:00
|
|
|
UPDATE =
|
|
|
|
(
|
|
|
|
setCourseToPlanet,
|
|
|
|
"setDesiredRangeTo: 30000.0",
|
|
|
|
checkCourseToDestination,
|
|
|
|
scanForHostiles,
|
|
|
|
"pauseAI: 10.0"
|
|
|
|
);
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"GO_TO_STATION" =
|
|
|
|
{
|
2006-06-23 10:19:27 +00:00
|
|
|
ENTER = (setTargetToSystemStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
|
2005-06-08 10:22:59 +00:00
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 0.5", performFlyToRangeFromDestination);
|
2006-06-23 16:10:55 +00:00
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2006-06-23 10:19:27 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = (dockEscorts, setTargetToSystemStation, "setAITo: dockingAI.plist");
|
|
|
|
"AEGIS_IN_DOCKING_RANGE" = (dockEscorts, setTargetToSystemStation, "setAITo: dockingAI.plist");
|
2010-09-19 09:30:46 +00:00
|
|
|
"DOCKING_REFUSED" = ("switchAITo: route2sunskimAI.plist");
|
|
|
|
"NO_STATION_FOUND" = ("switchAITo: exitingTraderAI.plist");
|
2009-07-09 19:56:15 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
|
|
|
"INCOMING_MISSILE" = ("setAITo: traderInterceptAI.plist", "setStateTo: INCOMING_MISSILE", "randomPauseAI: 0.25 1.5");
|
|
|
|
ATTACKED = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2008-08-03 15:44:57 +00:00
|
|
|
UPDATE =
|
|
|
|
(
|
2006-06-23 16:10:55 +00:00
|
|
|
setTargetToSystemStation,
|
|
|
|
"setDesiredRangeTo: 5000.0",
|
|
|
|
setDestinationToTarget,
|
|
|
|
checkCourseToDestination,
|
|
|
|
scanForHostiles,
|
|
|
|
"pauseAI: 10.0"
|
|
|
|
);
|
2005-06-08 10:22:59 +00:00
|
|
|
};
|
2009-07-11 18:51:23 +00:00
|
|
|
"GO_TO_SUB_STATION" =
|
|
|
|
{
|
|
|
|
ENTER = (setTargetToStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
|
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 0.5", performFlyToRangeFromDestination);
|
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = (dockEscorts, setTargetToStation, "setAITo: dockingAI.plist");
|
|
|
|
"AEGIS_IN_DOCKING_RANGE" = (dockEscorts, setTargetToSystemStation, "setAITo: dockingAI.plist");
|
2010-09-19 09:30:46 +00:00
|
|
|
"DOCKING_REFUSED" = ("switchAITo: route2sunskimAI.plist");
|
|
|
|
"NO_STATION_FOUND" = ("switchAITo: exitingTraderAI.plist");
|
2009-07-11 18:51:23 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
|
|
|
"INCOMING_MISSILE" = ("setAITo: traderInterceptAI.plist", "setStateTo: INCOMING_MISSILE", "randomPauseAI: 0.25 1.5");
|
|
|
|
ATTACKED = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
|
|
|
UPDATE =
|
|
|
|
(
|
|
|
|
setTargetToStation,
|
|
|
|
"setDesiredRangeTo: 5000.0",
|
|
|
|
setDestinationToTarget,
|
|
|
|
checkCourseToDestination,
|
|
|
|
scanForHostiles,
|
|
|
|
"pauseAI: 10.0"
|
|
|
|
);
|
|
|
|
};
|
2009-07-08 16:20:10 +00:00
|
|
|
}
|