Calculate the vel vector of the particle before calling the effect function and replace "nullvector" with the calculated vel vector. Remove the event function from the particle, or replace it with a fade-out function. That should give you the desired effect.