- Corrected bug in the 2 second AI delay for station launches

- Corrected escortAI.plist so it now follows their mother better after a station launch

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2741 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Eric Walch 2009-11-14 13:19:26 +00:00
parent d7c3922fba
commit 8119a48c8b
2 changed files with 6 additions and 4 deletions

View File

@ -43,13 +43,15 @@
setDestinationFromCoordinates,
"setDesiredRangeTo: 5000.0",
"setSpeedFactorTo: 0.50",
performFlyToRangeFromDestination
performFlyToRangeFromDestination,
escortCheckMother
);
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: LOOK_FOR_BUSINESS");
"TARGET_FOUND" = (setTargetToFoundTarget, suggestEscort);
"TARGET_FOUND" = (setTargetToFoundTarget, suggestEscort, "pauseAI: 1.0");
ESCORTING = ("setDesiredRangeTo: 0.0", "setStateTo: FLYING_ESCORT");
"NOT_ESCORTING" = (scanForFormationLeader);
UPDATE = (scanForFormationLeader, "pauseAI: 15.0");
"NOTHING_FOUND" = ("setSpeedFactorTo: 0.50", performFlyToRangeFromDestination);
UPDATE = ("pauseAI: 15.0");
};
"LOOK_FOR_BUSINESS" =
{

View File

@ -1243,9 +1243,9 @@ static NSDictionary* instructions(int station_id, Vector coords, float speed, fl
[ship setRoll:flightRoll];
[ship setPitch:0.0];
[ship setStatus: STATUS_LAUNCHING];
[[ship getAI] reactToMessage:@"pauseAI: 2.0"]; // pause while launching
[UNIVERSE addEntity:ship];
last_launch_time = [UNIVERSE getTime];
[[ship getAI] setNextThinkTime:last_launch_time + 2]; // pause while launching
[ship resetExhaustPlumes]; // resets stuff for tracking/exhausts
}