From: Mario Date: Sat, 7 Nov 2020 07:31:41 +0000 (+1000) Subject: Don't apply view bobbing while observing X-Git-Tag: xonotic-v0.8.5~684 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c31c1166c16487c0b7452c8827b293312ef31626;p=xonotic%2Fxonotic-data.pk3dir.git Don't apply view bobbing while observing --- 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