From ab0d4315bab7c6835e9013b8c9c2ac8e1bb17f22 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Mon, 6 Mar 2023 13:04:50 -0500 Subject: [PATCH] CLIENT/SERVER: More accurate sprint camera movement in FTE --- source/client/main.qc | 9 +-------- source/server/player.qc | 8 ++++---- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/source/client/main.qc b/source/client/main.qc index 0bfba53..582d00c 100644 --- a/source/client/main.qc +++ b/source/client/main.qc @@ -368,18 +368,11 @@ void() Update_Vmodel = adsoffset = GetWeaponADSPos(weapon); ads = getstatf(STAT_WEAPONZOOM); //get the zoomtoggle value - if(ads == 1) + if(ads == 1 || ads == 2) { vmodel_currentpos += (adsoffset * 0.15 * 128) * frametime; - vmodel_currentpos += offset*0.025; vmodel.origin = vmodel_currentpos + adsoffset; } - else if (ads == 2) - { - vmodel_currentpos += (adsoffset * 0.15 * 128) * frametime; - vmodel_currentpos += offset*0.025; - vmodel.origin = vmodel_currentpos + adsoffset; - } else { switch(getstatf(STAT_PLAYERSTANCE)) { diff --git a/source/server/player.qc b/source/server/player.qc index c7d96f2..f89505a 100644 --- a/source/server/player.qc +++ b/source/server/player.qc @@ -223,13 +223,13 @@ void() PlayerPreThink = #ifdef FTE - if (self.viewzoom > 0.9) + if (self.viewzoom > 0.98) self.viewzoom -= 0.015; - else if (self.viewzoom < 0.9) - self.viewzoom = 0.9; + else if (self.viewzoom < 0.98) + self.viewzoom = 0.98; // viewbob when running - self.punchangle_x = 1*sin(time*15); + self.punchangle_y = 0.25*sin(time*10); #endif // FTE