2005-10-24 19:18:47 +00:00
|
|
|
{
|
2009-09-13 14:18:43 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
|
|
|
ENTER = ("pauseAI: 0.5", "setSpeedFactorTo: 1.0");
|
|
|
|
ECM = ("rollD: 20");
|
|
|
|
"TARGET_LOST" = ("setStateTo: EXPLODE");
|
|
|
|
"ROLL_1" = ("setStateTo: DETONATE");
|
|
|
|
"ROLL_2" = ("setStateTo: EXPLODE");
|
|
|
|
UPDATE = ("setStateTo: ATTACK_SHIP");
|
|
|
|
};
|
2008-08-03 15:44:57 +00:00
|
|
|
"ATTACK_SHIP" =
|
|
|
|
{
|
|
|
|
ENTER = ("setDesiredRangeTo: 25.0", performIntercept);
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: DETONATE");
|
|
|
|
"TARGET_DESTROYED" = ("setStateTo: EXPLODE");
|
|
|
|
"TARGET_LOST" = ("setStateTo: EXPLODE");
|
|
|
|
"GONE_BEYOND_RANGE" = ("setStateTo: EXPLODE");
|
2008-08-03 13:25:30 +00:00
|
|
|
ECM = ("setStateTo: CHECK_EXPLOSION");
|
2008-08-03 15:44:57 +00:00
|
|
|
UPDATE = ("setDesiredRangeTo: 30000.0", checkDistanceTravelled, "setDesiredRangeTo: 25.0", "pauseAI: 5.0");
|
|
|
|
};
|
|
|
|
DETONATE =
|
|
|
|
{
|
|
|
|
ENTER = ("setDesiredRangeTo: 250.0", dealEnergyDamageWithinDesiredRange, becomeExplosion);
|
|
|
|
};
|
|
|
|
EXPLODE =
|
|
|
|
{
|
2009-09-13 14:18:43 +00:00
|
|
|
ENTER = ("randomPauseAI: 0.25 1.50");
|
|
|
|
UPDATE = (becomeExplosion);
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
|
|
|
"CHECK_EXPLOSION" =
|
|
|
|
{
|
|
|
|
ENTER = ("rollD: 20");
|
|
|
|
"ROLL_1" = ("setStateTo: DETONATE");
|
|
|
|
"ROLL_2" = ("setStateTo: EXPLODE");
|
2009-09-13 14:18:43 +00:00
|
|
|
"TARGET_LOST" = ("setStateTo: EXPLODE");
|
2008-08-03 15:44:57 +00:00
|
|
|
UPDATE = ("setStateTo: ATTACK_SHIP");
|
|
|
|
};
|
|
|
|
}
|