oolite/Resources/AIs/scavengerAI.plist
Eric Walch 0167b32938 - Added a new AI command 'setDestinationToJinkPosition'
- Updated several AIs with reaction to cloaked attacks.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4954 127b21dd-08f5-0310-b4b7-95ae10353056
2012-05-22 20:06:21 +00:00

70 lines
3.3 KiB
Plaintext

{
GLOBAL =
{
"LAUNCHED OKAY" = ("setStateTo: CLEAR_STATION");
UPDATE = ("setSpeedFactorTo: 1.0", "setStateTo: LOOK_FOR_STUFF");
};
"LOOK_FOR_STUFF" =
{
ENTER = (performTumble, checkForFullHold);
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget, broadcastDistressMessage, "setStateTo: FLEE");
"HOLD_FULL" = ("setStateTo: DOCK_WITH_STATION");
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: COLLECT_STUFF");
"NOTHING_FOUND" = ("setStateTo: DOCK_WITH_STATION");
UPDATE = (scanForRandomLoot, "pauseAI: 8.0");
};
"CLEAR_STATION" = {
ENTER = (getWitchspaceEntryCoordinates, setDestinationFromCoordinates, "setDesiredRangeTo: 100.0",
"setSpeedFactorTo: 0.75", performFlyToRangeFromDestination, "pauseAI: 10");
UPDATE = ("setStateTo: LOOK_FOR_STUFF");
};
"DOCK_WITH_STATION" =
{
ENTER = (setTargetToNearestStation, "setDesiredRangeTo: 5000.0", performIntercept);
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget, broadcastDistressMessage, "setStateTo: FLEE");
"DESIRED_RANGE_ACHIEVED" = ("setAITo: dockingAI.plist");
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
"CASCADE_WEAPON_DETECTED" = ("setStateTo: COLLECT_STUFF", "setAITo: fleeQMineAI.plist");
"TARGET_LOST" = ("setStateTo: GO_TO_STATION");
RESTARTED = ("switchAITo: route1traderAI.plist");
};
"GO_TO_STATION" =
{
ENTER = (setTargetToNearestStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget, checkCourseToDestination);
"COURSE_OK" = (setSpeedToCruiseSpeed, performFlyToRangeFromDestination);
"WAYPOINT_SET" = ("setAITo: gotoWaypointAI.plist");
"DESIRED_RANGE_ACHIEVED" = ("setAITo: dockingAI.plist");
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget, broadcastDistressMessage, "setStateTo: FLEE");
UPDATE = (setTargetToNearestStation, "setDesiredRangeTo: 5000.0", setDestinationToTarget,
checkCourseToDestination, "pauseAI: 10.0");
};
FLEE =
{
ENTER = ("setDesiredRangeTo: 25600", performFlee);
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: FLEE");
"ENERGY_FULL" = (performIdle, "setStateTo: LOOK_FOR_STUFF");
"TARGET_LOST" = (performIdle, "setStateTo: LOOK_FOR_STUFF");
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
"REACHED_SAFETY" = ("setSpeedTo: 0.0", "pauseAI: 60", "setStateTo: LOOK_FOR_STUFF");
RESTARTED = ("setStateTo: LOOK_FOR_STUFF");
};
"COLLECT_STUFF" =
{
ENTER = (performCollect);
FRUSTRATED = ("setSpeedTo: 0.0", setDestinationToTarget, "setDesiredRangeTo: 2.0", performFaceDestination);
"FACING_DESTINATION" = (performCollect);
"CARGO_SCOOPED" = ("setStateTo: LOOK_FOR_STUFF");
ATTACKED = (setTargetToPrimaryAggressor, groupAttackTarget, broadcastDistressMessage, "setStateTo: FLEE");
"TARGET_LOST" = ("setStateTo: LOOK_FOR_STUFF");
"COLLISION" = ("setStateTo: LOOK_FOR_STUFF");
"HOLD_FULL" = ("setStateTo: DOCK_WITH_STATION");
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
"CASCADE_WEAPON_DETECTED" = ("setAITo: fleeQMineAI.plist");
RESTARTED = ("setStateTo: LOOK_FOR_STUFF");
};
}