Jump to content

AIDefendAgainst

From ModEnc²
Revision as of 21:34, 31 March 2025 by MarkJFox (talk | contribs) (3 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AIDefendAgainst
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: No
Applicable to: SuperWeaponTypes


This tag determines whether the AI will utilise the Force Shield, or a Super Weapon with Type=ForceShield to defend itself against attacks by the Super Weapon this is attached to.

The probability that the AI will fire the Force Shield if this is set to yes is determined using AISuperDefenseProbability, AISuperDefenseFrames and AISuperDefenseDistance. Of course, it also relies on the Force Shield actually being ready to begin with.

Now, when playing around with this tag, use it sensibly. Attaching it to something like Psychic Reveal is just stupid, as every time you use it to spy on the AI's base, they'll fire up their Force Shield.