Jump to content

AI SW Targeting: Difference between revisions

From ModEnc²
en>Nighthawk200
m I don't think this article violates the StyleGuide anymore.
en>DCoder
m Adding sourcecode
Line 1: Line 1:
The [{{TTL|General}}] section has several flags relating to AI offensive Super Weapon targeting. They all share the same behaviour - they state the "priority" or "importance" of certain object types when evaluating the best target. This targeting model applies to super weapons with the following settings:<br><br>
The [{{TTL|General}}] section has several flags relating to AI offensive Super Weapon targeting. They all share the same behaviour - they state the "priority" or "importance" of certain object types when evaluating the best target. This targeting model applies to super weapons with the following settings:<br><br>
- <b>TS</b>
;TS
**{{TTL|Type|IonCannon}}
:{{TTL|Type|IonCannon}}
**{{TTL|Type|MultiMissile}}
:{{TTL|Type|MultiMissile}}
- <b>RA2/YR</b>
;RA2/YR
**{{TTL|Type|MultiMissile}}
:{{TTL|Type|MultiMissile}}
**{{TTL|Type|LightningStorm}}
:{{TTL|Type|LightningStorm}}
- <b>YR with RockPatch</b>
:({{rpo}}) Super weapons with <tt>[[RockPatch_Docs:Making_the_AI_use_custom_SuperWeapons|AITargetingType=1]]</tt> set.
**Super weapons with <tt>[[RockPatch_Docs:Making_the_AI_use_custom_SuperWeapons|AITargetingType=1]]</tt> set.<br>
 
See [[:Category:AIIonCannon_Flags|here]] for a list of such flags.
See [[:Category:AIIonCannon_Flags|here]] for a list of such flags.
{{SourceCode|http://dc.strategy-x.com/src2/HouseClass/PickIonCannonTarget.cpp|tr=yes}}


[[Category:AIIonCannon_Flags| ]]
[[Category:AIIonCannon_Flags| ]]

Revision as of 19:01, 14 June 2008

The [[[:Template:TTL]]] section has several flags relating to AI offensive Super Weapon targeting. They all share the same behaviour - they state the "priority" or "importance" of certain object types when evaluating the best target. This targeting model applies to super weapons with the following settings:

TS
Template:TTL
Template:TTL
RA2/YR
Template:TTL
Template:TTL
([RockPatch is obsolete; please remove this template from the page]

) Super weapons with AITargetingType=1 set.

See here for a list of such flags.

Needs Transcribing
Pseudocode relevant to this article is available at http://dc.strategy-x.com/src2/HouseClass/PickIonCannonTarget.cpp. Please update this article with information revealed by the pseudocode.