BFGSpray: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(New page: '''BFGSpray''' is a miscellaneous normal codepointer. This codepointer causes BFG explosion effects, which differ depending on the player's selected type of BFG: *Normal BFG: 40 tracers w...)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''BFGSpray''' is a miscellaneous normal codepointer. This codepointer causes BFG explosion effects, which differ depending on the player's selected type of BFG:
{{codepointer|description=BFGSpray is a codepointer which causes a BFG explosion effect.|usage='''BFGSpray'''(''sprayType'', ''numRays'', ''damageCount'', ''fov'', ''maxDist'')
 
|parameters=
*Normal BFG: 40 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 15 rolls of an 8-sided die (Absolute damage range per tracer is 15 to 120, absolute damage range of ALL tracers is 600 to 4800).
*''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.
*BFG 11K: Control is transferred to the [[BFG11KHit]] codepointer.
*''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.
|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.
*Bouncing BFG: Control is transferred to the [[BouncingBFG]] codepointer.
*Plasma Burst BFG: Control is transferred to the [[BFGBurst]] codepointer.
*Plasma Burst BFG: Control is transferred to the [[BFGBurst]] codepointer.


[[Category:Codepointers]]
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.|seealso=
*[[BFG11KHit]]
*[[BFGBurst]]
*[[BouncingBFG]]|examples=
{{example|description=From base\doom\frames.edf:|code=<nowiki>frame S_BFGLAND3 { cmp = "BFE1|2|T|8|BFGSpray|@next";      dehackednum = 119 }</nowiki>}}}}

Latest revision as of 16:32, 23 August 2025

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