by Sajt » Mon Feb 01, 2010 3:11 am
To get two points 45 degrees to the left and right, each 50 units away from the player, add a yaw offset to the player angles:
makevectors(self.v_angle + '0 45 0');
dot1 = self.origin + v_forward * 50;
makevectors(self.v_angle + '0 -45 0');
dot2 = self.origin + v_forward * 50;
You don't have to normalize v_forward, it's always unit-length (unless you changed it yourself).
In your first picture, note that:
(normalize(v_forward) * 50) + (normalize(v_forward));
is thus the same as:
v_forward * 50 + v_forward;
Which is of course the same as:
v_forward * 51;
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.