Ran into a bit of a snag with A_SpawnItemEx. I was making a trail for a fast (35 speed, YES, I double-checked to make sure) projectile, so I thought I'd give it some momentum to keep up with the projectile (so it doesn't end up too spread out). X momentum was easy, but Z momentum was a little tricky, so I put (MomZ/1.2) in there, and it worked fine. The problem is, the trail is now going slightly faster than the projectile itself. I worked and looked fine, and I didn't even notice it until I lowered the alpha on the trail.
Here's the code. Projectile's speed is 35 (28 is 80% of it, so it fits in with the Z momentum):
Code: Select all
LACR AAABBB 1 Bright A_SpawnItemEx("LasceratorTrail", 0, 0, 0, 28, 0, (MomZ/1.2), 0, 128)
I also tried this, which worked, but had the same problem, the trail was going faster than the projectile (notice the Absolute Momentum flag):
Code: Select all
LACR AAABBB 1 Bright A_SpawnItemEx("LasceratorTrail", 0, 0, 0, (MomX/1.2), (MomY/1.2), (MomZ/1.2), 0, 136)
Here's a screenshot. The actual projectile has higher alpha and is plainly visible at the back of the trail:
