copymark
02-11-2010, 03:42 PM
I want to show a line from each enemy in direction where he is aiming on
origin should be the head of course.
void AddLineOverlay(const Vector& origin, const Vector& dest, int r, int g, int b,bool noDepthTest, float duration)
To make it more clear:
http://img694.imageshack.us/img694/9633/vectord.jpg (http://img694.imageshack.us/i/vectord.jpg/)
i need the vector point x. (distance may be 2000 units)
i can get the origin with:
pBaseEntity->EyePosition()
and the EyeAngles:
pBaseEntity->EyeAngles()
But unfortionally i dont know how to calculate with vectors and QAngles
Im sure a lot of people here can help me
Mfg Mark
origin should be the head of course.
void AddLineOverlay(const Vector& origin, const Vector& dest, int r, int g, int b,bool noDepthTest, float duration)
To make it more clear:
http://img694.imageshack.us/img694/9633/vectord.jpg (http://img694.imageshack.us/i/vectord.jpg/)
i need the vector point x. (distance may be 2000 units)
i can get the origin with:
pBaseEntity->EyePosition()
and the EyeAngles:
pBaseEntity->EyeAngles()
But unfortionally i dont know how to calculate with vectors and QAngles
Im sure a lot of people here can help me
Mfg Mark