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

Damage calculation over area

From ModEnc
Revision as of 06:45, 27 May 2006 by DCoder (talk | contribs) (A long overdue correction, what the heck was I thinking when I wrote this...)
Jump to: navigation, search

The damage fades in linear regression from the center to the edge of the impact area, in cell-sized steps. PercentAtMax determines the percentage of damage left at the very edge of the affected area.

Example:

Imagine three identical targets, the first one (A) placed at the impact point, the second one (B) at the edge of the impact zone, and the third (C) in the middle of them.

Upon detonation of a warhead with stats:

PercentAtMax=1.0
CellSpread=10

Target A receives 100% original damage, Target B receives 100%, and Target C receives 100% as well.

If a different warhead is detonated, with stats:

PercentAtMax=0.02
CellSpread=10

, Target A receives 100% of the original damage, Target B receives 2%, and Target C receives 51% (linear average = (100 + 2) / 2).