Good idea, I've already got a nice thread (and probably accurate since Treyarch made it) for tracking where you aim. I have one question, is 'self.prim' predefined or a variable you made? Might get use of it some day.
Here's the function i use btw:
[php]getAim()
{
trace_origin = self.rcbomb.origin;
trace_direction = self GetPlayerAngles();
trace_direction = AnglesToForward( trace_direction ) * 5000;
trace = BulletTrace( trace_origin, trace_origin + trace_direction, false, self );
end_origin = trace["position"];
return end_origin;
}[/php]
If you want to use it on a player, use this
[php]getAim()
{
trace_origin = self.origin;
trace_direction = self GetPlayerAngles();
trace_direction = AnglesToForward( trace_direction ) * 5000;
trace = BulletTrace( trace_origin, trace_origin + trace_direction, false, self );
end_origin = trace["position"];
return end_origin;
}[/php]