ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

# PercentAtMax

 Flag: PercentAtMax File(s): Rules(md).ini Values: float Default: 100% Applicable to: Warheads

This tag defines the multiplier to damage at the far-end of a Warhead's CellSpread. For objects in between the point of impact, and the CellSpread, the damage is adjusted linearly using this value.

## Formula

To understand how damage is distributed across the cells, refer to the below formula:

M = 1 - (1 - P) × (D / S)

where,
M is the multiplier to damage. This is the value used to adjust the final damage.
P is PercentAtMax
D is the distance between the object and the center of impact, in cells.

## Examples

Let's say there are 4 units around the target area - A is at the dead center of impact, B is 1 cell away, C is 3 cells away, and D is 5 cells away.

```[Warhead1]
PercentAtMax=1.0
```

In this instance, using the above formula gives us a multiplier of 100% for A, B, C, and D.

Now take the same 4 units, and the warhead below:

```[Warhead2]