A_RocketInFlight


Plays the sound "misc/missileinflight" and spawns a MiniMissilePuff and a RocketTrail.

A_RocketInFlight

(no parameters)

A close approximation in a more generalized functions is:

 A_PlaySound("misc/missileinflight", CHAN_VOICE)
 A_SpawnItemEx("MiniMissilePuff", -velx, -vely, 0, 0, 0, 1)
 A_SpawnItemEx("RocketTrail", 0, 0, 0, 0, 0, 0, 180)

The original definition keeps the MiniMissilePuff from hitting the crash state, but MiniMissilePuff has Goto Crash anyway... Also, the original has some particle-specific parameters passed but again, MiniMissilePuff has -ALLOWPARTICLES.

Examples

From the definition of MiniMissile:

 Spawn:
   MICR A 6 Bright A_RocketInFlight
   Loop
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.