use getplayerangles() from a script (gsc) file. player.angles is kinda bugged and only returns a nonzero value for the [1] index.
Also, in cod2 /viewpos returns your left/right angle as the final number, not sure about cod1.
use getplayerangles() from a script (gsc) file. player.angles is kinda bugged and only returns a nonzero value for the [1] index.
Also, in cod2 /viewpos returns your left/right angle as the final number, not sure about cod1.
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
raphael (22nd March 2023)
I didn't know about getplayerangles() vs player.angles, thank you
I struggle to understand all these values, this is the first time I use angles/vectors, and I don't practice math.
Attached is a screenshot showing a /viewpos output and the compass
viewpos compass.png
Do you know if there could be a formula to obtain the compass degree value, using player.origin / getplayerangles() ?
Last edited by raphael; 1st March 2023 at 11:18.