What is the code behind Player:GetCursorAimVector()?

I am trying to make a GetCursorAimVector that starts from a point that is not the player’s default AimVector (3rd person cam). I don’t really know how GetCursorAimVector works though.

I tried figuring this out, but the solution didn’t work.

Thread:

http://www.facepunch.com/showthread.php?t=891702

The second to last post in that thread should work.