]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/View.qc
use only XY velocity on nex
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / View.qc
index cd6bba5ef5c950b2bcbe58688c4ca09f738a215f..6f7e3636bab6a48d59022ad3e6f90a2e6e774b05 100644 (file)
@@ -710,7 +710,7 @@ void CSQC_UpdateView(float w, float h)
                        float maxvel, minvel, curvel;
                        minvel = 400;
                        maxvel = 1000;
-                       curvel = vlen(pmove_vel);
+                       curvel = vlen('1 0 0' * pmove_vel_x + '0 1 0' * pmove_vel_y);
 
                        f = bound(0, (curvel - minvel) / (maxvel - minvel), 1);
                        x = cos(f * 2 * M_PI);