]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't apply view bobbing while inside a vehicle (currently does not apply since vehic...
authorMario <mario.mario@y7mail.com>
Sun, 1 Nov 2020 12:38:54 +0000 (22:38 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 1 Nov 2020 12:38:54 +0000 (22:38 +1000)
qcsrc/lib/csqcmodel/cl_player.qc

index 247f941002ede58abcf97f1998e5f6ee33b99b1c..664e67e8b7c98ddf2b595428cfb746796da9c8eb 100644 (file)
@@ -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