DP QC VECTOANGLES WITH ROLL

From Quake Wiki

Builtin definitions:

vector(vector forward, vector up) vectoangles2 = #51; // same number as vectoangles

Variant of vectoangles that takes an up vector to calculate roll angle (also uses this to calculate yaw correctly if the forward is straight up or straight down)

Note: Just like normal vectoangles you need to negate the pitch of the returned angles if you want to feed them to makevectors or assign to self.v_angle