2006-06-23 12:16:14 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
|
|
|
ENTER = ("setStateTo: NEW_WAYPOINT");
|
|
|
|
};
|
|
|
|
"GO_TO_WAYPOINT" =
|
|
|
|
{
|
2009-07-22 19:15:18 +00:00
|
|
|
ENTER = ("setSpeedFactorTo: 0.75");
|
2006-06-23 13:01:12 +00:00
|
|
|
"WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT");
|
2009-07-08 16:20:10 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setDesiredRangeTo: 1000.0", exitAI);
|
|
|
|
ATTACKED = ("exitAIWithMessage: ATTACKED");
|
|
|
|
"FRUSTRATED" = ("setSpeedFactorTo: 0.1", "setDesiredRangeTo: 1000.0", exitAI);
|
|
|
|
"INCOMING_MISSILE" = ("exitAIWithMessage: INCOMING_MISSILE");
|
2009-07-22 19:15:18 +00:00
|
|
|
UPDATE = (performFlyToRangeFromDestination,
|
2009-07-08 16:20:10 +00:00
|
|
|
checkCourseToDestination, "pauseAI: 2.0");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"NEW_WAYPOINT" =
|
|
|
|
{
|
2006-06-23 13:01:12 +00:00
|
|
|
ENTER = ("setSpeedFactorTo: 0.0", "setDesiredRangeTo: 50.0", checkCourseToDestination);
|
|
|
|
"WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT");
|
|
|
|
"COURSE_OK" = ("setStateTo: GO_TO_WAYPOINT");
|
2009-07-08 16:20:10 +00:00
|
|
|
"FRUSTRATED" = ("setSpeedFactorTo: 0.1", "setDesiredRangeTo: 1000.0", exitAI);
|
|
|
|
ATTACKED = ("exitAIWithMessage: ATTACKED");
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setDesiredRangeTo: 1000.0", exitAI);
|
|
|
|
"INCOMING_MISSILE" = ("exitAIWithMessage: INCOMING_MISSILE");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
2009-07-08 16:20:10 +00:00
|
|
|
}
|