From: Mario Date: Sun, 1 Nov 2020 12:38:54 +0000 (+1000) Subject: Don't apply view bobbing while inside a vehicle (currently does not apply since vehic... X-Git-Tag: xonotic-v0.8.5~697 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=465eab422ff3ddcbcd195d2fc54ac5a09a86022d;p=xonotic%2Fxonotic-data.pk3dir.git Don't apply view bobbing while inside a vehicle (currently does not apply since vehicles are unpredicted) --- diff --git a/qcsrc/lib/csqcmodel/cl_player.qc b/qcsrc/lib/csqcmodel/cl_player.qc index 247f94100..664e67e8b 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) + if(this.csqcmodel_isdead || PHYS_INVEHICLE(this)) return v; // bounded XY speed, used by several effects below