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

ThreatAvoidanceCoefficient

From ModEnc
Revision as of 10:39, 11 September 2018 by E1 Elite (talk | contribs) (Updated)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: ThreatAvoidanceCoefficient
File(s): rules(md).ini
Values: Floating point values: Any decimal number (clearer range should be added in Template:Values).
Default: 0
Applicable to: InfantryTypes, VehicleTypes, and AircraftTypes


Affects how strongly this unit should choose a path of least threat. It is recommended to pick a value from a range of 0.0 to 1.0. The higher the value, the more the unit tries to avoid any paths that fall in the range of the enemy, effectively choosing the path with least threat. Typical usage is found in harvesters or ore miners. It is an attribute of the unit and lasts until the unit is destroyed.

AvoidThreats=yes on the AI TeamTypes makes the team members act like it is set with ThreatAvoidanceCoefficient=1.0 for the duration of that TeamType's existence.

While The Threat System describes the mechanism of selecting a target during engagement when a unit is free to do so, the threat avoidance is the evaluation of the cumulative threat falling on different paths to its destination from its current cell and choosing a path with least threat.