by NickPerrin » Mon Apr 16, 2012 4:30 pm
I'm using A_FireCustomMissile and it's working just fine. However, It seems that every projectile the player fires with this spawns right inside the player. I'm wondering if there's a way to spawn a projectile using this action further away from the firing actor than default? (Useful for smoke, casings, rockets coming out of the tip of a barrel etc.)
I have tried some solutions. One can use TNT1 for the first few frames to make this invisible until it's in the right place and "pops in", but then your angle and pitch are not really where you want them by the time they get to the desired "pop-in" spot, and the speed may be wrong too. Alternatively, you can spawn a superfast invisible projectile that in turn spawns the slower, visible projectile, getting closer to the desired effect.
But is there a simpler way? Something that makes the projectile spawn a certain distance forward from the outset?