DetectDisguise
Lets an object see a disguised soldier for what it is when it scans for a target.
- Applies to
- AircraftTypeBuildingTypeInfantryTypeUnitType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- boolean
- When omitted
no
[DOG] ; an InfantryType registered in [InfantryTypes]DetectDisguise=yesAn object of a type set this way can pick a disguised soldier as a target when it scans. A Disguised=yes soldier is normally rejected as a scan candidate, so nothing finds one by scanning. This flag lifts that rejection, and the object scores the soldier like any other candidate.
The scanning object needs no weapon. Scan radius gives the reach of each scan.
The flag belongs to the scanning object’s type, so it works the same for a player’s object and a computer’s. A computer house can also see through every disguise with AIDetectDisguise=yes, whatever its objects’ types set.
Every other rule about a candidate still applies. In particular, an ally is rejected before the disguise is considered, so the flag cannot turn an object on a friendly spy unless the scanning object is an infantryman that has gone berserk.
The flag changes nothing else about the disguise. To other players the soldier still shows the disguise’s name and artwork, drawn in the viewing player’s colors, and appears on radar in that player’s color. A vehicle still refuses to run it over on its own initiative.