From cc27af0a62aaa14f37203c7863ea80faa8c9b777 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 2 May 2010 14:09:29 +0000 Subject: [PATCH] Better following limits for the new code. Added new cvars to darkplaces.txt From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10156 d7cf8633-e32d-0410-b094-e92efae38249 --- darkplaces.txt | 18 ++++++++++++++---- view.c | 4 ++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/darkplaces.txt b/darkplaces.txt index 59e26173..2953ada7 100644 --- a/darkplaces.txt +++ b/darkplaces.txt @@ -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 3279e512..28f19b6f 100644 --- 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"}; -- 2.39.2