Signature
native radius_damage(const Float:fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier);
Description
Hurts (and kills, if applicable) players in a sphere.
Notes
-
Players that have the DAMAGE_NO flag set in EV_INT_flags will be
ignored.
-
The sphere has four different damage zones. Below is pseudo-code of the
algorithm, indicating how damage will be dealt to players:
if (distance <= 5 * radius) damage(10 + random(1 * dmg_multi))
if (distance <= 4 * radius) damage(25 + random(2 * dmg_multi))
if (distance <= 3 * radius) damage(50 + random(3 * dmg_multi))
if (distance <= 2 * radius) kill()
Parameters
- fExplodeAt — Center origin of sphere
- iDamageMultiplier — Damage multiplier
- iRadiusMultiplier — Sphere radius
No return value