From DoomWiki.org

Rocket launcher firing sequence, the state immediately before S_MISSILE2 when A_FireMissile is invoked.

A_FireMissile is a code pointer used in the attack animation for the Rocket Launcher.

A_FireMissile spawns a rocket (object of type MT_ROCKET) moving in the direction that the player is currently facing. Autoaim is applied to determine the vertical angle to aim at. The rocket is spawned in the exact same X/Y location as the player; it passes out of the player since rockets pass through the player that fired them.


The A_FireMissile code pointer appears in the following states in Doom's state table:


The following is an example of how to set the A_FireMissile code pointer in a Dehacked file:

Pointer 21 (Frame 34)
Codep Frame = 61

Or using BEX syntax:

Frame 1234 = FireMissile

See also[edit]

External links[edit]