Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

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