]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't apply view bobbing while observing
authorMario <mario.mario@y7mail.com>
Sat, 7 Nov 2020 07:31:41 +0000 (17:31 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 7 Nov 2020 07:34:18 +0000 (17:34 +1000)
qcsrc/lib/csqcmodel/cl_player.qc

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