A_RocketInFlight

From ZDoom Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A_RocketInFlight

(no parameters)


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

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