Viewmodels: cl_bobmodel: check onground for other players too
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 29 Nov 2015 10:53:10 +0000 (21:53 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 29 Nov 2015 10:53:10 +0000 (21:53 +1100)
qcsrc/client/view.qc

index 47a1c0b..45629f2 100644 (file)
@@ -119,7 +119,7 @@ void viewmodel_animate(entity this)
 
        entity view = CSQCModel_server2csqc(player_localentnum);
 
-       bool clonground = boolean(view.pmove_flags & PMF_ONGROUND);
+       bool clonground = !(view.anim_implicit_state & ANIMIMPLICITSTATE_INAIR);
        static bool oldonground;
        static float hitgroundtime;
        static float lastongroundtime;