450c395138
- AI fix for looting to prevent a ship circling around a cargo pod as I witnessed the other day. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4673 127b21dd-08f5-0310-b4b7-95ae10353056
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
{
|
|
GLOBAL =
|
|
{
|
|
ENTER = ("setSpeedFactorTo: 1.0", "setStateTo: HEAD_FOR_PLANET");
|
|
};
|
|
"HEAD_FOR_PLANET" =
|
|
{
|
|
ENTER = (setCourseToPlanet, checkCourseToDestination);
|
|
"NOTHING_FOUND" = ("setStateTo: MOVE_AWAY");
|
|
"WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT");
|
|
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
|
"DESIRED_RANGE_ACHIEVED" = (landOnPlanet);
|
|
"APPROACHING_SURFACE" = (landOnPlanet);
|
|
UPDATE = (setCourseToPlanet, checkCourseToDestination, "pauseAI: 10.0");
|
|
};
|
|
"MOVE_AWAY" =
|
|
{
|
|
ENTER = (setDestinationToCurrentLocation, "setDesiredRangeTo: 7000.0", checkCourseToDestination);
|
|
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
|
"DESIRED_RANGE_ACHIEVED" = ("setAITo: dumbAI.plist");
|
|
UPDATE = (checkCourseToDestination, "pauseAI: 10.0");
|
|
};
|
|
"NEW_WAYPOINT" =
|
|
{
|
|
ENTER = ("setSpeedFactorTo: 1.0", setDesiredRangeForWaypoint, checkCourseToDestination, "pauseAI: 2.0");
|
|
"WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT");
|
|
"COURSE_OK" = ("setStateTo: HEAD_FOR_PLANET");
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: HEAD_FOR_PLANET");
|
|
};
|
|
}
|