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
Crimsonum (talk | contribs)
m Added missing flag section.
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 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.

Revision as of 18:08, 10 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 avoid threats. 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. See The Threat System for more information on the threat evaluation system.