2005-04-19 19:53:18 +00:00
|
|
|
{
|
2005-06-08 10:22:59 +00:00
|
|
|
"ATTACK_SHIP" = {
|
|
|
|
ENTER = (performAttack);
|
|
|
|
"THARGOID_DESTROYED" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
|
|
"TARGET_DESTROYED" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
|
|
"TARGET_LOST" = ("setStateTo: CHECK_FOR_CONTROL");
|
2007-09-12 17:00:59 +00:00
|
|
|
UPDATE = ("scanForNearestShipHavingRole: thargoid-mothership", "pauseAI: 5.0");
|
2005-06-08 10:22:59 +00:00
|
|
|
"NOTHING_FOUND" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
|
|
EXIT = ();
|
|
|
|
};
|
|
|
|
"CHECK_FOR_CONTROL" = {
|
|
|
|
"THARGOID_DESTROYED" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
|
|
"TARGET_FOUND" = ("setStateTo: LOOK_FOR_TARGETS");
|
2006-03-14 00:54:36 +00:00
|
|
|
"NOTHING_FOUND" = (becomeUncontrolledThargon);
|
2005-06-08 10:22:59 +00:00
|
|
|
ENTER = ("setSpeedTo: 0.0", performTumble);
|
|
|
|
EXIT = ();
|
2007-09-12 17:00:59 +00:00
|
|
|
UPDATE = ("scanForNearestShipHavingRole: thargoid-mothership", "pauseAI: 1.0");
|
2005-06-08 10:22:59 +00:00
|
|
|
};
|
|
|
|
"LOOK_FOR_TARGETS" = {
|
|
|
|
"THARGOID_DESTROYED" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP");
|
|
|
|
ENTER = (scanForNonThargoid, "pauseAI: 1.0");
|
|
|
|
EXIT = ();
|
2007-09-12 17:00:59 +00:00
|
|
|
UPDATE = ("scanForNearestShipHavingRole: thargoid-mothership", "pauseAI: 10.0");
|
2005-06-08 10:22:59 +00:00
|
|
|
};
|
|
|
|
GLOBAL = {ENTER = ("setStateTo: ATTACK_SHIP"); EXIT = (); UPDATE = (); };
|
2005-04-19 19:53:18 +00:00
|
|
|
}
|