WooHoo it works as is with version 6.31.3. I looked around and never found a reference to requirements for running it (another commonality I experience). Anyway, while I have your attention have you ever created that phent_clearvelocity() function? The original thread is here:

http://www.conitecserver.com/ubbthreads/showflat.php?Cat=&Number=309750&page=1&view=collapsed&sb=5&o=&fpart=1#309750

Thanks