BFGSpray: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
m (Minor changes) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
'''BFGSpray''' ( | {{codepointer|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. | |||
|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. | *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. | ||
[[ | 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.