oolite/Resources/AIs/route1traderAI.plist

49 lines
2.1 KiB
Plaintext
Raw Normal View History

{
GLOBAL =
{
ENTER = ("setStateTo: HEAD_FOR_PLANET");
};
"HEAD_FOR_PLANET" =
{
ENTER = (setCourseToPlanet, "setDesiredRangeTo: 30000.0", "setSpeedFactorTo: 0.35", checkCourseToDestination);
"COURSE_OK" = ("setSpeedFactorTo: 0.65", performFlyToRangeFromDestination);
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
"AEGIS_CLOSE_TO_PLANET" = ("setStateTo: GO_TO_STATION");
"AEGIS_IN_DOCKING_RANGE" = (dockEscorts, "setStateTo: GO_TO_STATION");
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: GO_TO_STATION");
"TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: traderInterceptAI.plist");
// "INCOMING_MISSILE" = ("messageSelf: FIGHT_MISSILE", "pauseAI: 1.5");
"INCOMING_MISSILE" = ("messageSelf: FIGHT_MISSILE", "randomPauseAI: 0.5 2.0");
"FIGHT_MISSILE" = (setTargetToPrimaryAggressor, fightOrFleeMissile, "setAITo: traderInterceptAI.plist", "setStateTo: FLEE_FOR_MISSILE");
ATTACKED = ("setAITo: traderInterceptAI.plist");
UPDATE =
(
setCourseToPlanet,
"setDesiredRangeTo: 30000.0",
checkCourseToDestination,
scanForHostiles,
"pauseAI: 10.0"
);
};
"GO_TO_STATION" =
{
ENTER = (setTargetToSystemStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
"COURSE_OK" = ("setSpeedFactorTo: 0.5", performFlyToRangeFromDestination);
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
"DESIRED_RANGE_ACHIEVED" = (dockEscorts, setTargetToSystemStation, "setAITo: dockingAI.plist");
"AEGIS_IN_DOCKING_RANGE" = (dockEscorts, setTargetToSystemStation, "setAITo: dockingAI.plist");
"TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: traderInterceptAI.plist");
"INCOMING_MISSILE" = ("messageSelf: FIGHT_MISSILE", "randomPauseAI: 0.25 1.50");
"FIGHT_MISSILE" = (setTargetToPrimaryAggressor, fightOrFleeMissile, "setAITo: traderInterceptAI.plist", "setStateTo: FLEE_FOR_MISSILE");
ATTACKED = ("setAITo: traderInterceptAI.plist");
UPDATE =
(
setTargetToSystemStation,
"setDesiredRangeTo: 5000.0",
setDestinationToTarget,
checkCourseToDestination,
scanForHostiles,
"pauseAI: 10.0"
);
};
}