A_RadiusDamageSelf

From ZDoom Wiki
Jump to: navigation, search

A_RadiusDamageSelf [(int damage [, float distance [, int flags [, str flashtype]]])]

Usage

Performs an explosive (radius) attack, much like A_Explode, which damages the caller's target only; for projectiles, it is their shooter.

Parameters

  • damage: How much damage is inflicted at the center of the explosion. Default is 128.
  • distance: The area covered by the damage (damage inflicted drops linearly with distance). Default is 128.
  • flags:
    • RDSF_BFGDAMAGE — Use the BFG9000 tracers' formula for damage. This works by picking and adding a random value from 1 to 8 a number of times which equals to the calculated damage over distance.
  • flashtype: The actor to spawn at the target's position when damage is inflicted. Default is "None".

Examples

ACTOR OddRocket : Rocket
{
  States
  {
  Death:
    MISL B 8 Bright A_RadiusDamageSelf(72, 192.0, RDSF_BFGDAMAGE, "BFGExtra")
    MISL C 6 Bright
    MISL D 4 Bright
    Stop
  }
}