]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Viewmodels: attempt to smooth out teleporting
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 29 Nov 2015 10:25:08 +0000 (21:25 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 29 Nov 2015 10:25:08 +0000 (21:25 +1100)
qcsrc/client/view.qc

index 5497d2ab958ecac96afee3ba0b6fc01bacd3e308..f7864f8912ef3cf25b875b5b2788991db91fe556 100644 (file)
@@ -120,7 +120,7 @@ void viewmodel_animate(entity this)
        vector gunorg = '0 0 0', gunangles = '0 0 0';
        static vector gunorg_prev = '0 0 0', gunangles_prev = '0 0 0';
 
-       bool teleported = false; // TODO: detect
+       bool teleported = csqcplayer.csqcmodel_teleported;
 
        // 1. if we teleported, clear the frametime... the lowpass will recover the previous value then
        if (teleported)