A_BFGSound

From ZDoom Wiki
Jump to navigation Jump to search

A_BFGSound

DoomWiki.org
For more information on this article, visit the A_BFGsound page on the Doom Wiki.


(no parameters)


Note: This function has been superseded by A_StartSound, which duplicates and extends its functionality. Use of the newer function is advised in order to maintain maximum flexibility in your code.


Usage

Plays the sound "weapons/bfgf".

Examples

This is an excerpt from the BFG9000 code, unrelated sections snipped out. In the firing sequence. A_BFGSound is called to play the famous BFG charging sound.

actor BFG9000 : DoomWeapon 2006
{
  ...
  States
  {
  ...
  Fire:
    BFGG A 20 A_BFGSound
    BFGG B 10 A_GunFlash
    BFGG B 10 A_FireBFG
    BFGG B 20 A_ReFire
    goto Ready
  ...
  }
}