3d6ceaf44e
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5604 127b21dd-08f5-0310-b4b7-95ae10353056
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
{
|
|
GLOBAL =
|
|
{
|
|
ENTER = ("pauseAI: 0.5", "setSpeedFactorTo: 1.0");
|
|
ECM = ("setStateTo: EXPLODE");
|
|
"TARGET_LOST" = ("setStateTo: EXPLODE");
|
|
UPDATE = ("setStateTo: ATTACK_SHIP");
|
|
};
|
|
"ATTACK_SHIP" =
|
|
{
|
|
ENTER = ("setDesiredRangeTo: 25.0", performIntercept);
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: DETONATE");
|
|
"TARGET_DESTROYED" = ("setStateTo: EXPLODE");
|
|
"TARGET_LOST" = ("setStateTo: EXPLODE");
|
|
"TARGET_CLOAKED" = ("setStateTo: FLY_AHEAD");
|
|
ECM = ("setStateTo: EXPLODE");
|
|
"GONE_BEYOND_RANGE" = ("setStateTo: EXPLODE");
|
|
UPDATE = ("setDesiredRangeTo: 30000.0", checkDistanceTravelled, "setDesiredRangeTo: 25.0", "pauseAI: 5.0");
|
|
};
|
|
"FLY_AHEAD" =
|
|
{
|
|
ENTER = (storeTarget,
|
|
setDestinationToTarget,
|
|
"setSpeedFactorTo: 1",
|
|
"setThrustFactorTo: 0",
|
|
performFlyToRangeFromDestination
|
|
);
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: DETONATE");
|
|
"GONE_BEYOND_RANGE" = ("setStateTo: EXPLODE");
|
|
ECM = ("setStateTo: EXPLODE");
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setThrustFactorTo: 1", "setStateTo: ATTACK_SHIP");
|
|
UPDATE = (recallStoredTarget,
|
|
"setDesiredRangeTo: 30000.0",
|
|
checkDistanceTravelled,
|
|
"setDesiredRangeTo: 175.0",
|
|
"pauseAI: 0.5"
|
|
);
|
|
};
|
|
DETONATE =
|
|
{
|
|
ENTER = ("sendScriptMessage: ooliteDetonateAsStandardMissile");
|
|
};
|
|
EXPLODE =
|
|
{
|
|
ENTER = ("randomPauseAI: 0.25 0.75");
|
|
UPDATE = (becomeExplosion);
|
|
};
|
|
}
|