DisguiseWhenStill: Difference between revisions
No edit summary |
mNo edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Flag | |||
|name={{PAGENAME}} | |||
|files={{Categ|Rules(md).ini}} | |||
|values={{Values|bool|}} | |||
|types={{Categ|VehicleTypes}} | |||
|ra2=yes | |||
|yr=yes | |||
}} | |||
Can be set to 'yes' or 'no' and determines if this object with <tt>[[CanDisguise]]=yes</tt> set only disguises when it is not moving rather than a permanent disguise. | Can be set to 'yes' or 'no' and determines if this object with <tt>[[CanDisguise]]=yes</tt> set only disguises when it is not moving rather than a permanent disguise. | ||
Line 4: | Line 12: | ||
===Vehicles=== | ===Vehicles=== | ||
Note that, contrary to an intuitive reading of the flag's name, this does not actually cause vehicles in question to loose their disguise when changing position - ''any'' vehicle with <tt>CanDisguise=yes</tt> will loose its disguise when moving. What <tt>DisguiseWhenStill</tt> actually does to vehicles is cause them to adopt the default Mirage Tank behaviour of assuming a disguise without having to obtain it first by firing on a terrain object with a weapon with <tt>[[MakesDisguise]]=yes</ | Note that, contrary to an intuitive reading of the flag's name, this does not actually cause vehicles in question to loose their disguise when changing position - ''any'' vehicle with <tt>CanDisguise=yes</tt> will loose its disguise when moving (unless it also has <tt>[[PermaDisguise]]=yes</tt>, which has problems of its own when used on vehicles). | ||
What <tt>DisguiseWhenStill</tt> actually does to vehicles is cause them to adopt the default Mirage Tank behaviour of assuming a disguise without having to obtain it first by firing on a terrain object with a weapon with <tt>[[MakesDisguise]]=yes</tt> on the warhead. While it is possible for such a vehicle to adopt a ''different'' disguise via such a weapon if it is given one, it will, right from the War Factory and upon ceasing movement, by default disguise as one of the terrain objects listed in {{Tt|[[DefaultMirageDisguises]]}}, without having to adopt a disguise first. If a vehicle is given {{Tt|[[CanDisguise]]}}, but {{Tt|[[DisguiseWhenStill]]}} is omitted or set to 'no', it will not possess any disguise unless it also has a weapon with <tt>[[CanDisguise]]=yes</tt> on the warhead, and uses it on a terrain object. | |||
===Notes=== | ===Notes=== | ||
* Interaction with the <tt>[[PermaDisguise]]</tt> flag needs to be investigated. | * Interaction with the <tt>[[PermaDisguise]]</tt> flag needs to be investigated. | ||
=Disable tags <b>DisguiseWhenStill</b> and then enable the tag {{f|PermaDisguise|yes|Link}} instead. | |||
{{Bugs}} | |||
If used with <b>Terror Drone</b> it will have surprising results. | |||
[[File:DisguiseWhenStill=yes on Terror Drone.gif]] | |||
===See also=== | ===See also=== |
Latest revision as of 04:52, 4 August 2024
Flag: | DisguiseWhenStill |
File(s): | Rules(md).ini |
Values: | Boolean values: yes or no, true or false, 1 or 0 |
Applicable to: | VehicleTypes |
Can be set to 'yes' or 'no' and determines if this object with CanDisguise=yes set only disguises when it is not moving rather than a permanent disguise.
Infantry
Vehicles
Note that, contrary to an intuitive reading of the flag's name, this does not actually cause vehicles in question to loose their disguise when changing position - any vehicle with CanDisguise=yes will loose its disguise when moving (unless it also has PermaDisguise=yes, which has problems of its own when used on vehicles). What DisguiseWhenStill actually does to vehicles is cause them to adopt the default Mirage Tank behaviour of assuming a disguise without having to obtain it first by firing on a terrain object with a weapon with MakesDisguise=yes on the warhead. While it is possible for such a vehicle to adopt a different disguise via such a weapon if it is given one, it will, right from the War Factory and upon ceasing movement, by default disguise as one of the terrain objects listed in DefaultMirageDisguises, without having to adopt a disguise first. If a vehicle is given CanDisguise, but DisguiseWhenStill is omitted or set to 'no', it will not possess any disguise unless it also has a weapon with CanDisguise=yes on the warhead, and uses it on a terrain object.
Notes
- Interaction with the PermaDisguise flag needs to be investigated.
=Disable tags DisguiseWhenStill and then enable the tag PermaDisguise=yes instead.
Bugs/Side-Effects/Unexpected Limitations
If used with Terror Drone it will have surprising results.