A_RocketInFlight
Jump to navigation
Jump to search
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