]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't use cl_viewmodel_scale as cl_bobmodel speed factor because it doesn't change...
authorterencehill <piuntn@gmail.com>
Sun, 2 Jun 2024 13:58:31 +0000 (15:58 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 2 Jun 2024 13:58:31 +0000 (15:58 +0200)
qcsrc/client/view.qc

index 5c67a21157c68860c3f378c06ba9e0af783bbde0..cb72f4ebba16c10ee64a572c1c5439475517cc15 100644 (file)
@@ -40,7 +40,6 @@
 #include <lib/warpzone/client.qh>
 #include <lib/warpzone/common.qh>
 
-float autocvar_cl_viewmodel_scale;
 float autocvar_cl_viewmodel_alpha = 1;
 
 bool autocvar_cl_bobmodel;
@@ -229,7 +228,7 @@ vector bobmodel_ofs(entity view)
        float xyspeed = bound(0, vlen(vec2(view.velocity)), 400);
        if (bobmodel_scale && xyspeed)
        {
-               float bspeed = xyspeed * 0.01 * autocvar_cl_viewmodel_scale * bobmodel_scale;
+               float bspeed = xyspeed * 0.01 * bobmodel_scale;
                float s = (time - time_ofs) * autocvar_cl_bobmodel_speed;
                gunorg.y = bspeed * autocvar_cl_bobmodel_side * sin(s);
                gunorg.z = bspeed * autocvar_cl_bobmodel_up * cos(s * 2);