A_RadiusDamageSelf
Jump to navigation
Jump to search
void A_RadiusDamageSelf [(int damage [, double distance [, int flags [, class<Actor> flashtype]]])]
Usage
Performs an explosive (radius) attack, much like A_Explode, that damages the calling actor's target only, which normally for projectiles, is their shooter.
While this function can be used by any actor, its usage should generally be restricted to projectiles only.
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: customizes the behavior of the function:
- 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.
- Default is 0.
- flashtype: the actor to spawn at the target's position when damage is inflicted. This actor may have the PUFFGETSOWNER, FOILINVUL and FOILBUDDHA flags. In addition, its DamageType property is used as the damage type of the attack. If this actor is not provided, the function defaults to BFGSplash as the damage type to inflict. Default is null(ZScript only)/"None"(DECORATE only).
Examples
class 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; } }