2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
2012-02-08 19:45:39 +00:00
|
|
|
ENTER = ("setStateTo: CHECK_STATUS");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
2012-02-08 19:45:39 +00:00
|
|
|
"CHECK_STATUS" = {
|
2012-07-29 20:21:11 +00:00
|
|
|
ENTER = (checkOwnLegalStatus, "setDesiredRangeTo: 1000000.0");
|
2012-02-08 19:45:39 +00:00
|
|
|
"SELF_CLEAN" = ("setStateTo: HEAD_FOR_PLANET");
|
2012-07-29 20:21:11 +00:00
|
|
|
"SELF_MINOR_OFFENDER" = ("rollD: 2"); // head for main station 50%
|
|
|
|
"SELF_OFFENDER" = ("rollD: 4"); // head for main station 25%
|
2012-02-08 19:45:39 +00:00
|
|
|
"SELF_FUGITIVE" = (setTargetToRandomStation);
|
|
|
|
"SELF_THARGOID" = ("switchAITo: thargoidAI.plist");
|
2012-07-29 20:21:11 +00:00
|
|
|
"ROLL_1" = ("setStateTo: HEAD_FOR_PLANET");
|
|
|
|
"ROLL_2" = (setTargetToRandomStation);
|
|
|
|
"ROLL_3" = (setTargetToRandomStation);
|
|
|
|
"ROLL_4" = (setTargetToRandomStation);
|
2012-02-08 19:45:39 +00:00
|
|
|
"NO_STATION_IN_RANGE" = ("setStateTo: HEAD_FOR_PLANET");
|
|
|
|
"STATION_FOUND" = ("setStateTo: GO_TO_RANDOM_STATION");
|
|
|
|
};
|
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");
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
|
2012-07-29 20:21:11 +00:00
|
|
|
"ATTACKER_MISSED" = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2009-07-09 19:56:15 +00:00
|
|
|
ATTACKED = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2012-05-22 20:06:21 +00:00
|
|
|
"ATTACKED_BY_CLOAKED" = ("setAITo: traderInterceptAI.plist", "setStateTo: FLEE_FOR_CLOAKED");
|
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" =
|
|
|
|
{
|
2012-03-10 15:19:44 +00:00
|
|
|
ENTER = ("dropMessages: WAYPOINT_SET", 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");
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
|
2012-07-29 20:21:11 +00:00
|
|
|
"ATTACKER_MISSED" = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2009-07-09 19:56:15 +00:00
|
|
|
ATTACKED = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2012-05-22 20:06:21 +00:00
|
|
|
"ATTACKED_BY_CLOAKED" = ("setAITo: traderInterceptAI.plist", "setStateTo: FLEE_FOR_CLOAKED");
|
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" =
|
|
|
|
{
|
2012-03-10 15:19:44 +00:00
|
|
|
ENTER = ("dropMessages: WAYPOINT_SET", setTargetToNearestFriendlyStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
|
2009-07-11 18:51:23 +00:00
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 0.5", performFlyToRangeFromDestination);
|
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2012-02-08 19:45:39 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = (dockEscorts, setTargetToNearestFriendlyStation, "setAITo: dockingAI.plist");
|
2009-07-11 18:51:23 +00:00
|
|
|
"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");
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
|
2012-07-29 20:21:11 +00:00
|
|
|
"ATTACKER_MISSED" = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2009-07-11 18:51:23 +00:00
|
|
|
ATTACKED = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2012-05-22 20:06:21 +00:00
|
|
|
"ATTACKED_BY_CLOAKED" = ("setAITo: traderInterceptAI.plist", "setStateTo: FLEE_FOR_CLOAKED");
|
2009-07-11 18:51:23 +00:00
|
|
|
UPDATE =
|
|
|
|
(
|
2012-02-08 19:45:39 +00:00
|
|
|
setTargetToNearestFriendlyStation,
|
2009-07-11 18:51:23 +00:00
|
|
|
"setDesiredRangeTo: 5000.0",
|
|
|
|
setDestinationToTarget,
|
|
|
|
checkCourseToDestination,
|
|
|
|
scanForHostiles,
|
|
|
|
"pauseAI: 10.0"
|
|
|
|
);
|
|
|
|
};
|
2012-02-08 19:45:39 +00:00
|
|
|
"GO_TO_RANDOM_STATION" =
|
|
|
|
{
|
2012-03-10 15:19:44 +00:00
|
|
|
ENTER = ("dropMessages: WAYPOINT_SET", "setDesiredRangeTo: 15000.0", setDestinationToTarget, checkCourseToDestination);
|
2012-02-08 19:45:39 +00:00
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 0.5", performFlyToRangeFromDestination);
|
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = (dockEscorts, setTargetToNearestStation, "setAITo: dockingAI.plist");
|
|
|
|
"DOCKING_REFUSED" = ("switchAITo: route2sunskimAI.plist");
|
|
|
|
"NO_STATION_FOUND" = ("switchAITo: exitingTraderAI.plist");
|
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
|
|
|
"INCOMING_MISSILE" = ("setAITo: traderInterceptAI.plist", "setStateTo: INCOMING_MISSILE", "randomPauseAI: 0.25 1.5");
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
|
2012-07-29 20:21:11 +00:00
|
|
|
"ATTACKER_MISSED" = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2012-02-08 19:45:39 +00:00
|
|
|
ATTACKED = ("setAITo: traderInterceptAI.plist", fightOrFleeHostiles);
|
2012-05-22 20:06:21 +00:00
|
|
|
"ATTACKED_BY_CLOAKED" = ("setAITo: traderInterceptAI.plist", "setStateTo: FLEE_FOR_CLOAKED");
|
2012-02-08 19:45:39 +00:00
|
|
|
UPDATE =
|
|
|
|
(
|
|
|
|
setTargetToLastStation,
|
|
|
|
"setDesiredRangeTo: 15000.0",
|
|
|
|
setDestinationToTarget,
|
|
|
|
checkCourseToDestination,
|
|
|
|
scanForHostiles,
|
|
|
|
"pauseAI: 10.0"
|
|
|
|
);
|
|
|
|
};
|
2009-07-08 16:20:10 +00:00
|
|
|
}
|