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

ThreatAvoidanceCoefficient: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Crimsonum (talk | contribs)
m Added missing flag section.
E1 Elite (talk | contribs)
Updated
 
Line 13: Line 13:
}}
}}


Affects how strongly this unit should avoid threats. It is recommended to pick a value from a range of {{tt|0.0}} to {{tt|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. See [[The_Threat_System|The Threat System]] for more information on the threat evaluation system.
Affects how strongly this unit should choose a path of least threat. It is recommended to pick a value from a range of {{tt|0.0}} to {{tt|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|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.

Latest revision as of 10:39, 11 September 2018

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.