Skip to content

GuardSlower

Weights the team's formation toward the members it counts as slow.

Specification
Applies to
TeamType
File
ai.ini or map file
Section
[<ObjectType ID>]
Value
boolean
When omitted
no

A member counts as slow when its type sets TechLevel=-1 or names a DeploysInto building — the unbuildable escorts and the vehicles that would rather set up than fight. The judgement is made afresh each time it is needed, and it is the only thing this setting keys off.

One thing then changes. As the team’s center point is averaged, a slow member’s position is added twice instead of once, so the average is pulled toward it. That average is usually thrown away again: the center becomes the position of the member nearest the team’s target unless that member could not enter the averaged cell. The weighting therefore reaches the team’s behavior only where the average survives — an averaged cell on a cliff, in water, or under a building — and changes nothing at all the rest of the time.

The setting is read in one further place, and that place never runs. The test that looks for a member lagging behind the formation allows a member that does not count as slow only a third of Stray, so the fast members would be pulled back into formation sooner; that test is unreachable, so neither distance is ever measured.

The setting maintains one further piece of state, a record of whether the team is above its under-strength threshold, and nothing reads it.