BFGSpray

From Eternity Wiki
Jump to navigationJump to search

Description

BFGSpray is a codepointer which causes a BFG explosion effect.

Usage

BFGSpray(sprayType, numRays, damageCount, fov, maxDist)

Parameters

  • sprayType: name of thing type to spawn on hit targets. Default is the thingtype with dehackednum 43, which in Doom is BFGFlash.
  • numRays: number of rays. Default: 40.
  • damageCount: how many times to add the random 1-8 damage for each ray. Default: 15.
  • fov: angle in degrees of the spread. Default: 90.
  • maxDist: range of each ray. Default: 1024.

Examples

From base\doom\frames.edf:

frame S_BFGLAND3 { cmp = "BFE1|2|T|8|BFGSpray|@next";       dehackednum = 119 }

Notes

The effect differs depending on the player's selected type of BFG:

  • Normal BFG: numRays tracers will emanate from the object which fired the projectile in the general direction in which the projectile was fired, each doing damage that is the sum of damageCount rolls of an 8-sided die.
  • BFG11K: Control is transferred to the BFG11KHit codepointer.
  • Bouncing BFG: Control is transferred to the BouncingBFG codepointer.
  • Plasma Burst BFG: Control is transferred to the BFGBurst codepointer.

Note: this will not trigger the Doom beta BFG attack if its gameplay setting is enabled. There is a separate set of frames for the classic BFG that replace the normal BFG9000.

See also