2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
2009-08-01 11:56:30 +00:00
|
|
|
ENTER = (switchLightsOff, "setStateTo: HEAD_FOR_WITCHPOINT");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"HEAD_FOR_PLANET" =
|
2008-07-08 23:15:33 +00:00
|
|
|
{
|
2005-06-08 10:22:59 +00:00
|
|
|
ENTER = (setCourseToPlanet, "setDesiredRangeTo: 50000.0", checkCourseToDestination);
|
2009-08-01 11:56:30 +00:00
|
|
|
"COURSE_OK" = (setSpeedToCruiseSpeed, performFlyToRangeFromDestination);
|
2006-06-23 16:10:55 +00:00
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
"DOCKING_REQUESTED" = ("setAITo: receiveDockingAI.plist");
|
2010-10-17 10:51:23 +00:00
|
|
|
"AEGIS_CLOSE_TO_MAIN_PLANET" = ("setStateTo: HEAD_FOR_WITCHPOINT");
|
2005-06-08 10:22:59 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: HEAD_FOR_WITCHPOINT");
|
2008-08-03 15:44:57 +00:00
|
|
|
"ACCEPT_DISTRESS_CALL" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
|
|
|
|
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", deployEscorts, groupAttackTarget);
|
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
|
2010-10-17 10:51:23 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, deployEscorts, groupAttackTarget);
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2012-07-29 20:21:11 +00:00
|
|
|
"ATTACKER_MISSED" = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2012-05-22 20:06:21 +00:00
|
|
|
"ATTACKED_BY_CLOAKED" = ("setAITo: interceptAI.plist", "setStateTo: FLEE_FOR_CLOAKED");
|
2010-10-17 10:51:23 +00:00
|
|
|
"GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, "setStateTo: INBOUND_LOOT", "setAITo: interceptAI.plist");
|
2009-09-03 19:44:45 +00:00
|
|
|
RESTARTED = (checkAegis);
|
2006-06-23 16:10:55 +00:00
|
|
|
UPDATE = (setCourseToPlanet, "setDesiredRangeTo: 50000.0", checkCourseToDestination, scanForOffenders, "pauseAI: 10.0");
|
2008-07-08 23:15:33 +00:00
|
|
|
};
|
2008-08-03 15:44:57 +00:00
|
|
|
"HEAD_FOR_WITCHPOINT" =
|
2008-07-08 23:15:33 +00:00
|
|
|
{
|
2005-06-08 10:22:59 +00:00
|
|
|
ENTER = (setCourseToWitchpoint, checkCourseToDestination);
|
2009-08-01 11:56:30 +00:00
|
|
|
"COURSE_OK" = (setSpeedToCruiseSpeed, performFlyToRangeFromDestination);
|
2006-06-23 16:10:55 +00:00
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2012-04-20 07:32:19 +00:00
|
|
|
"LAUNCHED OKAY" = ("dropMessages: WAYPOINT_SET", "pauseAI: 1.0");
|
2008-08-03 15:44:57 +00:00
|
|
|
"DOCKING_REQUESTED" = ("setAITo: receiveDockingAI.plist");
|
2005-06-08 10:22:59 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: HEAD_FOR_PLANET");
|
2008-08-03 15:44:57 +00:00
|
|
|
"ACCEPT_DISTRESS_CALL" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
|
|
|
|
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", deployEscorts, groupAttackTarget);
|
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
|
2010-10-17 10:51:23 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, deployEscorts, groupAttackTarget);
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
|
2012-07-29 20:21:11 +00:00
|
|
|
"ATTACKER_MISSED" = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2008-08-03 15:44:57 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2012-05-22 20:06:21 +00:00
|
|
|
"ATTACKED_BY_CLOAKED" = ("setAITo: interceptAI.plist", "setStateTo: FLEE_FOR_CLOAKED");
|
2010-10-17 10:51:23 +00:00
|
|
|
"GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, "setStateTo: OUTBOUND_LOOT", "setAITo: interceptAI.plist");
|
2006-06-23 16:10:55 +00:00
|
|
|
UPDATE = (setCourseToWitchpoint, checkCourseToDestination, scanForOffenders, "pauseAI: 10.0");
|
2008-07-08 23:15:33 +00:00
|
|
|
};
|
2010-10-17 10:51:23 +00:00
|
|
|
"INBOUND_LOOT" =
|
2008-07-08 23:15:33 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
ENTER = ("setSpeedTo: 0.0", performIdle);
|
|
|
|
"GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, "setAITo: interceptAI.plist");
|
|
|
|
"DOCKING_REQUESTED" = ("setSpeedFactorTo: 0.0", "setAITo: receivingDockingAI.plist");
|
2010-11-27 12:20:18 +00:00
|
|
|
"ACCEPT_DISTRESS_CALL" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
|
|
|
|
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", deployEscorts, groupAttackTarget);
|
2008-08-03 15:44:57 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2012-07-29 20:21:11 +00:00
|
|
|
"ATTACKER_MISSED" = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2008-07-08 23:15:33 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, deployEscorts, groupAttackTarget);
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: collectLootAI.plist");
|
2010-10-17 10:51:23 +00:00
|
|
|
"NOTHING_FOUND" = ("setStateTo: INBOUND_CHECK");
|
|
|
|
"HOLD_FULL" = ("setStateTo: INBOUND_CHECK");
|
2008-08-03 15:44:57 +00:00
|
|
|
UPDATE = (scanForLoot, "pauseAI: 10.0");
|
|
|
|
};
|
2010-10-17 10:51:23 +00:00
|
|
|
"OUTBOUND_LOOT" =
|
2008-07-08 23:15:33 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
ENTER = ("setSpeedTo: 0.0", performIdle);
|
|
|
|
"GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, "setAITo: interceptAI.plist");
|
|
|
|
"DOCKING_REQUESTED" = ("setSpeedFactorTo: 0.0", "setAITo: receivingDockingAI.plist");
|
2010-11-27 12:20:18 +00:00
|
|
|
"ACCEPT_DISTRESS_CALL" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
|
|
|
|
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", deployEscorts, groupAttackTarget);
|
2008-08-03 15:44:57 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2012-07-29 20:21:11 +00:00
|
|
|
"ATTACKER_MISSED" = (setTargetToPrimaryAggressor, groupAttackTarget);
|
2008-07-08 23:15:33 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, deployEscorts, groupAttackTarget);
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setAITo: collectLootAI.plist");
|
2010-10-17 10:51:23 +00:00
|
|
|
"NOTHING_FOUND" = ("setStateTo: OUTBOUND_CHECK");
|
|
|
|
"HOLD_FULL" = ("setStateTo: OUTBOUND_CHECK");
|
2008-08-03 15:44:57 +00:00
|
|
|
UPDATE = (scanForLoot, "pauseAI: 10.0");
|
|
|
|
};
|
|
|
|
"INBOUND_CHECK" =
|
2008-07-08 23:15:33 +00:00
|
|
|
{
|
2010-10-17 10:51:23 +00:00
|
|
|
ENTER = (scanForFormationLeader);
|
2008-08-03 15:44:57 +00:00
|
|
|
RESTARTED = ("setStateTo: INBOUND_LOOT");
|
|
|
|
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", deployEscorts, groupAttackTarget);
|
2010-11-27 12:20:18 +00:00
|
|
|
"ACCEPT_DISTRESS_CALL" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
|
2010-10-17 10:51:23 +00:00
|
|
|
"TARGET_FOUND" = ("switchAITo: escortAI.plist");
|
|
|
|
"NOTHING_FOUND" = (checkForNormalSpace);
|
2008-08-03 15:44:57 +00:00
|
|
|
"GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, "setAITo: interceptAI.plist");
|
2009-09-03 19:44:45 +00:00
|
|
|
"NORMAL_SPACE" = (checkAegis, "setStateTo: HEAD_FOR_PLANET");
|
2008-08-03 15:44:57 +00:00
|
|
|
"INTERSTELLAR_SPACE" = ("setSpeedFactorTo: 1.0", "pauseAI: 15.0", "setStateTo: HYPER_OUT");
|
|
|
|
};
|
|
|
|
"OUTBOUND_CHECK" =
|
2008-07-08 23:15:33 +00:00
|
|
|
{
|
2010-10-17 10:51:23 +00:00
|
|
|
ENTER = (scanForFormationLeader);
|
2008-08-03 15:44:57 +00:00
|
|
|
RESTARTED = ("setStateTo: OUTBOUND_LOOT");
|
|
|
|
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", deployEscorts, groupAttackTarget);
|
2010-11-27 12:20:18 +00:00
|
|
|
"ACCEPT_DISTRESS_CALL" = (setTargetToFoundTarget, deployEscorts, groupAttackTarget);
|
2010-10-17 10:51:23 +00:00
|
|
|
"TARGET_FOUND" = ("switchAITo: escortAI.plist");
|
|
|
|
"NOTHING_FOUND" = (checkForNormalSpace);
|
2008-08-03 15:44:57 +00:00
|
|
|
"GROUP_ATTACK_TARGET" = (setTargetToFoundTarget, "setAITo: interceptAI.plist");
|
2010-10-17 10:51:23 +00:00
|
|
|
"NORMAL_SPACE" = ("setStateTo: HEAD_FOR_WITCHPOINT");
|
2008-08-03 15:44:57 +00:00
|
|
|
"INTERSTELLAR_SPACE" = ("setSpeedFactorTo: 1.0", "pauseAI: 15.0", "setStateTo: HYPER_OUT");
|
2008-07-08 23:15:33 +00:00
|
|
|
};
|
2008-08-03 15:44:57 +00:00
|
|
|
"HYPER_OUT" =
|
2008-07-08 23:15:33 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
UPDATE = (performHyperSpaceExit);
|
2008-07-08 23:15:33 +00:00
|
|
|
};
|
|
|
|
}
|