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
E1 Elite (talk | contribs)
No edit summary
E1 Elite (talk | contribs)
Updated
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This coefficient can have decimal values from 0.0 to 1.0. The higher the value set on this flag for a unit, it tries to avoid any path that falls in the range of the enemy, effectively choosing the path with least threat. Typical usage is found in harvesters or ore miners. AI uses [[AvoidThreats]] for teams.
{{Flag
|name={{PAGENAME}}
|files={{Categ|ini=rules}}
|values={{Values|float}}
|default=0
|types={{Categ|InfantryTypes}}, {{Categ|VehicleTypes}}, and {{Categ|AircraftTypes}}
|ts=yes
|fs=yes
|hp=yes
|ra2=yes
|yr=yes
|ares=yes
}}


[[Category:INI Flags]] [[Category:Rules(md).ini Flags]]
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.