Loading...
  OR  Zero-K Name:    Password:   

AOE damage radius

13 posts, 810 views
Post comment
Filter:    Player:  
sort
8 years ago
Supposing roach explodes, it's 384 splash radius is big right?
At the edge of the AOE,383, is the damage calculated 1200-383?
Or is there another formula? Or is the damage just 1200?
+0 / -0
Nvm
+0 / -0

8 years ago
Are you sure that it is linear falloff?
+0 / -0
8 years ago
Is this the same for all units?

This is AOE radius right? If it's 384radii, then it outranges every riot in the game...
+0 / -0


8 years ago
The damage does not fall off linearly. See: https://springrts.com/phpbb/viewtopic.php?t=13543

The equation for being damaged at a certain distance from an explosion is damage = baseDamage * (radius - dist)/(radius - dist * edgeEffectiveness). Most of our edgeEffectiveness values are non-zero.

Note that the AoE numbers listed in the unitdefs are diameter, not radius.
+1 / -0
Please simplify code into readable chunks. Those values made no sense to me.
I understand formula, but those values..

Also, does every unit have a different edgeEffectiveness?
If their the same, what is the edgeEffectiveness??

Also, why is Infiltrator good vs infastructure? Does EMP deal damage to buildings now?
+0 / -0
- Roach's base damage is 1200. This means that it does 1200 damage at the very centre of its explosion.
[Spoiler]

- Roach's AoE is 384. This means that it only does damage to things which are less than a distance of {384/2 =} 192 away from it when it explodes.
[Spoiler]

- The amount of damage inflicted at any given range less than the maximum range is determined by the AoE damage equation, which is plotted below for various values of the edgeEffectiveness parameter:

So, looking at the line corresponding to Roach's edgeEffectiveness of 0.4, at half of the Roach explosion's maximum range {192/2 = } 96 the damage inflicted by Roach is a little above 0.6 times its maximum damage:

{1200 * 0.6 =} 720.
+1 / -0
8 years ago
Is the X axis how far the radius goes??

E.g half the X axis=0.6 for 0.4 edge Effectiveness?

Or did you just go 1-0.4=0.6?
+0 / -0

Whoever made the original plot was lazy about labelling their axes.

The horizontal (x-)axis is the fraction of distance to the edge of the explosion's area of effect.
The vertical (y-) axis is the proportion of damage inflicted at that distance.
Each different colour curved line corresponds to a different value of the edge effectiveness parameter. Match the colour of each line with the legend on the right.

[Spoiler]
+0 / -0
8 years ago
Can understand now. Thank you, this graph would fail so bad on my Science test.
+0 / -0

8 years ago
I guess if edge effectiveness is more than 0, the graph should show a value equal to that edge effectiveness at the edge, and then have a "cliff", currently it shows zero at the end which I assume is at the edge of the radius.
+0 / -0
Thanks for clearing that up, meanwhile I've been working with the wrong equation all along :|
+0 / -0

8 years ago
Here is a plot of the function given by GoogleFrog for Roach:



0.4 * damage is reached at around 135 elmos from explosion center, not at 192 from the center, so there is no sharp damage cutoff. The number 0.4 does not really mean that damage at edge is 0.4 times the normal damage. This is confusing.
+0 / -0