I know that this problem has been already discussed, but I just can't find any useful topic about it.
I'm looking for a piece of code that can calculate origin, let's say, 40.0 units in front of a player. Height should be also observed (start point is a player, end point is the point where the player is aiming). It's probably some traceline function + xs, but I can't find any reference to xs functions therefore I don't know how to use them.