Skip to content

TargetSpecialThreatCoefficientDefault

The TargetSpecialThreatCoefficient that vehicle, infantry, aircraft and structure types fall back on.

Specification
Applies to
global rules
File
rules.ini
Section
[General]
Value
floating point
When omitted
0

Every vehicle, infantry, aircraft and structure type that does not set TargetSpecialThreatCoefficient uses this value. No stock type sets its own, so in the stock rules this value applies to every type. [General] is read before the types in every rules layer, so one line in rules.ini also reaches the types that the expansion rules add.

Setting this key again in a later rules layer, such as the expansion rules or the map, reaches fewer types. A type that already holds a nonzero value from an earlier layer keeps it. The new value reaches only the types that layer reads for the first time and the types still at 0 whose section it contains. Every stock type holds the stock 200 once rules.ini is read, so a map that sets this key changes none of them.

A type that writes TargetSpecialThreatCoefficient=0 keeps 0 only until a later rules layer, such as the expansion rules or the map, contains the type’s section without the key. That layer replaces the 0 with this value. Where the coefficients come from covers the layering.

The term this coefficient scales is the SpecialThreatValue of the candidate’s type. A positive value makes every affected type prefer candidates with a higher SpecialThreatValue. A candidate whose type sets no SpecialThreatValue adds nothing to the term. The stock rules set 200 here and give SpecialThreatValue=1 to a few types, among them the MCV, the engineer, the medic and several transports.

See also — target-selection