From 6e188571bc61a23031b7318a91ad18b655691e3e Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 2 Jun 2024 15:58:31 +0200 Subject: [PATCH] Don't use cl_viewmodel_scale as cl_bobmodel speed factor because it doesn't change first person weapon size --- qcsrc/client/view.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.39.2