2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
|
|
|
ENTER = ("setStateTo: LOOK_FOR_TARGETS");
|
|
|
|
};
|
|
|
|
"ATTACK_SHIP" =
|
|
|
|
{
|
|
|
|
ENTER = (performAttack);
|
2009-12-05 20:04:10 +00:00
|
|
|
"ATTACKED" = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, fireMissile, "setStateTo: ATTACK_SHIP");
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: respondQMineAI.plist");
|
2008-08-03 15:44:57 +00:00
|
|
|
"TARGET_DESTROYED" = ("setStateTo: LOOK_FOR_TARGETS");
|
2010-10-17 10:51:23 +00:00
|
|
|
"TARGET_FOUND" = ("rollD: 4");
|
2008-08-03 15:44:57 +00:00
|
|
|
"TARGET_LOST" = ("setStateTo: LOOK_FOR_TARGETS");
|
2010-10-17 10:51:23 +00:00
|
|
|
"ROLL_1" = (setTargetToFoundTarget);
|
|
|
|
"ROLL_2" = (setTargetToFoundTarget, fireMissile);
|
|
|
|
"ROLL_3" = ("pauseAI: 45.0");
|
|
|
|
"ROLL_4" = ("setStateTo: LOOK_FOR_TARGETS");
|
2012-05-02 20:08:54 +00:00
|
|
|
"DEFENSE_TARGET_LOST" = (findNewDefenseTarget);
|
|
|
|
UPDATE = (findNewDefenseTarget, scanForNonThargoid, "pauseAI: 30.0");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"LOOK_FOR_TARGETS" =
|
|
|
|
{
|
2005-06-08 10:22:59 +00:00
|
|
|
ENTER = ("setSpeedTo: 0.0", performTumble, scanForNonThargoid, "pauseAI: 5.0");
|
2009-07-04 22:06:27 +00:00
|
|
|
"ATTACKED" = (setTargetToPrimaryAggressor, deployEscorts, "setStateTo: ATTACK_SHIP");
|
2008-08-03 15:44:57 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: respondQMineAI.plist");
|
2009-07-04 22:06:27 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, deployEscorts, "setStateTo: ATTACK_SHIP");
|
2008-08-03 15:44:57 +00:00
|
|
|
"NOTHING_FOUND" = ("setStateTo: HEAD_FOR_PLANET");
|
2005-06-08 10:22:59 +00:00
|
|
|
UPDATE = (scanForNonThargoid, "pauseAI: 5.0");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"HEAD_FOR_PLANET" =
|
|
|
|
{
|
2009-07-04 22:06:27 +00:00
|
|
|
ENTER = (setCourseToPlanet, "setDesiredRangeTo: 80000.0", checkCourseToDestination, checkForNormalSpace);
|
|
|
|
RESTARTED = (setCourseToPlanet, "setDesiredRangeTo: 80000.0", checkCourseToDestination, checkForNormalSpace);
|
2013-07-21 11:10:47 +01:00
|
|
|
"COURSE_OK" = (setSpeedToCruiseSpeed, performFlyToRangeFromDestination);
|
2006-06-23 16:10:55 +00:00
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
2005-06-08 10:22:59 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: LOOK_FOR_TARGETS");
|
2009-07-04 22:06:27 +00:00
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, deployEscorts, "setStateTo: ATTACK_SHIP");
|
2008-08-03 15:44:57 +00:00
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: respondQMineAI.plist");
|
2009-07-04 22:06:27 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, deployEscorts, "setStateTo: ATTACK_SHIP");
|
|
|
|
"INTERSTELLAR_SPACE" = ("setStateTo: HEAD_FOR_WITCHPOINT");
|
2006-06-23 16:10:55 +00:00
|
|
|
UPDATE = (setCourseToPlanet, "setDesiredRangeTo: 80000.0", checkCourseToDestination, scanForNonThargoid, "pauseAI: 10.0");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
2009-07-04 22:06:27 +00:00
|
|
|
"HEAD_FOR_WITCHPOINT" =
|
|
|
|
{
|
|
|
|
ENTER = (setCourseToWitchpoint, "setDesiredRangeTo: 15000.0", checkCourseToDestination);
|
2013-07-21 11:10:47 +01:00
|
|
|
"COURSE_OK" = (setSpeedToCruiseSpeed, performFlyToRangeFromDestination);
|
2009-07-04 22:06:27 +00:00
|
|
|
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: LOOK_FOR_TARGETS");
|
|
|
|
ATTACKED = (setTargetToPrimaryAggressor, deployEscorts, "setStateTo: ATTACK_SHIP");
|
|
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
2012-05-02 20:08:54 +00:00
|
|
|
"CASCADE_WEAPON_DETECTED" = ("setAITo: respondQMineAI.plist");
|
2009-07-04 22:06:27 +00:00
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, deployEscorts, "setStateTo: ATTACK_SHIP");
|
|
|
|
UPDATE = (setCourseToWitchpoint, "setDesiredRangeTo: 15000.0", checkCourseToDestination, scanForNonThargoid, "pauseAI: 10.0");
|
|
|
|
};
|
|
|
|
}
|