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

Difference between revisions of "Damage calculation over area"

From ModEnc
Jump to: navigation, 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. So decreasing <tt>[[PercentAtMax]]</tt> creates an almost constant damage level over the area, meaning the targets at the edge receive almost as much damage as the ones in the center. The higher you set <tt>[[PercentAtMax]]=</tt>, the steeper the damage difference.
+
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.  
 
 
(If you graph the damage from center to edge, (Axis X = distance from edge, in cells, Y = % of original damage) then the derivative of that line will be equal to <tt>[[PercentAtMax]]</tt>/<tt>[[CellSpread]]</tt> .)
 
  
 
=== Example: ===
 
=== Example: ===
Line 11: Line 9:
 
  CellSpread=10
 
  CellSpread=10
  
Target A receives 100% original damage, Target B receives 1%, and Target C receives ~50%.
+
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
  
, Targets A and C receive 2% of the original damage, and Target B receives 1%. (This is used on the Nuke, to render all the affected area almost identically.)
+
, 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 06: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).