Disarm doesn't disable radar / radar jammer / active sonar on some units
Some units retain full radar / radar jammer / sonar range even when disarmed. These units are:
- athena
- cloakcon
- spidercon
- shipaa
- staticantinuke
- striderfunnelweb
- some static comms (comm_recon, comm_hunter)
- some PW buildings (pw_interception, pw_warpjammer)
On the other hand there are some units that lose radar/jammer/sonar when disarmed. These units are:
- staticradar
- staticheavyradar
- staticsonar (unused)
- staticjammer
- cloakjammer
- planescout (Owl)
- shipcarrier The list of these 7 units is hardcoded in unit_attributes.lua gadget, which makes the whole difference. The list probably shouldn't exist for radar/radar jammer units as simply all of them should lose radar/jammer when disarmed.
The situation is more complicated for sonar units. From the lists above these units have sonar:
- athena
- planescout (Owl)
- shipaa
- shipcarrier
- staticsonar (unused) But apart from these, all ships, amphs, hover, comms (static and dynamic) have sonar too, and their sonar range remains even when unit is disabled. I assume this is intentional since the sonar is part of unit LOS underwater. While for units like Owl or Athena the sonar is an extra ability and probably should disable when unit is disabled.
I will make a PR addressing the issue with radar/jammer and separately with sonars.
Created a PR to fix this: #4534
I assume this is intentional since the sonar is part of unit LOS underwater. While for units like Owl or Athena the sonar is an extra ability and probably should disable when unit is disabled.
Keeping in mind that sonar coverage is entirely invisible to the player, i would prefer if it was immune to disable for all units.
Keeping in mind that sonar coverage is entirely invisible to the player, i would prefer if it was immune to disable for all units.
Sonar coverage is visible on the minimap as blue range circle when the unit is selected.
I kept disable-able sonar for Owl, Athena and (unused) Static Sonar, as the first two are air units that dont move in water so sonar is not the essential part of their los, while for Sonar Station, the sonar is the only ability it has. Earlier the 3 exceptions were Owl, Sonar Station and Reef, but Reef was inconsistent as all ships have sonar but only Reef could have it disabled. And it felt like the Athena was missing since it is basically cloaked Owl for sonar use case.
Can be closed I think, since the PR #4534 was merged.
Sonar coverage is visible on the minimap as blue range circle when the unit is selected.
This means that to detect that the two unit types are uniquely unable to see things underwater when disarmed, you have to have the unit selected while looking at the minimap, despite having no reason to do so because almost no other unit loses this ability when disarmed.
<#sonarLives intensifies>
This means that to detect that the two unit types are uniquely unable to see things underwater when disarmed, you have to have the unit selected while looking at the minimap, despite having no reason to do so because almost no other unit loses this ability when disarmed.
The actual issue is that to detect that these two units (Owl and Athena) are uniquely able to see things underwater, while not in water themselves, you have to have the unit selected while looking at the minimap, despite having no reason to do so because almost no other unit has this ability when itself is not a water or amphibious unit. :P
The actual issue is that to detect that these two units (Owl and Athena) are uniquely able to see things underwater
You are entirely correct that this is an issue and entirely incorrect in thinking that this is a good reason to make it worse.
I don't think it makes it worse that units that have 3 sensors ranges (and both Owl and Athena have all 3), should lose all 3 when the unit is disarmed, instead of just 2.
~~Wait, are you suggesting that Owl and Athena should also uniquely lose sight when disarmed?~~
I see, you're calling jammer a sensor.
I don't think it makes it worse that units that have 3 sensors ranges (and both Owl and Athena have all 3), should lose all 3 when the unit is disarmed, instead of just 2.
What if no unit lost sonar when disarmed? Then we have one less rule in the game. Surely having less rules is good, especially if they are corner cases with no clear benefit.
What if no unit lost sonar when disarmed? Then we have one less rule in the game. Surely having less rules is good, especially if they are corner cases with no clear benefit.
I have no strong feelings about it. What I did is making the exceptions more consistent than before, and them being explicitly set as exceptions. But if you feel like there should be no exceptions at all, feel free to make a PR.