0167b32938
- 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
39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
{
|
|
GLOBAL =
|
|
{
|
|
ENTER = ("setStateTo: NEW_WAYPOINT");
|
|
};
|
|
"GO_TO_WAYPOINT" =
|
|
{
|
|
ENTER = ("setSpeedFactorTo: 0.75");
|
|
"WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT");
|
|
"DESIRED_RANGE_ACHIEVED" = ("setDesiredRangeTo: 1000.0", exitAI);
|
|
ATTACKED = ("exitAIWithMessage: ATTACKED");
|
|
"ATTACKED_BY_CLOAKED" = ("exitAIWithMessage: ATTACKED_BY_CLOAKED");
|
|
"CASCADE_WEAPON_DETECTED" = ("exitAIWithMessage: CASCADE_WEAPON_DETECTED");
|
|
"FRUSTRATED" = ("setSpeedFactorTo: 0.1", "setDesiredRangeTo: 1000.0", exitAI);
|
|
"LAUNCHED OKAY" = ("exitAIWithMessage: LAUNCHED OKAY");
|
|
"INCOMING_MISSILE" = ("exitAIWithMessage: INCOMING_MISSILE");
|
|
"DOCKING_REQUESTED" = ("exitAIWithMessage: DOCKING_REQUESTED");
|
|
"APPROACHING_SURFACE" = ("exitAIWithMessage: APPROACHING_SURFACE");
|
|
"AEGIS_CLOSE_TO_MAIN_PLANET" = ("exitAIWithMessage: AEGIS_CLOSE_TO_MAIN_PLANET");
|
|
UPDATE = (performFlyToRangeFromDestination,
|
|
checkCourseToDestination, "pauseAI: 2.0");
|
|
};
|
|
"NEW_WAYPOINT" =
|
|
{
|
|
ENTER = ("setSpeedFactorTo: 0.0", setDesiredRangeForWaypoint, checkCourseToDestination);
|
|
"WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT");
|
|
"COURSE_OK" = ("setStateTo: GO_TO_WAYPOINT");
|
|
"FRUSTRATED" = ("setSpeedFactorTo: 0.1", "setDesiredRangeTo: 1000.0", exitAI);
|
|
"LAUNCHED OKAY" = ("exitAIWithMessage: LAUNCHED OKAY");
|
|
ATTACKED = ("exitAIWithMessage: ATTACKED");
|
|
"ATTACKED_BY_CLOAKED" = ("exitAIWithMessage: ATTACKED_BY_CLOAKED");
|
|
"CASCADE_WEAPON_DETECTED" = ("exitAIWithMessage: CASCADE_WEAPON_DETECTED");
|
|
"DESIRED_RANGE_ACHIEVED" = ("setDesiredRangeTo: 1000.0", exitAI);
|
|
"INCOMING_MISSILE" = ("exitAIWithMessage: INCOMING_MISSILE");
|
|
"DOCKING_REQUESTED" = ("exitAIWithMessage: DOCKING_REQUESTED");
|
|
"APPROACHING_SURFACE" = ("exitAIWithMessage: APPROACHING_SURFACE");
|
|
"AEGIS_CLOSE_TO_MAIN_PLANET" = ("exitAIWithMessage: AEGIS_CLOSE_TO_MAIN_PLANET");
|
|
};
|
|
} |