cl_followmodel_up_highpass 3 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_bob2up 0.5 view bobbing adjustment that makes the side 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)
cl_capturevideo_number 1 number to append to video filename, incremented each time a capture begins
cvar_t cl_bobup = {CVAR_SAVE, "cl_bobup","0.5", "view bobbing adjustment that makes the up or down swing of the bob last longer"};
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_bob2up = {CVAR_SAVE, "cl_bob2up","0.5", "view bobbing adjustment that makes the side swing of the bob last longer"};
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_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"};
cycle = cl.time / cl_bob2cycle.value;
cycle -= (int) cycle;
- if (cycle < cl_bob2up.value)
- cycle = sin(M_PI * cycle / cl_bob2up.value);
+ if (cycle < 0.5)
+ cycle = sin(M_PI * cycle / 0.5);
else
- cycle = sin(M_PI + M_PI * (cycle-cl_bob2up.value)/(1.0 - cl_bob2up.value));
+ cycle = sin(M_PI + M_PI * (cycle-0.5)/0.5);
bob = xyspeed * cl_bob2.value * cycle;
// this value slowly decreases from 1 to 0 when we stop touching the ground.
Cvar_RegisterVariable (&cl_bobup);
Cvar_RegisterVariable (&cl_bob2);
Cvar_RegisterVariable (&cl_bob2cycle);
- Cvar_RegisterVariable (&cl_bob2up);
Cvar_RegisterVariable (&cl_bob2smooth);
Cvar_RegisterVariable (&cl_bobmodel);
Cvar_RegisterVariable (&cl_bobmodel_side);