]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Use sin() for the the view going up / down. Now it needs to be arranged in a correct...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Jul 2010 22:24:35 +0000 (22:24 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Jul 2010 22:24:35 +0000 (22:24 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10340 d7cf8633-e32d-0410-b094-e92efae38249

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!!!