ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Damage calculation over area: Difference between revisions
Jump to navigation
Jump to search
m Meh |
A long overdue correction, what the heck was I thinking when I wrote this... |
||
Line 1: | Line 1: | ||
The damage fades in linear regression from the center to the edge of the impact area, in cell-sized steps. | The damage fades in linear regression from the center to the edge of the impact area, in cell-sized steps. <tt>[[PercentAtMax]]</tt> determines the percentage of damage left at the very edge of the affected area. | ||
=== Example: === | === Example: === | ||
Line 11: | Line 9: | ||
CellSpread=10 | CellSpread=10 | ||
Target A receives 100% original damage, Target B receives | 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: | If a different warhead is detonated, with stats: | ||
Line 18: | Line 16: | ||
CellSpread=10 | CellSpread=10 | ||
, | , Target A receives 100% of the original damage, Target B receives 2%, and Target C receives 51% (linear average = (100 + 2) / 2). | ||
[[Category: General Editing Information]] | [[Category: General Editing Information]] |
Revision as of 04:45, 27 May 2006
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).