Jump to content

DefenseLimit: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
en>Crimsonum
Un-DeeZire'd
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
This determines the maximum number of structures determined by the BuildDefense= and BuildDummy= statements, regardless of the current ratio achieved or the size of the computer base. Note that you should set this value to at least 2 - if you set it to 1, the computer will only strive to build one of these types.
|files={{Categ|ini=rules}}
|values={{Values|int}}
|types={{Categ|AI}}
|yr=yes
|ra2=yes
|ts=yes
|fs=yes
|ra=yes
|cs=yes
|am=yes
|tsobsolete=yes
}}
 
Specifies the maximum number of basic ground defense structures a computer player is allowed to have in its base at a time. Once this limit is reached, the computer won't build new ground defenses, only replace lost ones.
 
As for what counts towards this limit, the computer is hardcoded to check for [[BuildingTypes|building types]] {{tt|GUN}} and {{tt|OBLI}} in {{td}} or {{tt|PBOX}}, {{tt|HBOX}}, {{tt|GUN}}, and {{tt|FTUR}} in {{ra}}.
 
== In {{ts}} To {{yr}} ==
Although parsed, this flag does nothing.

Revision as of 22:55, 3 April 2024

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: DefenseLimit
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Applicable to: AI

Logic related to DefenseLimit, as a whole or in part, is obsolete in Tiberian Sun, Red Alert 2 and/or Yuri's Revenge.



Specifies the maximum number of basic ground defense structures a computer player is allowed to have in its base at a time. Once this limit is reached, the computer won't build new ground defenses, only replace lost ones.

As for what counts towards this limit, the computer is hardcoded to check for building types GUN and OBLI in Tiberian Dawn or PBOX, HBOX, GUN, and FTUR in Red Alert.

In Tiberian Sun To Yuri's Revenge

Although parsed, this flag does nothing.