Vinifera icon indicating copy to clipboard operation
Vinifera copied to clipboard

[Vanilla Bug] Objects with Sensors=yes cause nearby cloaked allied objects to uncloak

Open Rampastring opened this issue 3 years ago • 0 comments

Description:

An object with Sensors=yes causes cloaked objects to uncloak. This is good and works otherwise, but it also causes objects of your allies to uncloak. When checking if an object should be uncloaked due to a nearby unit with sensors, the game checks whether the object with sensors and the cloaked object share the same owner; it does not check if the owners of the objects are allies.

Steps To Reproduce:

  1. Give Sensors=yes to an infantry or a unit type
  2. Have an ally with a densely built cloaked base
  3. Move through the base with your unit and you'll notice your unit uncloaking everything as it moves

Additional Files:

Bugfix code in CnCNet ts-patches: https://github.com/CnCNet/ts-patches/blob/master/src/fix_allied_decloaking.asm

Rampastring avatar May 06 '21 18:05 Rampastring