RadiusDamage

From Eternity Wiki
Revision as of 13:25, 20 October 2024 by Printz (talk | contribs) (Created page with "{{Codepointer|description=Explosion with different radius and actual damage. |usage='''A_RadiusDamage'''(''damage'', ''radius'') |parameters= *''damage'': Maximum damage to inflict at the origin *''radius'': Maximum distance of the area effect. Damage will decrease linearly. |notes= As with other radius attacks, the distance is Chebyshev, i.e. the maximum of x and y difference, so the area of effect is a square, not a circle (and it's infinitely tall). Beware when making...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Explosion with different radius and actual damage.

Usage

A_RadiusDamage(damage, radius)

Parameters

  • damage: Maximum damage to inflict at the origin
  • radius: Maximum distance of the area effect. Damage will decrease linearly.

Examples

No examples given.

Notes

As with other radius attacks, the distance is Chebyshev, i.e. the maximum of x and y difference, so the area of effect is a square, not a circle (and it's infinitely tall). Beware when making large radii, as it will become noticeable.

This was introduced in MBF21. Eternity offers its own parameterized radius attacks too.

See also