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