ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

BaseBias

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: BaseBias
File(s): rules(md).ini
Values: Floating point values: Any decimal number (clearer range should be added in Template:Values).
Default: 1.0
Applicable to: General


Define how many times the threat assessment value for enemy objects within the base zone will be multiplied for the AI.

Notes

Base Zone Determination:

  • All buildings are weighted by (cost/1000 + 1) to compute a weighted average center. Using the same weights, the average distance from each building to this center is then calculated. This distance is compared with 2 * 256 leptons, and the larger value is taken as the base radius. The area extending from the center out to 4 times this radius is defined as the base zone.
  • Within this zone, the region from the center up to 1 * radius is designated as the CORE zone. The remaining area is divided into four directional zones: NORTH, EAST, SOUTH, and WEST. Any area beyond 4 * radius is considered outside the base zone (ZONE_NONE).

Handling of threat value:

  • If an enemy object lies within the evaluating house's base zone, its threat value is multiplied by the value of [General]BaseBias=.
  • If an enemy object is not within its own house's base zone, its threat value is additionally multiplied by 2.

Trivia

The variable name corresponding to this flag in the code is NervousBias rather than BaseBias which is the same as the flag.

See Also