git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12948
d7cf8633-e32d-0410-b094-
e92efae38249
// vertical view bobbing code
if (cl_bob.value && cl_bobcycle.value)
{
// vertical view bobbing code
if (cl_bob.value && cl_bobcycle.value)
{
- float bob_limit = cl_bob_limit.value;
+ float bob_limit = cl_bobmodel_classic.integer ? 4 : cl_bob_limit.value;
if (cl_bob_limit_heightcheck.integer)
{
if (cl_bob_limit_heightcheck.integer)
{
// (don't count Z, or jumping messes it up)
bob = xyspeed * cl_bob.value;
bob = bob*0.3 + bob*0.7*sin(cycle);
// (don't count Z, or jumping messes it up)
bob = xyspeed * cl_bob.value;
bob = bob*0.3 + bob*0.7*sin(cycle);
- bob = bound(-7, bob, 4);
+ bob = bound(-7, bob, bob_limit);