Camouflage Assistant is an in-battle overlay for World of Tanks that displays your vehicle's estimated camouflage values and the distances 
at which an enemy might detect you under different conditions.

It is designed to help you understand camouflage mechanics, compare stationary and moving concealment, 
and make better decisions about positioning, firing and using foliage.
Features:

   - Displays four camouflage states: Moving, Stationary, Firing while moving, and Firing while stationary.

   - Calculates estimated spotting distances for three configurable enemy view ranges (440 m, 460 m and 480 m by default).
   
   - Supports effects of temporary crew efficiency perks (Stay Sharp, Hold the Line, Emergency, Communication Expert, Side by Side, Bulletproof)

   - Allows switching between three assumed foliage bonuses: 0%, +50% and +80%.

   - Allows switching between three assumed enemy CVS configurations: No CVS, Standard CVS (non-spotting equipment slot) and Boosted CVS. (spotting equipment slot)

   - Provides an optional garage settings menu through supported mod-menu integrations, with manual JSON configuration as a fallback.

   - Supports repositioning the overlay by holding Ctrl and dragging its header with the left mouse button.
   
   - Allows the choice between "vertical" view and "horizontal" view of the overlay.
   
   - Allows the choice between "always visible" HUD setting, and "hidden until Alt is pressed" setting, so you can toggle the HUD only 
	 when you want to check the numbers, otherwise it won't distract you and obscure the interface

================================================================
IMPORTANT: THE 15-METRE BUSH RULE
================================================================

Camouflage Assistant lets you simulate three foliage conditions:

  - No foliage (0%)
  - Single bush (+50%)
  - Double bush (+80%)

IMPORTANT: These are assumed foliage bonuses. The mod does NOT
detect actual bushes, their distance from your tank, or whether
they provide concealment against a particular enemy.

---------------------------------------------------------------
1. WHAT HAPPENS WHEN YOU FIRE FROM INSIDE A BUSH?
---------------------------------------------------------------

In World of Tanks, firing your gun temporarily removes the
concealment provided by bushes within 15 metres of your vehicle.

If you are standing within this 15 meters of the foliage, it normally
appears transparent in sniper mode.

The bush can conceal your tank while you are not firing.
However, when you shoot, its concealment contribution is
temporarily lost.

EXAMPLE:

 - You are standing INSIDE a bush.
 - You select "+50% bush" in Camouflage Assistant.
 - The mod estimates a spotting distance of 200 metres.
 - You fire your gun.
 - An enemy 220 metres away spots you.

WHY?

The nearby bush temporarily stopped providing concealment
when you fired.

Camouflage Assistant calculated a scenario in which the
selected +50% foliage bonus remained effective.

The mod's estimate is not a guarantee that you cannot be
spotted beyond the displayed distance.

---------------------------------------------------------------
2. HOW TO KEEP YOUR BUSH CAMOUFLAGE WHEN FIRING
---------------------------------------------------------------

To preserve foliage concealment when firing:

  1. Position your tank behind a bush, with the bush
     between you and the enemy.

  2. Reverse until you are at least 15 metres away
     from the bush.

  3. Look through your sniper scope. The bush should
     become opaque (solid) instead of transparent.

  4. Fire through the bush.

When the bush is sufficiently far away, firing does not
remove its concealment contribution under the normal
15-metre rule.

Your tank still suffers its own firing camouflage penalty.
Camouflage Assistant includes this penalty in the
"Shot moving" and "Shot still" calculations.

---------------------------------------------------------------
3. WHAT ABOUT DOUBLE BUSHES AND THE +80% LIMIT?
---------------------------------------------------------------

In World of Tanks, the maximum cumulative camouflage bonus
provided by foliage is +80%, regardless of how many bushes
or trees are between your tank and the enemy.

The "+80% double bush" mode represents this maximum bonus.

The name "double bush" comes from the most common way to
achieve it: positioning your tank behind two bushes in a row.

EXAMPLES:

  1 bush providing +50%:
     Total foliage bonus: +50%

  2 bushes providing +50% each:
     Combined bonus: +100%
     Effective bonus: +80% (game limit)

  4 leafless trees providing +25% each:
     Combined bonus: +100%
     Effective bonus: +80% (game limit)

  3 bushes providing +25% each:
     Combined bonus: +75%
     Effective bonus: +75%

The 15-metre firing rule still applies.

When you fire, foliage within 15 metres of your tank
temporarily loses its concealment contribution. Foliage
farther away continue to provide concealment.

For example, if you are standing inside one +50% bush
with another +50% bush farther than 15 metres away,
firing removes the nearby bush's contribution, but the
more distant bush can still provide +50% concealment.

IMPORTANT:

Selecting "+80% double bush" in Camouflage Assistant
assumes that the maximum foliage bonus is actually
available against the enemy observing you.

The mod does not detect bushes or calculate their actual
combined concealment. It uses the selected bonus to
estimate spotting distances.

---------------------------------------------------------------
4. REMEMBER
---------------------------------------------------------------

Camouflage Assistant does NOT know whether the selected
foliage bonus is actually active.

The +50% and +80% modes assume that the selected foliage
concealment applies, including after firing.

If you shoot from inside a bush, the actual concealment
may be significantly lower than the mod's estimate.

GOLDEN RULE:

If you want to keep your bush camouflage while firing,
reverse at least 15 metres behind the bush until it
becomes opaque in sniper mode.

Always remember that spotting distances are ESTIMATES
based on selected assumptions, not guaranteed safe
distances.

================================================================