Jump to content

AIForcePredictionFudge: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
m 3 revisions imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
To decide what base defense to use, since all of the new ones in Yuri's Revenge do not do conventional damage, the AI will analyze its enemy's force (in money terms) and pick Air, Armor or Infantry. This analysis is fudged by difficulty level (Brutal, Normal, Easy) by the percentages specified here (+/- n%). Once the pick is made, all currently buildable base defenses will be made into a weighted distribution based on their AntiXXXValue= numbers. The AI knows to consider Rocketeers as Air, as well as Blimps and V3 Rockets.<br />
|name={{PAGENAME}}
(Yuri's Revenge Only)
|files={{Categ|ini=rules}}
|types={{Categ|AI}}
|values={{values|unsigned integers}}
|yr=yes
|rp=yes
}}
These values are used to decide what base defense to use. The AI will examine the enemy force in terms of money, and select Anti-Air, Anti-Armor or Anti-Infantry. This examination is then fudged by difficulty level (Brutal, Normal, Easy) by the percentages specified here (+/- n%).
 
Once the decision is made, all buildable base defenses will be converted into a weighted distribution based on their {{f|AntiAirValue|link}}, {{f|AntiArmorValue|link}} or {{f|AntiInfantryValue|link}}. The AI is not so dumb as to use Rocketeers in the {{f|AntiInfantryValue|link}} analysis, or Kirov Airships in the {{f|AntiArmorValue|link}} analysis. It will treat them as air units.

Latest revision as of 21:34, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: AIForcePredictionFudge
File(s): rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Applicable to: AI


These values are used to decide what base defense to use. The AI will examine the enemy force in terms of money, and select Anti-Air, Anti-Armor or Anti-Infantry. This examination is then fudged by difficulty level (Brutal, Normal, Easy) by the percentages specified here (+/- n%).

Once the decision is made, all buildable base defenses will be converted into a weighted distribution based on their AntiAirValue, AntiArmorValue or AntiInfantryValue. The AI is not so dumb as to use Rocketeers in the AntiInfantryValue analysis, or Kirov Airships in the AntiArmorValue analysis. It will treat them as air units.