View Single Post
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-11-2009 , 14:44   Re: Knife Distance by SchlumPF
Reply With Quote #6

Quote:
Originally Posted by arkshine View Post
Just for your information, you can get rid of most of your code using glb_trace_endpos which contain the end position of the last trace.
the question is whether get_global()or my calculation is faster, i cannot test it cuz my cs crashed when im using the profiling-binarys and im not sure whether your 100% right since get_global()runs a lot of c++ code.

PHP Code:
static Float:vecEnd[3];
vecEnd[0] = vecSrc[0] + vecDir[0] * range;
vecEnd[1] = vecSrc[1] + vecDir[1] * range;
vecEnd[2] = vecSrc[2] + vecDir[2] * range
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*