From: terencehill Date: Sun, 2 Jun 2024 13:58:31 +0000 (+0200) Subject: Don't use cl_viewmodel_scale as cl_bobmodel speed factor because it doesn't change... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6e188571bc61a23031b7318a91ad18b655691e3e;p=xonotic%2Fxonotic-data.pk3dir.git Don't use cl_viewmodel_scale as cl_bobmodel speed factor because it doesn't change first person weapon size --- diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 5c67a2115..cb72f4ebb 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -40,7 +40,6 @@ #include #include -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);