From 465eab422ff3ddcbcd195d2fc54ac5a09a86022d Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 1 Nov 2020 22:38:54 +1000 Subject: [PATCH] Don't apply view bobbing while inside a vehicle (currently does not apply since vehicles are unpredicted) --- 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 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 -- 2.39.2