From fc5bc8e6c109714bed4e829df7465cf6d08e68f5 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Mon, 6 Mar 2023 14:03:11 -0500 Subject: [PATCH] CLIENT: Fix viewmodel moving while paused --- source/client/main.qc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/client/main.qc b/source/client/main.qc index aca72a1..935837c 100644 --- a/source/client/main.qc +++ b/source/client/main.qc @@ -254,8 +254,14 @@ void() Update_Vmodel = // View Bobbing Factors. // + // PAUSED, NO BOB + if (serverkey(SERVERKEY_PAUSESTATE) == "1") { + weapon_bob_factor = '0 0 0'; + dampening_factor = weapon_bob_factor; + weapon_bob_factor_z_coef = 0; + } // ADS - if (getstatf(STAT_WEAPONZOOM) && getstatf(STAT_WEAPONZOOM) != 3) { + else if (getstatf(STAT_WEAPONZOOM) && getstatf(STAT_WEAPONZOOM) != 3) { weapon_bob_factor = '0 0 0'; dampening_factor = weapon_bob_factor; weapon_bob_factor_z_coef = 0; @@ -399,7 +405,7 @@ void() Update_Vmodel = adsoffset = GetWeaponADSPos(weapon); ads = getstatf(STAT_WEAPONZOOM); //get the zoomtoggle value - if(ads == 1 || ads == 2) + if(ads == 1 || ads == 2 && serverkey(SERVERKEY_PAUSESTATE) == "0") { vmodel_currentpos += (adsoffset * 0.15 * 128) * frametime; vmodel.origin = vmodel_currentpos + adsoffset;