From 3cdb542bcba41fda48431cdcd3a51c44e570f78a Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 16 Jul 2010 22:25:31 +0000 Subject: [PATCH] Oops, must be framerate dependent From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10348 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=db96c59b38c6b17c49204319b9d856aa34e9983a --- darkplaces.txt | 2 +- view.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/darkplaces.txt b/darkplaces.txt index 07903b27..2ae8f177 100644 --- a/darkplaces.txt +++ b/darkplaces.txt @@ -400,7 +400,7 @@ cl_bob2 0 sideways v cl_bob2cycle 0.6 sideways view bobbing speed cl_bob2smooth 0.05 how fast the view goes back when you stop touching the ground cl_bobfall 0 how much the view swings down when falling (influenced by the speed you hit the ground with) -cl_bobfallcycle 0.025 speed of the bobfall swing +cl_bobfallcycle 3 speed of the bobfall swing cl_bobfallspeed 200 necessary amount of speed for bob-falling to occur cl_bobmodel 1 enables gun bobbing cl_bobmodel_side 0.05 gun bobbing sideways sway amount diff --git a/view.c b/view.c index eef07b4c..d058112c 100644 --- a/view.c +++ b/view.c @@ -43,7 +43,7 @@ cvar_t cl_bob2 = {CVAR_SAVE, "cl_bob2","0", "sideways view bobbing amount"}; cvar_t cl_bob2cycle = {CVAR_SAVE, "cl_bob2cycle","0.6", "sideways view bobbing speed"}; cvar_t cl_bob2smooth = {CVAR_SAVE, "cl_bob2smooth","0.05", "how fast the view goes back when you stop touching the ground"}; cvar_t cl_bobfall = {CVAR_SAVE, "cl_bobfall","0", "how much the view swings down when falling (influenced by the speed you hit the ground with)"}; -cvar_t cl_bobfallcycle = {CVAR_SAVE, "cl_bobfallcycle","0.025", "speed of the bobfall swing"}; +cvar_t cl_bobfallcycle = {CVAR_SAVE, "cl_bobfallcycle","3", "speed of the bobfall swing"}; cvar_t cl_bobfallminspeed = {CVAR_SAVE, "cl_bobfallminspeed","200", "necessary amount of speed for bob-falling to occur"}; cvar_t cl_bobmodel = {CVAR_SAVE, "cl_bobmodel", "1", "enables gun bobbing"}; cvar_t cl_bobmodel_side = {CVAR_SAVE, "cl_bobmodel_side", "0.15", "gun bobbing sideways sway amount"}; @@ -731,7 +731,7 @@ void V_CalcRefdef (void) else { if(cl.bobfall_swing > 0) - cl.bobfall_swing -= bound(0, cl_bobfallcycle.value, 1); + cl.bobfall_swing -= bound(0, cl_bobfallcycle.value * frametime, 1); else cl.bobfall_swing = 0; -- 2.39.2