AI tweaks
- Added a few extra tests for OFFENCE_COMMITTED so attack on clean ships around the station are better registered. - Raised the jump range for an exitingTrader to outside the mass lock range of a heavy torus station. (Won't affect other traders as ships should never reach this range.) git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3003 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
6dcb052dc2
commit
e8ae0f1f23
@ -21,6 +21,7 @@
|
||||
{
|
||||
ENTER = (performIdle, "setSpeedTo: 0.0", "pauseAI: 10.0");
|
||||
ATTACKED = ("setStateTo: ATTACK_SHIP");
|
||||
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", "setStateTo: ATTACK_SHIP");
|
||||
"GROUP_ATTACK_TARGET" = ("setStateTo: ATTACK_SHIP");
|
||||
UPDATE = (requestDockingCoordinates, "setStateTo: AWAIT_COORDS");
|
||||
};
|
||||
@ -31,6 +32,7 @@
|
||||
"DOCKING_ABORTED" = ("setStateTo: ABORT");
|
||||
"COLLISION" = ("setStateTo: ABORT");
|
||||
ATTACKED = ("setStateTo: ATTACK_SHIP");
|
||||
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", "setStateTo: ATTACK_SHIP");
|
||||
"GROUP_ATTACK_TARGET" = ("setStateTo: ATTACK_SHIP");
|
||||
"RESTART_DOCKING" = ("setStateTo: GLOBAL");
|
||||
};
|
||||
@ -40,6 +42,7 @@
|
||||
"FACING_DESTINATION" = ("setSpeedFactorTo: 1.0", "setDesiredRangeTo: 500.0", performFlyToRangeFromDestination);
|
||||
"DESIRED_RANGE_ACHIEVED" = ("setSpeedTo: 0.0", requestDockingCoordinates, "setStateTo: AWAIT_COORDS");
|
||||
ATTACKED = ("setStateTo: ATTACK_SHIP");
|
||||
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", "setStateTo: ATTACK_SHIP");
|
||||
"GROUP_ATTACK_TARGET" = ("setStateTo: ATTACK_SHIP");
|
||||
"DOCKING_ABORTED" = ("setStateTo: ABORT");
|
||||
"COLLISION" = ("setStateTo: ABORT");
|
||||
@ -51,6 +54,7 @@
|
||||
"FRUSTRATED" = (performFaceDestination);
|
||||
"FACING_DESTINATION" = (recallDockingInstructions, performFlyToRangeFromDestination);
|
||||
ATTACKED = ("setStateTo: ATTACK_SHIP");
|
||||
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", "setStateTo: ATTACK_SHIP");
|
||||
"GROUP_ATTACK_TARGET" = ("setStateTo: ATTACK_SHIP");
|
||||
"DESIRED_RANGE_ACHIEVED" = (requestDockingCoordinates, "setStateTo: AWAIT_COORDS");
|
||||
"DOCKING_ABORTED" = ("setStateTo: ABORT");
|
||||
@ -66,6 +70,7 @@
|
||||
"REACHED_SAFETY" = (performIdle, "setStateTo: GLOBAL");
|
||||
"DESIRED_RANGE_ACHIEVED" = (performIdle, "setStateTo: GLOBAL");
|
||||
ATTACKED = ("setStateTo: ATTACK_SHIP");
|
||||
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 7", "setStateTo: ATTACK_SHIP");
|
||||
"GROUP_ATTACK_TARGET" = ("setStateTo: ATTACK_SHIP");
|
||||
};
|
||||
"ATTACK_SHIP" =
|
||||
|
@ -14,9 +14,9 @@
|
||||
"EXIT_SYSTEM" =
|
||||
{
|
||||
"WITCHSPACE OKAY" = (wormholeEscorts);
|
||||
"WITCHSPACE BLOCKED" = (setTargetToFoundTarget, setDestinationWithinTarget, "setDesiredRangeTo: 10000.0", performFlyToRangeFromDestination);
|
||||
"WITCHSPACE BLOCKED" = (setTargetToFoundTarget, setDestinationWithinTarget, "setDesiredRangeTo: 30000.0", performFlyToRangeFromDestination);
|
||||
"WITCHSPACE UNAVAILABLE" = ("setAITo: route1traderAI.plist");
|
||||
UPDATE = (performHyperSpaceExit);
|
||||
UPDATE = (performHyperSpaceExit, "pauseAI: 5.0");
|
||||
};
|
||||
FLEE =
|
||||
{
|
||||
|
@ -5,9 +5,7 @@
|
||||
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel);
|
||||
"RED_ALERT" = (launchDefenseShip);
|
||||
"YELLOW_ALERT" = ("setStateTo: IDLE");
|
||||
"GREEN_ALERT" = ("setStateTo: CHECK_FOR_DEBRIS"); // message added in 1.72
|
||||
"CONDITION_YELLOW" = ("setStateTo: IDLE");
|
||||
"CONDITION_GREEN" = ("setStateTo: CHECK_FOR_DEBRIS"); // message removed in 1.72
|
||||
"GREEN_ALERT" = ("setStateTo: CHECK_FOR_DEBRIS");
|
||||
"INCOMING_MISSILE" = (fireECM, increaseAlertLevel);
|
||||
"TARGET_OFFENDER" = (increaseAlertLevel);
|
||||
"TARGET_FUGITIVE" = (increaseAlertLevel);
|
||||
@ -20,6 +18,7 @@
|
||||
"CHECK_FOR_DEBRIS" =
|
||||
{
|
||||
ATTACKED = (setTargetToPrimaryAggressor, increaseAlertLevel, "setStateTo: DEFENSE_MODE");
|
||||
"OFFENCE_COMMITTED" = (setTargetToFoundTarget, "markTargetForOffence: 15", launchDefenseShip, increaseAlertLevel);
|
||||
"INCOMING_MISSILE" = (fireECM, increaseAlertLevel);
|
||||
"TARGET_FOUND" = (launchScavenger, "setStateTo: IDLE");
|
||||
"NOTHING_FOUND" = ("setStateTo: IDLE", "pauseAI: 20.0");
|
||||
|
Loading…
x
Reference in New Issue
Block a user