A_BFGSound

From ZDoom Wiki
Jump to: navigation, search

A_BFGSound

(no parameters)


Note: This function has been superseded by A_PlaySound, 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
  ...
  }
}