A_FireMissile

From DoomWiki.org

Revision as of 09:11, 4 March 2022 by XymphBot (talk | contribs) (Automated edit - Add sortkey without A_ prefix)


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.

Uses

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

Example

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:

[CODEPTR]
Frame 1234 = FireMissile

See also

External links