]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - view.c
Use sin() for the the view going up / down. Now it needs to be arranged in a correct...
[xonotic/darkplaces.git] / view.c
diff --git a/view.c b/view.c
index 0cd7b478b4ccc5b27bb9ddde494ba4911f8f4bee..ce439163ba32f6eea4f3cb278fe48559ef8b96f9 100644 (file)
--- a/view.c
+++ b/view.c
@@ -729,8 +729,8 @@ void V_CalcRefdef (void)
                                                if(cl.ground_hit_speed < cl.ground_hit_target)
                                                        cl.ground_hit_speed += 0.1; // replace 0.1 with cvar
 
-                                               vieworg[2] += cl.ground_hit_speed;
-                                               gunorg[2] += cl.ground_hit_speed;
+                                               vieworg[2] += sin(M_PI + M_PI * cl.ground_hit_speed * 0.2);
+                                               gunorg[2] += sin(M_PI + M_PI * cl.ground_hit_speed * 0.2);
                                        }
 
                                        // End of TEST!!!