]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Better following limits for the new code. Added new cvars to darkplaces.txt
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:09:29 +0000 (14:09 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:09:29 +0000 (14:09 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

darkplaces.txt
view.c

index 59e261732171d9597a99e6feeb78b87606e4f125..2953ada7d139e2d2bac7ed4ac10d910e480d56d0 100644 (file)
@@ -403,17 +403,27 @@ cl_bobmodel_up                                    0.02                gun bobbin
 cl_leanmodel_side                                 1                   enables gun leaning sideways
 cl_leanmodel_side_speed                           20                  gun leaning sideways speed
 cl_leanmodel_side_limit                           35                  gun leaning sideways limit
+cl_leanmodel_side_highpass1                       5                   gun leaning sideways pre-highpass in 1/s
+cl_leanmodel_side_highpass                        15                  gun leaning sideways highpass in 1/s
+cl_leanmodel_side_lowpass                         30                  gun leaning sideways lowpass in 1/s
 cl_leanmodel_up                                   1                   enables gun leaning upward
 cl_leanmodel_up_speed                             15                  gun leaning upward speed
 cl_leanmodel_up_limit                             25                  gun leaning upward limit
+cl_leanmodel_up_highpass1                         5                   gun leaning upward pre-highpass in 1/s
+cl_leanmodel_up_highpass                          15                  gun leaning upward highpass in 1/s
+cl_leanmodel_up_lowpass                           30                  gun leaning upward lowpass in 1/s
 cl_followmodel_side                               1                   enables gun following sideways
 cl_followmodel_side_speed                         0.015               gun following sideways speed
-cl_followmodel_side_limit                         2                   gun following sideways limit
-cl_followmodel_side_highpass                      2                   gun following sideways highpass
+cl_followmodel_side_limit                         4                   gun following sideways limit
+cl_followmodel_side_highpass1                     5                   gun following sideways pre-highpass in 1/s
+cl_followmodel_side_highpass                      15                  gun following sideways highpass in 1/s
+cl_followmodel_side_lowpass                       30                  gun following sideways lowpass in 1/s
 cl_followmodel_up                                 1                   enables gun following upward
 cl_followmodel_up_speed                           0.01                gun following upward speed
-cl_followmodel_up_limit                           1.5                 gun following upward limit
-cl_followmodel_up_highpass                        2                   gun following upward highpass
+cl_followmodel_up_limit                           2                   gun following upward limit
+cl_followmodel_up_highpass1                       5                   gun following upward pre-highpass in 1/s
+cl_followmodel_up_highpass                        15                  gun following upward highpass in 1/s
+cl_followmodel_up_lowpass                         30                  gun following upward lowpass in 1/s
 cl_bobup                                          0.5                 view bobbing adjustment that makes the up or down swing of the bob last longer
 cl_capturevideo                                   0                   enables saving of video to a .avi file using uncompressed I420 colorspace and PCM audio, note that scr_screenshot_gammaboost affects the brightness of the output)
 cl_capturevideo_fps                               30                  how many frames per second to save (29.97 for NTSC, 30 for typical PC video, 15 can be useful)
diff --git a/view.c b/view.c
index 3279e512ba578fb5bbe675c7a536dd379cc275ad..28f19b6f7df2b874b12b9230d2a161496a9f39c7 100644 (file)
--- a/view.c
+++ b/view.c
@@ -60,13 +60,13 @@ cvar_t cl_leanmodel_up_lowpass = {CVAR_SAVE, "cl_leanmodel_up_lowpass", "30", "g
 
 cvar_t cl_followmodel_side = {CVAR_SAVE, "cl_followmodel_side", "1", "enables gun following sideways"};
 cvar_t cl_followmodel_side_speed = {CVAR_SAVE, "cl_followmodel_side_speed", "1", "gun following sideways speed"};
-cvar_t cl_followmodel_side_limit = {CVAR_SAVE, "cl_followmodel_side_limit", "10", "gun following sideways limit"};
+cvar_t cl_followmodel_side_limit = {CVAR_SAVE, "cl_followmodel_side_limit", "4", "gun following sideways limit"};
 cvar_t cl_followmodel_side_highpass1 = {CVAR_SAVE, "cl_followmodel_side_highpass1", "5", "gun following sideways pre-highpass in 1/s"};
 cvar_t cl_followmodel_side_highpass = {CVAR_SAVE, "cl_followmodel_side_highpass", "15", "gun following sideways highpass in 1/s"};
 cvar_t cl_followmodel_side_lowpass = {CVAR_SAVE, "cl_followmodel_side_lowpass", "30", "gun following sideways lowpass in 1/s"};
 cvar_t cl_followmodel_up = {CVAR_SAVE, "cl_followmodel_up", "1", "enables gun following upward"};
 cvar_t cl_followmodel_up_speed = {CVAR_SAVE, "cl_followmodel_up_speed", "1", "gun following upward speed"};
-cvar_t cl_followmodel_up_limit = {CVAR_SAVE, "cl_followmodel_up_limit", "10", "gun following upward limit"};
+cvar_t cl_followmodel_up_limit = {CVAR_SAVE, "cl_followmodel_up_limit", "2", "gun following upward limit"};
 cvar_t cl_followmodel_up_highpass1 = {CVAR_SAVE, "cl_followmodel_up_highpass1", "5", "gun following upward pre-highpass in 1/s"};
 cvar_t cl_followmodel_up_highpass = {CVAR_SAVE, "cl_followmodel_up_highpass", "15", "gun following upward highpass in 1/s"};
 cvar_t cl_followmodel_up_lowpass = {CVAR_SAVE, "cl_followmodel_up_lowpass", "30", "gun following upward lowpass in 1/s"};