From c31c1166c16487c0b7452c8827b293312ef31626 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 7 Nov 2020 17:31:41 +1000 Subject: [PATCH] Don't apply view bobbing while observing --- qcsrc/lib/csqcmodel/cl_player.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/lib/csqcmodel/cl_player.qc b/qcsrc/lib/csqcmodel/cl_player.qc index 664e67e8b..303fc38f2 100644 --- a/qcsrc/lib/csqcmodel/cl_player.qc +++ b/qcsrc/lib/csqcmodel/cl_player.qc @@ -306,7 +306,7 @@ float bobfall_speed; float bob2_smooth; vector CSQCPlayer_ApplyBobbing(entity this, vector v) { - if(this.csqcmodel_isdead || PHYS_INVEHICLE(this)) + if(this.csqcmodel_isdead || PHYS_INVEHICLE(this) || !(this.isplayermodel & ISPLAYER_PLAYER)) return v; // bounded XY speed, used by several effects below -- 2.39.2