MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / Mission_Attack_List

Method Mission_Attack_List

src/Ext/Script/Mission.Attack.cpp:1337–1353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1335}
1336
1337void ScriptExt::Mission_Attack_List(TeamClass* pTeam, int calcThreatMode, bool repeatAction, int attackAITargetType)
1338{
1339 const auto pTeamData = TeamExt::ExtMap.Find(pTeam);
1340 pTeamData->IdxSelectedObjectFromAIList = -1;
1341
1342 if (attackAITargetType < 0)
1343 {
1344 const auto pScript = pTeam->CurrentScript;
1345 attackAITargetType = pScript->Type->ScriptActions[pScript->CurrentMission].Argument;
1346 }
1347
1348 if (RulesExt::Global()->AITargetTypesLists.size() > 0
1349 && RulesExt::Global()->AITargetTypesLists[attackAITargetType].size() > 0)
1350 {
1351 ScriptExt::Mission_Attack(pTeam, repeatAction, calcThreatMode, attackAITargetType, -1);
1352 }
1353}
1354
1355void ScriptExt::Mission_Attack_List1Random(TeamClass* pTeam, int calcThreatMode, bool repeatAction, int attackAITargetType)
1356{

Callers

nothing calls this directly

Calls 2

FindMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected